Class ItemAppleGold

All Implemented Interfaces:
BlockID, ItemID, Cloneable

public class ItemAppleGold extends ItemEdible
Author:
MagicDroidX (Nukkit Project)
  • Constructor Details

    • ItemAppleGold

      public ItemAppleGold()
    • ItemAppleGold

      public ItemAppleGold(Integer meta)
    • ItemAppleGold

      public ItemAppleGold(Integer meta, int count)
  • Method Details

    • onClickAir

      public boolean onClickAir(Player player, Vector3 directionVector)
      Description copied from class: 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.

      Overrides:
      onClickAir in class ItemEdible
      Parameters:
      player - player
      directionVector - direction
      Returns:
      item changed