Class ItemArmorStand

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

@Since("1.4.0.0-PN") public class ItemArmorStand extends Item
  • Constructor Details

    • ItemArmorStand

      @Since("1.4.0.0-PN") public ItemArmorStand()
    • ItemArmorStand

      @Since("1.4.0.0-PN") public ItemArmorStand(Integer meta)
    • ItemArmorStand

      @Since("1.4.0.0-PN") public ItemArmorStand(Integer meta, int count)
  • Method Details

    • canBeActivated

      public boolean canBeActivated()
      Overrides:
      canBeActivated in class Item
    • getMaxStackSize

      public int getMaxStackSize()
      Overrides:
      getMaxStackSize in class Item
    • onActivate

      public boolean onActivate(Level level, Player player, Block block, Block target, BlockFace face, double fx, double fy, double fz)
      Overrides:
      onActivate in class Item
    • removeForPlacement

      @PowerNukkitOnly @Since("1.4.0.0-PN") protected boolean removeForPlacement(Block block)
      Parameters:
      block - The block which is in the same space as the armor stand.
      Returns:
      true if the armor stand entity can be placed