Minestom wiki
Search…
Data
The Tag API should be used instead. These features will be removed in a future release.
A data object is basically a Map wrapper. A DataContainer is an object which contains a Data object, there are multiple containers such as Instance, ItemStack, Entity, Block (in a particular way, the data object is specified when setting a block).
Basically, it is used to link values to an element of the game.
For instance:
1
Data data = dataContainer.getData();
2
data.set("test", 1, Integer.class);
3
int test = data.get("test");
Copied!

Serializable data

A SerialiableData object can, as the name imply, be serialized.
It should be used in hand with our Storage system.
Last modified 29d ago
Copy link