类 MittelItem
java.lang.Object
io.github.lijinhong11.mittellib.configuration.ReadWriteObject
io.github.lijinhong11.mittellib.item.MittelItem
-
构造器概要
构造器构造器说明MittelItem(@NotNull ContentProvider itemProvider, @NotNull String itemIdByProvider) Create a mittel item using item provider and item idMittelItem(@NotNull Material material) MittelItem(@NotNull Material material, int amount) MittelItem(@NotNull ItemStack itemStack) Create a mittel item usingItemStack -
方法概要
修饰符和类型方法说明applyFromItemStack(ItemStack itemStack) component(@NotNull ReadWriteItemComponent component) enchant(@NotNull Enchantment enchantment, int lvl) get()voidstatic MittelItemRead the item and apply it from the configuration sectionvoid从类继承的方法 io.github.lijinhong11.mittellib.configuration.ReadWriteObject
read
-
构造器详细资料
-
MittelItem
public MittelItem(@NotNull @NotNull ContentProvider itemProvider, @NotNull @NotNull String itemIdByProvider) Create a mittel item using item provider and item id- 参数:
itemProvider- the item provideritemIdByProvider- the item id to get item in the item provider
-
MittelItem
Create a mittel item usingItemStack- 参数:
itemStack- the item stack
-
MittelItem
-
MittelItem
-
-
方法详细资料
-
readFromSection
Read the item and apply it from the configuration section- 参数:
cs- the configuration section- 返回:
- a mittel item
- 抛出:
IllegalArgumentException- if the material doesn't support item metas
-
applyFromItemStack
@Contract(value="_ -> this", mutates="this") @CanIgnoreReturnValue public MittelItem applyFromItemStack(ItemStack itemStack) -
write
- 指定者:
write在类中ReadWriteObject
-
read
- 指定者:
read在类中ReadWriteObject
-
get
-
component
@CanIgnoreReturnValue public MittelItem component(@NotNull @NotNull ReadWriteItemComponent component) -
enchant
-