Class BaseBlock

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

public class BaseBlock extends Object implements BlockStateHolder<BaseBlock>, TileEntityBlock
Represents a "snapshot" of a block with NBT Data.

An instance of this block contains all the information needed to accurately reproduce the block, provided that the instance was made correctly. In some implementations, it may not be possible to get a snapshot of blocks correctly, so, for example, the NBT data for a block may be missing.

  • Constructor Details

    • BaseBlock

      protected BaseBlock(BlockState blockState)
      Construct a block with a state.
      Parameters:
      blockState - The blockstate
    • BaseBlock

      @Deprecated protected BaseBlock(BlockState state, CompoundTag nbtData)
      Deprecated.
      Construct a block with the given ID, data value and NBT data structure.
      Parameters:
      state - The block state
      nbtData - NBT data, which must be provided
    • BaseBlock

      protected BaseBlock(BlockState state, LazyReference<org.enginehub.linbus.tree.LinCompoundTag> nbtData)
      Construct a block with the given ID, data value and NBT data structure.
      Parameters:
      state - The block state
      nbtData - NBT data, which must be provided
  • Method Details