Package com.sk89q.worldedit.blocks
Class SkullBlock
java.lang.Object
com.sk89q.worldedit.world.block.BaseBlock
com.sk89q.worldedit.blocks.SkullBlock
- All Implemented Interfaces:
Filter
,TileEntityBlock
,Pattern
,BlockStateHolder<BaseBlock>
,NbtValued
Deprecated, for removal: This API element is subject to removal in a future version.
WorldEdit does not handle interpreting NBT,
deprecated for removal without replacement
A skull block.
-
Constructor Summary
ConstructorDescriptionSkullBlock
(BlockState state) Deprecated, for removal: This API element is subject to removal in a future version.Construct the skull block with a default type of skelton.SkullBlock
(BlockState blockState, String owner) Deprecated, for removal: This API element is subject to removal in a future version.Construct the skull block with a given rotation and owner. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Get the object's NBT data (tile entity data).getNbtId()
Deprecated, for removal: This API element is subject to removal in a future version.Return the name of the title entity ID.getOwner()
Deprecated, for removal: This API element is subject to removal in a future version.Get the skull's owner.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the block contains NBT data.void
setNbtData
(CompoundTag rootTag) Deprecated, for removal: This API element is subject to removal in a future version.Set the object's NBT data (tile entity data).void
Deprecated, for removal: This API element is subject to removal in a future version.Set the skull's owner.Methods inherited from class com.sk89q.worldedit.world.block.BaseBlock
apply, applyTileEntity, equals, equalsFuzzy, getBlockType, getInternalBlockTypeId, getInternalId, getInternalPropertiesId, getMaterial, getNbtReference, getOrdinal, getOrdinalChar, getState, getState, getState, getStates, hashCode, setNbtReference, 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, finishChunk, join
Methods inherited from interface com.sk89q.worldedit.function.pattern.Pattern
apply, applyBlock, fork, size
-
Constructor Details
-
SkullBlock
Deprecated, for removal: This API element is subject to removal in a future version.Construct the skull block with a default type of skelton.- Parameters:
state
- BlockState to set
-
SkullBlock
Deprecated, for removal: This API element is subject to removal in a future version.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 setowner
- name of player
-
-
Method Details
-
setOwner
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Get the skull's owner. Returns null if unset.- Returns:
- player name or null
-
hasNbtData
public boolean hasNbtData()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Description copied from interface:NbtValued
Set the object's NBT data (tile entity data).- Parameters:
rootTag
- NBT data, or null if no data
-