Class BleedSpear
java.lang.Object
net.chen.legacyLand.item.items.BleedSpear
- All Implemented Interfaces:
CustomItem
放血长矛 - 攻击时附加流血(中毒)效果
科技需求:INDUSTRIAL Tier 5
-
Field Summary
Fields inherited from interface CustomItem
ITEM_ID_KEY -
Constructor Summary
ConstructorsConstructorDescriptionBleedSpear(org.bukkit.Material material, int cmd, ItemAttributes attributes) -
Method Summary
Modifier and TypeMethodDescription物品属性,无属性返回 nullorg.bukkit.Material基础材质intgetCmd()CustomModelData 值getId()物品唯一 ID,如 "bleed_spear"材质贴图路径,如 "legacyland:item/bleed_spear"voidonAttack(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack item, org.bukkit.event.entity.EntityDamageByEntityEvent event) 玩家攻击实体时触发Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CustomItem
applyAttributes, createItemStack, onUse, refreshLore
-
Constructor Details
-
BleedSpear
-
-
Method Details
-
getId
Description copied from interface:CustomItem物品唯一 ID,如 "bleed_spear"- Specified by:
getIdin interfaceCustomItem
-
getCmd
public int getCmd()Description copied from interface:CustomItemCustomModelData 值- Specified by:
getCmdin interfaceCustomItem
-
getBaseMaterial
public org.bukkit.Material getBaseMaterial()Description copied from interface:CustomItem基础材质- Specified by:
getBaseMaterialin interfaceCustomItem
-
getTexturePath
Description copied from interface:CustomItem材质贴图路径,如 "legacyland:item/bleed_spear"- Specified by:
getTexturePathin interfaceCustomItem
-
getAttributes
Description copied from interface:CustomItem物品属性,无属性返回 null- Specified by:
getAttributesin interfaceCustomItem
-
onAttack
public void onAttack(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack item, org.bukkit.event.entity.EntityDamageByEntityEvent event) Description copied from interface:CustomItem玩家攻击实体时触发- Specified by:
onAttackin interfaceCustomItem
-