Ok so am trying to register an item , the item I'm trying to register is Paper but it already exists so what i want todo is like register BankNote which is paper but with a different name etc. I've tried making a class which extends Paper and then using the static method from itemFactory , registerItem() but it doesn't work.
I can rename the paper but with the BankNote I want to add value to the note and remove value that’s my goal
Why would you use NBT and a custom name and a custom class? If the item only has additional behaviour there's basically no need for it.
I would use NBT to store the Banknote value($$$) and a custom name so it doesnt say Paper and a CustomClass because I want to.
One item ID should only have one set of behaviour. It's not reasonable to register two classes for the same item ID. You might want to override the Paper class and optionally use the banknote value property.
Well since one item id should only have one set of behavior , how can I correctly override the paper class?
Ofc you can create your custom class extended Item, set values to this new item and them register in item factory. But I doesn't see why you should do it.