Class BlockEntityItemFrame

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
BlockEntityGlowItemFrame

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

  • Method Details

    • loadNBT

      @Since("1.19.60-r1") public void loadNBT()
      Description copied from class: BlockEntity
      从方块实体的namedtag中读取数据
      Overrides:
      loadNBT in class BlockEntity
    • 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)