No it doesn’t. It only supports item metadata/damage values which means it works for mod items that share the same item ID. It won’t support things like items in backpacks or energy storage for example.
actually i think its possible to get all data like /entitydata command…
it gives something like this to a spawn egg Creeper
{Entity:{id:“Creeper”}}…
are there any commands to get entitydata in java like this?
I’d recommend a double, rather than an integer, for the price. You never know what crazy economy system someone’ll have.
I’d also not recommend taking pre-existing Text, converting it to a plain String, and then concatenating it to another string in another Text.of(). For this very reason, Currencies have a .format() method. Heck, I wouldn’t recommend string concatenation in Text.of() anyway, since you can just as easily comma-separate the values.
It wouldn’t take much to add multiple currency support, and it’s much better than always using the default currency.
On the subject of adding to the data, you can make sure that there’s automatic versioning if your DataManipulatorBuilder also extends AbstractDataBuilder.
In your listener, you can use the ItemType directly in the Text, since it’s Translatable.
I was thinking about this and will probably change this. I created this plugin with my server in mind first, so it’s tailored towards how I prefer to run things.
When I wrote this, I knew I was being lazy. I will look into the format() method, seems like a good idea.
I’ll take a look at supporting multiple currencies. If it’s simple enough, it will be in the next version, no promises though.
I was wondering about this. While I’m unsure if anyone’s using my plugin yet, I don’t want to break peoples signs when I change the data.
Will take a look at this. If it returns the actual item then that is great!
Thanks for your feedback, will take it on board!
Edit: Do you have any references/more information for updating the content version safely/using AbstractDataBuilder?