Have you ever been dreaming of saving a list of itemstacks to the pdc in just single line? Now that's possible!
PersistentDataType<?, List<ItemStack>> ITEM_STACK_LIST = DataTypes.list(DataTypes.ITEM_STACK);
- A lots of useful data types for gson, uuids, time, items and entities and such.
- A powerful collection data type framework. In single line, you can pick the most compact, beautiful and efficient implementation to store multiple elements at the same time.
- Fast and lightweight serialization algorithms. Overhead is avoided at all cost.
Honestly, i'm too lazy to sync docs with code. To see existing data types, jump at DataTypes class. All methods and constants are documented and self-explanatory.
Well, it is fine to use this library in 2 ways. Artifacts are posted on my repository.
maven {
url = uri("https://repo.decalium.ru/releases")
}
<repository>
<id>decalium-repository-releases</id>
<name>Decalium Network Repository</name>
<url>https://repo.decalium.ru/releases</url>
</repository>
And then, add the artifact:
implementation("com.manya:persistent-data-types:1.0.25")
<dependency>
<groupId>com.manya</groupId>
<artifactId>persistent-data-types</artifactId>
<version>1.0.25</version>
</dependency>
Alternatively, you can just copy classes you need to the project.