Package org.bukkit.block
Interface Crafter
- All Superinterfaces:
BlockInventoryHolder
,BlockState
,Container
,InventoryHolder
,Lockable
,LockableTileState
,Lootable
,LootableBlockInventory
,LootableInventory
,Metadatable
,Nameable
,PersistentDataHolder
,TileState
@Experimental
@MinecraftExperimental(UPDATE_1_21)
public interface Crafter
extends Container, LootableBlockInventory
Represents a captured state of a crafter.
-
Method Summary
Modifier and TypeMethodDescriptionint
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.Methods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlock
Methods inherited from interface org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface org.bukkit.block.Container
getInventory, getSnapshotInventory
Methods inherited from interface org.bukkit.loot.Lootable
clearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeed
Methods inherited from interface com.destroystokyo.paper.loottable.LootableBlockInventory
getBlock
Methods inherited from interface com.destroystokyo.paper.loottable.LootableInventory
canPlayerLoot, getLastFilled, getLastLooted, getLastLooted, getNextRefill, hasBeenFilled, hasPendingRefill, hasPlayerLooted, hasPlayerLooted, isRefillEnabled, setHasPlayerLooted, setHasPlayerLooted, setNextRefill
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshot
-
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
-