Interface CustomItem

All Superinterfaces:
StringItem
All Known Implementing Classes:
ItemCustom, ItemCustomArmor, ItemCustomBookEnchanted, ItemCustomEdible, ItemCustomTool

@PowerNukkitXOnly @Since("1.6.0.0-PNX") public interface CustomItem extends StringItem
继承这个类实现自定义物品,重写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
  • Method Details

    • getTextureName

      String getTextureName()
      定义该自定义物品的材质

      Define the texture of this custom item

      Returns:
      the texture name
    • getDefinition

      CustomItemDefinition getDefinition()
      该方法设置自定义物品的定义

      This method sets the definition of custom item