Package com.sk89q.worldedit.blocks
Class LegacyBaseBlockWrapper
java.lang.Object
com.sk89q.worldedit.world.block.BaseBlock
com.sk89q.worldedit.blocks.LegacyBaseBlockWrapper
- All Implemented Interfaces:
TileEntityBlock
,Pattern
,BlockStateHolder<BaseBlock>
,NbtValued
- Direct Known Subclasses:
MobSpawnerBlock
,SignBlock
,SkullBlock
Deprecated.
-
Constructor Summary
ModifierConstructorDescriptionprotected
LegacyBaseBlockWrapper
(BlockState blockState) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionLazyReference<org.enginehub.linbus.tree.LinCompoundTag>
Deprecated.Get the object's NBT data (tile entity data).void
setNbtReference
(LazyReference<org.enginehub.linbus.tree.LinCompoundTag> nbtData) Deprecated.Set the object's NBT data (tile entity data).Methods inherited from class com.sk89q.worldedit.world.block.BaseBlock
equals, equalsFuzzy, getBlockType, getNbtId, getState, getStates, hashCode, toBaseBlock, toBaseBlock, toImmutableState, toString, with
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.world.block.BlockStateHolder
applyBlock, getAsString, toBaseBlock, toBaseBlock
Methods inherited from interface com.sk89q.worldedit.world.NbtValued
getNbt, getNbtData, hasNbtData, setNbt, setNbtData
-
Constructor Details
-
LegacyBaseBlockWrapper
Deprecated.
-
-
Method Details
-
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()
.Note: This method may be non-null while
NbtValued.getNbt()
returnsnull
. Do NOT rely on this method to determine whether the object has NBT data.- Specified by:
getNbtReference
in interfaceNbtValued
- Overrides:
getNbtReference
in classBaseBlock
- 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 interfaceNbtValued
- Overrides:
setNbtReference
in classBaseBlock
- Parameters:
nbtData
- NBT data, or null if no data
-