Class SkullBlock

All Implemented Interfaces:
TileEntityBlock, Pattern, BlockStateHolder<BaseBlock>, NbtValued

@Deprecated public class SkullBlock extends LegacyBaseBlockWrapper
Deprecated.
WorldEdit does not handle interpreting NBT, deprecated for removal without replacement
A skull block.
  • Constructor Details

    • SkullBlock

      public SkullBlock(BlockState state)
      Deprecated.
      Construct the skull block with a default type of skelton.
      Parameters:
      state - BlockState to set
    • SkullBlock

      public SkullBlock(BlockState blockState, String owner)
      Deprecated.
      Construct the skull block with a given rotation and owner. The type is assumed to be player unless owner is null or empty.
      Parameters:
      blockState - BlockState to set
      owner - name of player
  • Method Details

    • setOwner

      public void setOwner(String owner)
      Deprecated.
      Set the skull's owner. Automatically sets type to player if not empty or null.
      Parameters:
      owner - player name to set the skull to
    • getOwner

      public String getOwner()
      Deprecated.
      Get the skull's owner. Returns null if unset.
      Returns:
      player name or null
    • hasNbtData

      @Deprecated public boolean hasNbtData()
      Deprecated.
      Description copied from interface: NbtValued
      Returns whether the block contains NBT data. NbtValued.getNbtData() must not return null if this method returns true.
      Returns:
      true if there is NBT data
    • getNbtId

      public String getNbtId()
      Deprecated.
      Description copied from interface: TileEntityBlock
      Return the name of the title entity ID.
      Specified by:
      getNbtId in interface TileEntityBlock
      Overrides:
      getNbtId in class BaseBlock
      Returns:
      tile entity ID, non-null string
    • getNbtData

      @Deprecated public CompoundTag getNbtData()
      Deprecated.
      Description copied from interface: NbtValued
      Get the object's NBT data (tile entity data). The returned tag, if modified in any way, should be sent to NbtValued.setNbtData(CompoundTag) so that the instance knows of the changes. Making changes without calling NbtValued.setNbtData(CompoundTag) could have unintended consequences.

      NbtValued.hasNbtData() must return true if and only if method does not return null.

      Returns:
      compound tag, or null
    • setNbtData

      @Deprecated public void setNbtData(CompoundTag rootTag)
      Deprecated.
      Description copied from interface: NbtValued
      Set the object's NBT data (tile entity data).
      Parameters:
      rootTag - NBT data, or null if no data