Class ItemCustom

All Implemented Interfaces:
BlockID, CustomItem, ItemID, StringItem, Cloneable

@PowerNukkitXOnly @Since("1.6.0.0-PNX") public abstract class ItemCustom extends StringItemBase implements CustomItem
继承这个类实现自定义物品,重写Item中的方法控制方块属性

Inherit this class to implement a custom item, override the methods in the Item to control the feature of the item.

Author:
lt_name
  • Constructor Details

    • ItemCustom

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

      public ItemCustom(@NotNull String id, @Nullable String name, @NotNull String textureName)
  • Method Details