Package org.bukkit.block
Interface DecoratedPot
- All Superinterfaces:
- BlockInventoryHolder,- BlockState,- InventoryHolder,- Metadatable,- PersistentDataHolder,- TileState
Represents a captured state of a decorated pot.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionGet the object's inventory.Deprecated.getSherd(DecoratedPot.Side side) Get the sherd on the provided side.Gets a Map of all sides on this decorated pot and the sherds on them.voidsetSherd(DecoratedPot.Side side, Material sherd) Set the sherd on the provided side.Methods inherited from interface org.bukkit.inventory.BlockInventoryHoldergetBlockMethods inherited from interface org.bukkit.block.BlockStatecopy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer
- 
Method Details- 
setSherdSet the sherd on the provided side.- Parameters:
- side- the side to set
- sherd- the sherd, or null to set a blank side.
- Throws:
- IllegalArgumentException- if the sherd is not either tagged by- Tag.ITEMS_DECORATED_POT_SHERDS,- Material.BRICK, or- null
 
- 
getSherdGet the sherd on the provided side.- Parameters:
- side- the side to get
- Returns:
- the sherd on the side or Material.BRICKif it's blank
 
- 
getSherdsGets a Map of all sides on this decorated pot and the sherds on them. If a side does not have a specific sherd on it,Material.BRICKwill be the value of that side.- Returns:
- the sherds
 
- 
getShardsDeprecated.in favor ofgetSherds()Gets the sherds on this decorated pot. For faces without a specific sherd,Material.BRICKis used in its place.- Returns:
- the sherds
 
- 
getInventoryDescription copied from interface:InventoryHolderGet the object's inventory.- Specified by:
- getInventoryin interface- InventoryHolder
- Returns:
- inventory
- See Also:
 
- 
getSnapshotInventory- Returns:
- snapshot inventory
- See Also:
 
 
- 
getSherds()