public class GlowFurnace extends GlowContainer implements org.bukkit.block.Furnace
data, typeId
Constructor and Description |
---|
GlowFurnace(GlowBlock block)
/**
Creates an instance for the given block.
|
GlowFurnace(GlowBlock block,
short burnTime,
short cookTime)
Creates an instance for the given block.
|
Modifier and Type | Method and Description |
---|---|
short |
getBurnTime() |
short |
getCookTime() |
org.bukkit.inventory.FurnaceInventory |
getInventory() |
org.bukkit.inventory.FurnaceInventory |
getSnapshotInventory() |
void |
setBurnTime(short burnTime) |
void |
setCookTime(short cookTime) |
boolean |
update(boolean force,
boolean applyPhysics) |
clearLootTable, getCustomName, getLastFilled, getLastLooted, getLock, getLootTableName, getLootTableSeed, getNextRefill, hasBeenFilled, hasLootTable, hasPendingRefill, hasPlayerLooted, isLocked, isRefillEnabled, setCustomName, setHasPlayerLooted, setLock, setLootTable, setLootTable, setLootTableSeed, setNextRefill
equals, getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, hashCode, hasMetadata, isFlowed, isPlaced, removeMetadata, setData, setFlowed, setMetadata, setRawData, setType, setTypeId, update, update
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update
public GlowFurnace(GlowBlock block)
block
- the furnace blockpublic GlowFurnace(GlowBlock block, short burnTime, short cookTime)
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 cookingpublic org.bukkit.inventory.FurnaceInventory getInventory()
getInventory
in interface org.bukkit.block.Container
getInventory
in interface org.bukkit.block.Furnace
getInventory
in interface org.bukkit.inventory.InventoryHolder
public boolean update(boolean force, boolean applyPhysics)
update
in interface org.bukkit.block.BlockState
update
in class GlowBlockState
public org.bukkit.inventory.FurnaceInventory getSnapshotInventory()
getSnapshotInventory
in interface org.bukkit.block.Container
getSnapshotInventory
in interface org.bukkit.block.Furnace
getSnapshotInventory
in class GlowContainer
public short getBurnTime()
getBurnTime
in interface org.bukkit.block.Furnace
public void setBurnTime(short burnTime)
setBurnTime
in interface org.bukkit.block.Furnace
public short getCookTime()
getCookTime
in interface org.bukkit.block.Furnace
public void setCookTime(short cookTime)
setCookTime
in interface org.bukkit.block.Furnace
Copyright © 2021. All rights reserved.