Interface Bed
- All Superinterfaces:
BlockState, Colorable, Metadatable, PersistentDataHolder, PersistentDataViewHolder, TileState
Deprecated, for removal: This API element is subject to removal in a future version.
bed block entity no longer exists
Represents a captured state of a bed.
-
Method Summary
Methods inherited from interface BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, isSuffocating, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface TileState
getPersistentDataContainer, isSnapshot
-
Method Details
-
getColor
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ColorableGets the color of this object.
This may be null to represent the default color of an object, if the object has a special default color (e.g Shulkers). -
setColor
@Contract("_ -> fail") @Deprecated(forRemoval=true) void setColor(@UndefinedNullability("not supported") DyeColor color) Deprecated, for removal: This API element is subject to removal in a future version.Unsupported- Specified by:
setColorin interfaceColorable- Parameters:
color- The color of the object, as a DyeColor.- Throws:
UnsupportedOperationException- not supported, set the block type
-