Package org.bukkit.block
Interface DecoratedPot
- All Superinterfaces:
BlockState
,Metadatable
,PersistentDataHolder
,TileState
Represents a captured state of a decorated pot.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a shard item which will be dropped when this pot is broken.Gets the shards which will be dropped when this pot is broken.void
Set the shards which will be dropped when this pot is broken.Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer
-
Method Details
-
getShards
Gets the shards which will be dropped when this pot is broken.- Returns:
- shards
-
addShard
Add a shard item which will be dropped when this pot is broken.- Parameters:
material
- shard item
-
setShards
Set the shards which will be dropped when this pot is broken.- Parameters:
shard
- list of items
-