程序包 org.bukkit.block
接口 DecoratedPot
- 所有超级接口:
BlockInventoryHolder
,BlockState
,InventoryHolder
,Metadatable
,PersistentDataHolder
,TileState
Represents a captured state of a decorated pot.
-
嵌套类概要
-
方法概要
修饰符和类型方法说明获取该对象的用户界面项目.已过时。Get the sherd on the provided side.Gets a Map of all sides on this decorated pot and the sherds on them.void
setSherd
(@NotNull DecoratedPot.Side side, @Nullable Material sherd) Set the sherd on the provided side.从接口继承的方法 org.bukkit.inventory.BlockInventoryHolder
getBlock
从接口继承的方法 org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.block.TileState
getPersistentDataContainer
-
方法详细资料
-
setSherd
Set the sherd on the provided side.- 参数:
side
- the side to setsherd
- the sherd, or null to set a blank side.- 抛出:
IllegalArgumentException
- if the sherd is not either tagged byTag.ITEMS_DECORATED_POT_SHERDS
,Material.BRICK
, ornull
-
getSherd
Get the sherd on the provided side.- 参数:
side
- the side to get- 返回:
- the sherd on the side or
Material.BRICK
if it's blank
-
getSherds
Gets 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.BRICK
will be the value of that side.- 返回:
- the sherds
-
getShards
已过时。in favor ofgetSherds()
Gets the sherds on this decorated pot. For faces without a specific sherd,Material.BRICK
is used in its place.- 返回:
- the sherds
-
getInventory
从接口复制的说明:InventoryHolder
获取该对象的用户界面项目.原文:Get the object's inventory.
- 指定者:
getInventory
在接口中InventoryHolder
- 返回:
- inventory
- 另请参阅:
-
getSnapshotInventory
- 返回:
- snapshot inventory
- 另请参阅:
-
getSherds()