程序包 cn.nukkit.item

类 ItemEmptyMap

java.lang.Object
cn.nukkit.item.Item
cn.nukkit.item.ItemEmptyMap
所有已实现的接口:
BlockID, ItemID, Cloneable

public class ItemEmptyMap extends Item
  • 构造器详细资料

    • ItemEmptyMap

      public ItemEmptyMap()
    • ItemEmptyMap

      public ItemEmptyMap(Integer meta)
    • ItemEmptyMap

      public ItemEmptyMap(Integer meta, int count)
  • 方法详细资料

    • setDamage

      public void setDamage(Integer meta)
      覆盖:
      setDamage 在类中 Item
    • onActivate

      public boolean onActivate(Level level, Player player, Block block, Block target, BlockFace face, double fx, double fy, double fz)
      覆盖:
      onActivate 在类中 Item
    • onClickAir

      public boolean onClickAir(Player player, Vector3 directionVector)
      从类复制的说明: Item
      Called when a player uses the item on air, for example throwing a projectile. Returns whether the item was changed, for example count decrease or durability change.
      覆盖:
      onClickAir 在类中 Item
      参数:
      player - player
      directionVector - direction
      返回:
      item changed