3
0
MittelLib
A library contains useful things.
This is not fully finished, you help us develop more things by make pull requests!
NOTE: JDK21 is required
Features
- Item Serialization/Deserialization
- Item Component Serialization/Deserialization (Support almost all minecraft components)
- Universal placeholder expansion for MiniPlaceholders and PlaceholderAPI
- Items & Blocks from other plugins (ItemsAdder, Nexo etc.)
- More coming soon...
Develop Examples
Set item component:
ItemStack itemStack = ...;
MittelItem item = MittelItem.fromItemStack(itemStack);
ResolvableProfile component = ...;
ProfileComponent profileComponent = ProfileComponent.fromMinecraftComponent(component);
item.component(profileComponent);
ItemStack edited = item.get();
Write item into configuration:
MittelItem mittelItem = ...;
ConfigurationSection itemSection = ...;
mittelItem.write(itemSection);
Read item from configuration:
ConfigurationSection itemSection = ...;
MittelItem item = MittelItem.readFromSection(itemSection);
Get a custom item:
ItemStack item1 = ContentProviders.getItemStack("nexo:thisexample");
ItemStack item2 = ContentProviders.getItemStack("itemsadder:example:ex");
Import
The artifact is on Maven Central!
Maven:
<dependency>
<groupId>io.github.lijinhong11</groupId>
<artifactId>MittelLib</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
Gradle (Groovy):
compileOnly 'io.github.lijinhong11:MittelLib:VERSION'
Gradle (Kotlin):
compileOnly("io.github.lijinhong11:MittelLib:VERSION")
Совместимость
Создатели
Детали
Лицензия:GPL-3.0-only
Опубликован:1 неделю назад
Обновлён:1 неделю назад