▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/MittelLib

MittelLib

A useful library simply made for mmmjjkx plugins' series

Оцените первым
36
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

  1. Item Serialization/Deserialization
  2. Item Component Serialization/Deserialization (Support almost all minecraft components)
  3. Universal placeholder expansion for MiniPlaceholders and PlaceholderAPI
  4. Items & Blocks from other plugins (ItemsAdder, Nexo etc.)
  5. 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:
```java
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")
Партнёрский материал

Сервер для плагина MittelLib - как у профи

Плагин MittelLib создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином MittelLib для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.1.x1.21.x1.20.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки


Создатели

Детали

Лицензия:
Опубликован:7 месяцев назад
Обновлён:4 месяца назад
Главная