Package net.glowstone.block.entity.state
Class GlowFurnace
java.lang.Object
net.glowstone.block.GlowBlockState
net.glowstone.block.entity.state.GlowContainer
net.glowstone.block.entity.state.GlowFurnace
- All Implemented Interfaces:
com.destroystokyo.paper.loottable.LootableBlockInventory
,com.destroystokyo.paper.loottable.LootableInventory
,org.bukkit.block.BlockState
,org.bukkit.block.Container
,org.bukkit.block.Furnace
,org.bukkit.block.Lockable
,org.bukkit.block.TileState
,org.bukkit.inventory.BlockInventoryHolder
,org.bukkit.inventory.InventoryHolder
,org.bukkit.loot.Lootable
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.persistence.PersistentDataHolder
-
Field Summary
Fields inherited from class net.glowstone.block.GlowBlockState
blockData, data, type
-
Constructor Summary
ConstructorDescriptionGlowFurnace
(GlowBlock block) /** Creates an instance for the given block.GlowFurnace
(GlowBlock block, short burnTime, short cookTime) Creates an instance for the given block. -
Method Summary
Modifier and TypeMethodDescriptionshort
double
short
int
org.bukkit.inventory.FurnaceInventory
int
getRecipeUsedCount
(@NotNull org.bukkit.NamespacedKey furnaceRecipe) org.bukkit.inventory.FurnaceInventory
boolean
hasRecipeUsedCount
(@NotNull org.bukkit.NamespacedKey furnaceRecipe) void
setBurnTime
(short burnTime) void
setCookSpeedMultiplier
(double multiplier) void
setCookTime
(short cookTime) void
setCookTimeTotal
(int cookTimeTotal) void
setRecipesUsed
(@NotNull Map<org.bukkit.inventory.CookingRecipe<?>, Integer> recipesUsed) void
setRecipeUsedCount
(@NotNull org.bukkit.inventory.CookingRecipe<?> furnaceRecipe, int count) boolean
update
(boolean force, boolean applyPhysics) Methods inherited from class net.glowstone.block.entity.state.GlowContainer
clearLootTable, customName, customName, getCustomName, getLastFilled, getLastLooted, getLock, getLootTable, getNextRefill, getPersistentDataContainer, getSeed, hasBeenFilled, hasLootTable, hasPendingRefill, hasPlayerLooted, isLocked, isRefillEnabled, setCustomName, setHasPlayerLooted, setLock, setLootTable, setLootTable, setLootTableSeed, setNextRefill, setSeed
Methods inherited from class net.glowstone.block.GlowBlockState
canEqual, equals, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isCollidable, isFlowed, isPlaced, isSnapshot, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, update
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlock
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update
Methods inherited from interface org.bukkit.block.Lockable
getLock, isLocked, setLock
Methods inherited from interface com.destroystokyo.paper.loottable.LootableBlockInventory
getBlock
Methods inherited from interface com.destroystokyo.paper.loottable.LootableInventory
getLastLooted, hasPlayerLooted, setHasPlayerLooted
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
-
Constructor Details
-
GlowFurnace
/** Creates an instance for the given block.- Parameters:
block
- the furnace block
-
GlowFurnace
Creates an instance for the given block.- Parameters:
block
- the furnace blockburnTime
- the number of ticks before this furnace must consume more fuel, or 0 if not burningcookTime
- the number of ticks the current item has been cooking
-
-
Method Details
-
getCookTimeTotal
public int getCookTimeTotal()- Specified by:
getCookTimeTotal
in interfaceorg.bukkit.block.Furnace
-
setCookTimeTotal
public void setCookTimeTotal(int cookTimeTotal) - Specified by:
setCookTimeTotal
in interfaceorg.bukkit.block.Furnace
-
getRecipesUsed
- Specified by:
getRecipesUsed
in interfaceorg.bukkit.block.Furnace
-
getCookSpeedMultiplier
public double getCookSpeedMultiplier()- Specified by:
getCookSpeedMultiplier
in interfaceorg.bukkit.block.Furnace
-
setCookSpeedMultiplier
public void setCookSpeedMultiplier(double multiplier) - Specified by:
setCookSpeedMultiplier
in interfaceorg.bukkit.block.Furnace
-
getRecipeUsedCount
public int getRecipeUsedCount(@NotNull @NotNull org.bukkit.NamespacedKey furnaceRecipe) - Specified by:
getRecipeUsedCount
in interfaceorg.bukkit.block.Furnace
-
hasRecipeUsedCount
public boolean hasRecipeUsedCount(@NotNull @NotNull org.bukkit.NamespacedKey furnaceRecipe) - Specified by:
hasRecipeUsedCount
in interfaceorg.bukkit.block.Furnace
-
setRecipeUsedCount
public void setRecipeUsedCount(@NotNull @NotNull org.bukkit.inventory.CookingRecipe<?> furnaceRecipe, int count) - Specified by:
setRecipeUsedCount
in interfaceorg.bukkit.block.Furnace
-
setRecipesUsed
public void setRecipesUsed(@NotNull @NotNull Map<org.bukkit.inventory.CookingRecipe<?>, Integer> recipesUsed) - Specified by:
setRecipesUsed
in interfaceorg.bukkit.block.Furnace
-
getInventory
public org.bukkit.inventory.FurnaceInventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.block.Container
- Specified by:
getInventory
in interfaceorg.bukkit.block.Furnace
- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
- Overrides:
getInventory
in classGlowContainer
-
update
public boolean update(boolean force, boolean applyPhysics) - Specified by:
update
in interfaceorg.bukkit.block.BlockState
- Overrides:
update
in classGlowBlockState
-
getSnapshotInventory
public org.bukkit.inventory.FurnaceInventory getSnapshotInventory()- Specified by:
getSnapshotInventory
in interfaceorg.bukkit.block.Container
- Specified by:
getSnapshotInventory
in interfaceorg.bukkit.block.Furnace
- Overrides:
getSnapshotInventory
in classGlowContainer
-
getBurnTime
public short getBurnTime()- Specified by:
getBurnTime
in interfaceorg.bukkit.block.Furnace
-
setBurnTime
public void setBurnTime(short burnTime) - Specified by:
setBurnTime
in interfaceorg.bukkit.block.Furnace
-
getCookTime
public short getCookTime()- Specified by:
getCookTime
in interfaceorg.bukkit.block.Furnace
-
setCookTime
public void setCookTime(short cookTime) - Specified by:
setCookTime
in interfaceorg.bukkit.block.Furnace
-