类 ItemCustom

java.lang.Object
cn.nukkit.item.Item
cn.nukkit.item.StringItem
cn.nukkit.item.customitem.ItemCustom
所有已实现的接口:
BlockID, ItemID, Cloneable
直接已知子类:
ItemCustomArmor, ItemCustomEdible, ItemCustomTool

@PowerNukkitXOnly @Since("1.6.0.0-PNX") public abstract class ItemCustom extends StringItem
作者:
lt_name
  • 构造器详细资料

    • ItemCustom

      public ItemCustom(@Nonnull String id, @Nullable String name)
    • ItemCustom

      public ItemCustom(@Nonnull String id, @Nullable String name, @Nonnull String textureName)
  • 方法详细资料

    • allowOffHand

      public boolean allowOffHand()
    • getCreativeCategory

      public int getCreativeCategory()
    • getEnchantableValue

      public int getEnchantableValue()
    • getComponentsData

      public CompoundTag getComponentsData()
    • clone

      public ItemCustom clone()
      覆盖:
      clone 在类中 StringItem
    • getRuntimeId

      public int getRuntimeId()
    • setTextureName

      public void setTextureName(String textureName)
    • getTextureName

      public String getTextureName()
    • setTextureSize

      public void setTextureSize(int textureSize)
    • getTextureSize

      public int getTextureSize()