Package org.bukkit.block
Interface Crafter
- All Superinterfaces:
- BlockInventoryHolder,- BlockState,- Container,- InventoryHolder,- Lockable,- Lootable,- Metadatable,- Nameable,- PersistentDataHolder,- TileState
Represents a captured state of a crafter.
- 
Method SummaryModifier and TypeMethodDescriptionintGets the number of ticks which this block will remain in the crafting state for.booleanisSlotDisabled(int slot) Gets whether the slot at the specified index is disabled and will not have items placed in it.booleanGets whether this Crafter is powered.voidsetCraftingTicks(int ticks) Sets the number of ticks which this block will remain in the crafting state for.voidsetSlotDisabled(int slot, boolean disabled) Sets whether the slot at the specified index is disabled and will not have items placed in it.voidsetTriggered(boolean triggered) Sets whether this Crafter is powered.Methods inherited from interface org.bukkit.inventory.BlockInventoryHoldergetBlockMethods inherited from interface org.bukkit.block.BlockStatecopy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.block.ContainergetInventory, getSnapshotInventoryMethods inherited from interface org.bukkit.block.LockablegetLock, isLocked, setLock, setLockItemMethods inherited from interface org.bukkit.loot.LootablegetLootTable, getSeed, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer
- 
Method Details- 
getCraftingTicksint getCraftingTicks()Gets the number of ticks which this block will remain in the crafting state for.- Returns:
- number of ticks remaining
- See Also:
 
- 
setCraftingTicksvoid setCraftingTicks(int ticks) Sets the number of ticks which this block will remain in the crafting state for.- Parameters:
- ticks- number of ticks remaining
- See Also:
 
- 
isSlotDisabledboolean isSlotDisabled(int slot) Gets whether the slot at the specified index is disabled and will not have items placed in it.- Parameters:
- slot- slot index
- Returns:
- disabled status
 
- 
setSlotDisabledvoid setSlotDisabled(int slot, boolean disabled) Sets whether the slot at the specified index is disabled and will not have items placed in it.- Parameters:
- slot- slot index
- disabled- disabled status
 
- 
isTriggeredboolean isTriggered()Gets whether this Crafter is powered.- Returns:
- powered status
 
- 
setTriggeredvoid setTriggered(boolean triggered) Sets whether this Crafter is powered.- Parameters:
- triggered- powered status
 
 
-