Class LegacyBaseBlockWrapper

java.lang.Object
com.sk89q.worldedit.world.block.BaseBlock
com.sk89q.worldedit.blocks.LegacyBaseBlockWrapper
All Implemented Interfaces:
Filter, TileEntityBlock, Pattern, BlockStateHolder<BaseBlock>, NbtValued
Direct Known Subclasses:
MobSpawnerBlock, SignBlock, SkullBlock

@Deprecated public class LegacyBaseBlockWrapper extends BaseBlock
Deprecated.
  • Constructor Details

    • LegacyBaseBlockWrapper

      protected LegacyBaseBlockWrapper(BlockState blockState)
      Deprecated.
  • Method Details

    • getNbtReference

      @Nullable public LazyReference<org.enginehub.linbus.tree.LinCompoundTag> getNbtReference()
      Deprecated.
      Description copied from interface: NbtValued
      Get the object's NBT data (tile entity data).

      This only needs to be used if you don't want to immediately resolve the data. Otherwise, you probably want NbtValued.getNbt().

      Specified by:
      getNbtReference in interface NbtValued
      Overrides:
      getNbtReference in class BaseBlock
      Returns:
      compound tag, or null
    • setNbtReference

      public void setNbtReference(@Nullable LazyReference<org.enginehub.linbus.tree.LinCompoundTag> nbtData)
      Deprecated.
      Description copied from interface: NbtValued
      Set the object's NBT data (tile entity data).
      Specified by:
      setNbtReference in interface NbtValued
      Overrides:
      setNbtReference in class BaseBlock
      Parameters:
      nbtData - NBT data, or null if no data