All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.item.customitem.CustomItem Maven / Gradle / Ivy

package cn.nukkit.item.customitem;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.item.Item;
import cn.nukkit.item.StringItem;

/**
 * 继承这个类实现自定义物品,重写{@link Item}中的方法控制方块属性
 * 

* Inherit this class to implement a custom item, override the methods in the {@link Item} to control the feature of the item. * * @author lt_name */ @PowerNukkitXOnly @Since("1.6.0.0-PNX") public interface CustomItem extends StringItem { /** * 定义该自定义物品的材质 *

* Define the texture of this custom item * * @return the texture name */ String getTextureName(); /** * 该方法设置自定义物品的定义 *

* This method sets the definition of custom item */ CustomItemDefinition getDefinition(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy