程序包 org.bukkit.block
接口 Crafter
- 所有超级接口:
BlockInventoryHolder
,BlockState
,Container
,InventoryHolder
,Lockable
,Lootable
,Metadatable
,Nameable
,PersistentDataHolder
,TileState
Represents a captured state of a crafter.
-
方法概要
修饰符和类型方法说明int
Gets the number of ticks which this block will remain in the crafting state for.boolean
isSlotDisabled
(int slot) Gets whether the slot at the specified index is disabled and will not have items placed in it.boolean
Gets whether this Crafter is powered.void
setCraftingTicks
(int ticks) Sets the number of ticks which this block will remain in the crafting state for.void
setSlotDisabled
(int slot, boolean disabled) Sets whether the slot at the specified index is disabled and will not have items placed in it.void
setTriggered
(boolean triggered) Sets whether this Crafter is powered.从接口继承的方法 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.block.Container
getInventory, getSnapshotInventory
从接口继承的方法 org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.block.TileState
getPersistentDataContainer
-
方法详细资料
-
getCraftingTicks
int getCraftingTicks()Gets the number of ticks which this block will remain in the crafting state for.- 返回:
- number of ticks remaining
- 另请参阅:
-
setCraftingTicks
void setCraftingTicks(int ticks) Sets the number of ticks which this block will remain in the crafting state for.- 参数:
ticks
- number of ticks remaining- 另请参阅:
-
isSlotDisabled
boolean isSlotDisabled(int slot) Gets whether the slot at the specified index is disabled and will not have items placed in it.- 参数:
slot
- slot index- 返回:
- disabled status
-
setSlotDisabled
void setSlotDisabled(int slot, boolean disabled) Sets whether the slot at the specified index is disabled and will not have items placed in it.- 参数:
slot
- slot indexdisabled
- disabled status
-
isTriggered
boolean isTriggered()Gets whether this Crafter is powered.- 返回:
- powered status
-
setTriggered
void setTriggered(boolean triggered) Sets whether this Crafter is powered.- 参数:
triggered
- powered status
-