Package cn.nukkit.item.customitem
Interface CustomItem
- All Superinterfaces:
StringItem
- All Known Implementing Classes:
ItemCustom
,ItemCustomArmor
,ItemCustomBookEnchanted
,ItemCustomEdible
,ItemCustomTool
继承这个类实现自定义物品,重写
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 Summary
Modifier and TypeMethodDescription该方法设置自定义物品的定义定义该自定义物品的材质Methods inherited from interface cn.nukkit.item.StringItem
getId, getNamespaceId
-
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
-