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
ConstructorsConstructorDescriptionGlowFurnace(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 TypeMethodDescriptionshortdoubleshortintorg.bukkit.inventory.FurnaceInventoryorg.bukkit.inventory.FurnaceInventoryvoidsetBurnTime(short burnTime) voidsetCookSpeedMultiplier(double multiplier) voidsetCookTime(short cookTime) voidsetCookTimeTotal(int cookTimeTotal) booleanupdate(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, setSeedMethods 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, isFlowed, isPlaced, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, updateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlockMethods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, updateMethods inherited from interface org.bukkit.block.Lockable
getLock, isLocked, setLockMethods inherited from interface com.destroystokyo.paper.loottable.LootableBlockInventory
getBlockMethods inherited from interface com.destroystokyo.paper.loottable.LootableInventory
getLastLooted, hasPlayerLooted, setHasPlayerLootedMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer
-
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:
getCookTimeTotalin interfaceorg.bukkit.block.Furnace
-
setCookTimeTotal
public void setCookTimeTotal(int cookTimeTotal) - Specified by:
setCookTimeTotalin interfaceorg.bukkit.block.Furnace
-
getCookSpeedMultiplier
public double getCookSpeedMultiplier()- Specified by:
getCookSpeedMultiplierin interfaceorg.bukkit.block.Furnace
-
setCookSpeedMultiplier
public void setCookSpeedMultiplier(double multiplier) - Specified by:
setCookSpeedMultiplierin interfaceorg.bukkit.block.Furnace
-
getInventory
public org.bukkit.inventory.FurnaceInventory getInventory()- Specified by:
getInventoryin interfaceorg.bukkit.block.Container- Specified by:
getInventoryin interfaceorg.bukkit.block.Furnace- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder- Overrides:
getInventoryin classGlowContainer
-
update
public boolean update(boolean force, boolean applyPhysics) - Specified by:
updatein interfaceorg.bukkit.block.BlockState- Overrides:
updatein classGlowBlockState
-
getSnapshotInventory
public org.bukkit.inventory.FurnaceInventory getSnapshotInventory()- Specified by:
getSnapshotInventoryin interfaceorg.bukkit.block.Container- Specified by:
getSnapshotInventoryin interfaceorg.bukkit.block.Furnace- Overrides:
getSnapshotInventoryin classGlowContainer
-
getBurnTime
public short getBurnTime()- Specified by:
getBurnTimein interfaceorg.bukkit.block.Furnace
-
setBurnTime
public void setBurnTime(short burnTime) - Specified by:
setBurnTimein interfaceorg.bukkit.block.Furnace
-
getCookTime
public short getCookTime()- Specified by:
getCookTimein interfaceorg.bukkit.block.Furnace
-
setCookTime
public void setCookTime(short cookTime) - Specified by:
setCookTimein interfaceorg.bukkit.block.Furnace
-