Interface Crafter
- All Superinterfaces:
BlockInventoryHolder, BlockState, Container, InventoryHolder, Lockable, Lootable, Metadatable, Nameable, PersistentDataHolder, TileState
-
Method Summary
Modifier 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 BlockInventoryHolder
getBlockMethods inherited from interface BlockState
copy, 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 Container
getInventory, getSnapshotInventoryMethods inherited from interface Lockable
getLock, isLocked, setLock, setLockItemMethods inherited from interface Lootable
getLootTable, getSeed, setLootTable, setSeedMethods inherited from interface Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface Nameable
getCustomName, setCustomNameMethods inherited from interface TileState
getPersistentDataContainer
-
Method Details
-
getCraftingTicks
int getCraftingTicks()Gets the number of ticks which this block will remain in the crafting state for.- Returns:
- number of ticks remaining
- See Also:
-
setCraftingTicks
void 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:
-
isSlotDisabled
boolean 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
-
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.- Parameters:
slot- slot indexdisabled- disabled status
-
isTriggered
boolean isTriggered()Gets whether this Crafter is powered.- Returns:
- powered status
-
setTriggered
void setTriggered(boolean triggered) Sets whether this Crafter is powered.- Parameters:
triggered- powered status
-