程序包 org.bukkit.block
接口 Crafter
- 所有超级接口:
BlockInventoryHolder,BlockState,Container,InventoryHolder,Lockable,Lootable,Metadatable,Nameable,PersistentDataHolder,TileState
代表合成器的捕获状态.
-
方法概要
修饰符和类型方法说明int获取此方块将保持在合成状态的剩余刻数.booleanisSlotDisabled(int slot) 获取指定索引处的槽位是否被禁用, 不会将物品放入其中.boolean获取此合成器是否被激活.voidsetCraftingTicks(int ticks) 设置此方块将保持在合成状态的剩余刻数.voidsetSlotDisabled(int slot, boolean disabled) 设置指定索引处的槽位是否被禁用, 不会将物品放入其中.voidsetTriggered(boolean triggered) 设置此合成器是否被激活.从接口继承的方法 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.block.Lockable
getLock, isLocked, setLock, setLockItem从接口继承的方法 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.
- 返回:
- 剩余刻数
- 另请参阅:
-
setCraftingTicks
void setCraftingTicks(int ticks) 设置此方块将保持在合成状态的剩余刻数.原文: Sets the number of ticks which this block will remain in the crafting state for.
- 参数:
ticks- 剩余刻数- 另请参阅:
-
isSlotDisabled
boolean isSlotDisabled(int slot) 获取指定索引处的槽位是否被禁用, 不会将物品放入其中.原文: Gets whether the slot at the specified index is disabled and will not have items placed in it.
- 参数:
slot- 槽位索引- 返回:
- 禁用状态
-
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- 槽位索引disabled- 禁用状态
-
isTriggered
boolean isTriggered()获取此合成器是否被激活.原文: Gets whether this Crafter is powered.
- 返回:
- 激活状态
-
setTriggered
void setTriggered(boolean triggered) 设置此合成器是否被激活.原文: Sets whether this Crafter is powered.
- 参数:
triggered- 激活状态
-