Class BlockEntityItemFrame

All Implemented Interfaces:
Cloneable

public class BlockEntityItemFrame extends BlockEntitySpawnable
Since:
03.07.2016
Author:
Pub4Game
  • Constructor Details

  • Method Details

    • initBlockEntity

      protected void initBlockEntity()
      Overrides:
      initBlockEntity in class BlockEntitySpawnable
    • getName

      public String getName()
      Overrides:
      getName in class BlockEntity
    • isBlockEntityValid

      public boolean isBlockEntityValid()
      Specified by:
      isBlockEntityValid in class BlockEntity
    • getItemRotation

      public int getItemRotation()
    • setItemRotation

      public void setItemRotation(int itemRotation)
    • getItem

      public Item getItem()
    • setItem

      public void setItem(Item item)
    • setItem

      public void setItem(Item item, boolean setChanged)
    • getItemDropChance

      public float getItemDropChance()
    • setItemDropChance

      public void setItemDropChance(float chance)
    • setDirty

      public void setDirty()
      Overrides:
      setDirty in class BlockEntity
    • getSpawnCompound

      public CompoundTag getSpawnCompound()
      Overrides:
      getSpawnCompound in class BlockEntitySpawnable
    • getAnalogOutput

      public int getAnalogOutput()
    • dropItem

      @Since("1.4.0.0-PN") public boolean dropItem(Player player)
    • dropItemAndGetEntity

      @PowerNukkitOnly @Since("1.4.0.0-PN") @Nullable public EntityItem dropItemAndGetEntity(@Nullable Player player)