类 SimpleItemComponent<T>
java.lang.Object
io.github.lijinhong11.mittellib.configuration.ReadWriteObject
io.github.lijinhong11.mittellib.configuration.ReadWriteItemComponent
io.github.lijinhong11.mittellib.item.components.impl.SimpleItemComponent<T>
- 类型参数:
T- the type of value
THIS IS A UNIVERSAL COMPONENT FOR PRIMITIVES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyToItem(ItemStack item) static <T> SimpleItemComponent<T> readFromSection(String key, ConfigurationSection cs, Class<T> type, BiConsumer<ItemStack, T> applier) void从类继承的方法 io.github.lijinhong11.mittellib.configuration.ReadWriteItemComponent
read从类继承的方法 io.github.lijinhong11.mittellib.configuration.ReadWriteObject
read
-
构造器详细资料
-
SimpleItemComponent
@ParametersAreNonnullByDefault public SimpleItemComponent(String key, T value, BiConsumer<ItemStack, T> applier)
-
-
方法详细资料
-
readFromSection
@ParametersAreNonnullByDefault public static <T> SimpleItemComponent<T> readFromSection(String key, ConfigurationSection cs, Class<T> type, BiConsumer<ItemStack, T> applier) -
write
- 指定者:
write在类中ReadWriteObject
-
applyToItem
- 指定者:
applyToItem在类中ReadWriteItemComponent
-