Class ItemAppleGoldEnchanted

java.lang.Object
cn.nukkit.item.Item
cn.nukkit.item.ItemEdible
cn.nukkit.item.ItemAppleGoldEnchanted
All Implemented Interfaces:
BlockID, ItemID, Cloneable

public class ItemAppleGoldEnchanted extends ItemEdible
Since:
2016/1/14
Author:
Snake1999
  • Constructor Details

    • ItemAppleGoldEnchanted

      public ItemAppleGoldEnchanted()
    • ItemAppleGoldEnchanted

      public ItemAppleGoldEnchanted(Integer meta)
    • ItemAppleGoldEnchanted

      public ItemAppleGoldEnchanted(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