Class BleedSpear

java.lang.Object
net.chen.legacyLand.item.items.BleedSpear
All Implemented Interfaces:
CustomItem

public class BleedSpear extends Object implements CustomItem
放血长矛 - 攻击时附加流血(中毒)效果 科技需求:INDUSTRIAL Tier 5
  • Constructor Details

    • BleedSpear

      public BleedSpear(org.bukkit.Material material, int cmd, ItemAttributes attributes)
  • Method Details

    • getId

      public String getId()
      Description copied from interface: CustomItem
      物品唯一 ID,如 "bleed_spear"
      Specified by:
      getId in interface CustomItem
    • getCmd

      public int getCmd()
      Description copied from interface: CustomItem
      CustomModelData 值
      Specified by:
      getCmd in interface CustomItem
    • getBaseMaterial

      public org.bukkit.Material getBaseMaterial()
      Description copied from interface: CustomItem
      基础材质
      Specified by:
      getBaseMaterial in interface CustomItem
    • getTexturePath

      public String getTexturePath()
      Description copied from interface: CustomItem
      材质贴图路径,如 "legacyland:item/bleed_spear"
      Specified by:
      getTexturePath in interface CustomItem
    • getAttributes

      public ItemAttributes getAttributes()
      Description copied from interface: CustomItem
      物品属性,无属性返回 null
      Specified by:
      getAttributes in interface CustomItem
    • 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:
      onAttack in interface CustomItem