程序包 org.bukkit.block
接口 DecoratedPot
- 所有超级接口:
BlockInventoryHolder,BlockState,InventoryHolder,Metadatable,PersistentDataHolder,TileState
代表一个捕获的饰纹陶罐状态.
原文:Represents a captured state of a decorated pot.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明获取该对象的用户界面项目.已过时。获取指定侧面上的陶片.获取此饰纹陶罐所有侧面及其上陶片的Map.voidsetSherd(@NotNull DecoratedPot.Side side, @Nullable Material sherd) 在指定的侧面上设置陶片.从接口继承的方法 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- 要设置的侧面sherd- 陶片, 或null来设置空白侧面- 抛出:
IllegalArgumentException- 如果陶片既没有被Tag.ITEMS_DECORATED_POT_SHERDS标记, 也不是Material.BRICK, 也不是null
-
getSherd
获取指定侧面上的陶片.原文:Get the sherd on the provided side.
- 参数:
side- 要获取的侧面- 返回:
- 侧面上的陶片, 如果是空白则返回
Material.BRICK
-
getSherds
获取此饰纹陶罐所有侧面及其上陶片的Map. 如果某个侧面没有特定的陶片, 则使用Material.BRICK作为该侧面的值.原文: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.BRICKwill be the value of that side.- 返回:
- 陶片
-
getShards
已过时。请使用getSherds()获取此饰纹陶罐上的陶片. 对于没有特定陶片的面, 使用Material.BRICK代替.原文:Gets the sherds on this decorated pot. For faces without a specific sherd,
Material.BRICKis used in its place.- 返回:
- 陶片
-
getInventory
从接口复制的说明:InventoryHolder获取该对象的用户界面项目.原文:Get the object's inventory.
- 指定者:
getInventory在接口中InventoryHolder- 返回:
- 物品栏
- 另请参阅:
-
getSnapshotInventory
- 返回:
- 快照物品栏
- 另请参阅:
-
getSherds()