类 EquippableComponent
java.lang.Object
io.github.lijinhong11.mittellib.configuration.ReadWriteObject
io.github.lijinhong11.mittellib.configuration.ReadWriteItemComponent
io.github.lijinhong11.mittellib.item.components.impl.EquippableComponent
-
构造器概要
构造器构造器说明EquippableComponent(@NotNull EquipmentSlot slot, @Nullable net.kyori.adventure.key.Key equipSound, @Nullable net.kyori.adventure.key.Key assetId, @Nullable io.papermc.paper.registry.set.RegistryKeySet<EntityType> allowedEntities, boolean dispensable) EquippableComponent(@NotNull EquipmentSlot slot, @Nullable net.kyori.adventure.key.Key equipSound, @Nullable net.kyori.adventure.key.Key assetId, @Nullable net.kyori.adventure.key.Key cameraOverlay, @Nullable io.papermc.paper.registry.set.RegistryKeySet<EntityType> allowedEntities, boolean dispensable, boolean swappable, boolean damageOnHurt) -
方法概要
修饰符和类型方法说明voidapplyToItem(ItemStack item) static EquippableComponentfromMinecraftComponent(io.papermc.paper.datacomponent.item.Equippable equippable) static io.papermc.paper.datacomponent.DataComponentTypestatic EquippableComponentvoid从类继承的方法 io.github.lijinhong11.mittellib.configuration.ReadWriteItemComponent
read从类继承的方法 io.github.lijinhong11.mittellib.configuration.ReadWriteObject
read
-
构造器详细资料
-
EquippableComponent
public EquippableComponent(@NotNull @NotNull EquipmentSlot slot, @Nullable @Nullable net.kyori.adventure.key.Key equipSound, @Nullable @Nullable net.kyori.adventure.key.Key assetId, @Nullable @Nullable io.papermc.paper.registry.set.RegistryKeySet<EntityType> allowedEntities, boolean dispensable) -
EquippableComponent
public EquippableComponent(@NotNull @NotNull EquipmentSlot slot, @Nullable @Nullable net.kyori.adventure.key.Key equipSound, @Nullable @Nullable net.kyori.adventure.key.Key assetId, @Nullable @Nullable net.kyori.adventure.key.Key cameraOverlay, @Nullable @Nullable io.papermc.paper.registry.set.RegistryKeySet<EntityType> allowedEntities, boolean dispensable, boolean swappable, boolean damageOnHurt)
-
-
方法详细资料
-
fromMinecraftComponent
public static EquippableComponent fromMinecraftComponent(io.papermc.paper.datacomponent.item.Equippable equippable) -
getDataComponentType
public static io.papermc.paper.datacomponent.DataComponentType getDataComponentType() -
readFromSection
-
applyToItem
- 指定者:
applyToItem在类中ReadWriteItemComponent
-
write
- 指定者:
write在类中ReadWriteObject
-