Class BlockEntityBanner

All Implemented Interfaces:
Cloneable

public class BlockEntityBanner extends BlockEntitySpawnable
  • Field Details

    • color

      public int color
  • Constructor Details

  • Method Details

    • loadNBT

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

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

      public void saveNBT()
      Description copied from class: BlockEntity
      存储方块实体数据到namedtag
      Overrides:
      saveNBT in class BlockEntity
    • getName

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

      public int getBaseColor()
    • setBaseColor

      public void setBaseColor(DyeColor color)
    • getType

      public int getType()
    • setType

      public void setType(int type)
    • addPattern

      public void addPattern(BannerPattern pattern)
    • getPattern

      public BannerPattern getPattern(int index)
    • removePattern

      public void removePattern(int index)
    • getPatternsSize

      public int getPatternsSize()
    • getSpawnCompound

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

      public DyeColor getDyeColor()