Package com.sk89q.worldedit.blocks
Class SignBlock
java.lang.Object
com.sk89q.worldedit.world.block.BaseBlock
com.sk89q.worldedit.blocks.LegacyBaseBlockWrapper
com.sk89q.worldedit.blocks.SignBlock
- All Implemented Interfaces:
Filter
,TileEntityBlock
,Pattern
,BlockStateHolder<BaseBlock>
,NbtValued
Deprecated.
WorldEdit does not handle interpreting NBT,
deprecated for removal without replacement
Represents a sign block.
-
Constructor Summary
ConstructorDescriptionSignBlock
(BlockState blockState, String[] text) Deprecated.Construct the sign with text. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getNbtId()
Deprecated.Return the name of the title entity ID.String[]
getText()
Deprecated.Get the text.boolean
Deprecated.void
setNbtData
(CompoundTag rootTag) Deprecated.void
Deprecated.Set the text.Methods inherited from class com.sk89q.worldedit.blocks.LegacyBaseBlockWrapper
getNbtReference, setNbtReference
Methods inherited from class com.sk89q.worldedit.world.block.BaseBlock
apply, applyTileEntity, equals, equalsFuzzy, getBlockType, getInternalBlockTypeId, getInternalId, getInternalPropertiesId, getMaterial, getOrdinal, getOrdinalChar, getState, getState, getState, getStates, hashCode, toBaseBlock, toBaseBlock, toBlockState, toImmutableState, toString, with, with, withPropertyId
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, toBaseBlock, toBaseBlock
Methods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finish, finishChunk, join
Methods inherited from interface com.sk89q.worldedit.function.pattern.Pattern
apply, applyBlock, fork, size
-
Constructor Details
-
SignBlock
Deprecated.Construct the sign with text.- Parameters:
blockState
- The block statetext
- lines of text
-
-
Method Details
-
getText
Deprecated.Get the text.- Returns:
- the text
-
setText
Deprecated.Set the text.- Parameters:
text
- the text to set
-
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
Deprecated.Description copied from interface:TileEntityBlock
Return the name of the title entity ID.- Specified by:
getNbtId
in interfaceTileEntityBlock
- Overrides:
getNbtId
in classBaseBlock
- Returns:
- tile entity ID, non-null string
-
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 toNbtValued.setNbtData(CompoundTag)
so that the instance knows of the changes. Making changes without callingNbtValued.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.Description copied from interface:NbtValued
Set the object's NBT data (tile entity data).- Parameters:
rootTag
- NBT data, or null if no data
-