public class FurnaceBlock extends ContainerBlock
| Constructor and Description |
|---|
FurnaceBlock(int type)
Construct an empty furnace block with the default orientation.
|
FurnaceBlock(int type,
int data)
Construct an empty furnace block with a given orientation.
|
FurnaceBlock(int type,
int data,
BaseItemStack[] items)
Construct an furnace block with a given orientation and inventory.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getBurnTime()
Get the burn time.
|
short |
getCookTime()
Get the cook time.
|
CompoundTag |
getNbtData()
Get the object's NBT data (tile entity data).
|
String |
getNbtId()
Return the name of the title entity ID.
|
void |
setBurnTime(short burnTime)
Set the burn time.
|
void |
setCookTime(short cookTime)
Set the cook time.
|
void |
setNbtData(CompoundTag rootTag)
Set the object's NBT data (tile entity data).
|
deserializeInventory, deserializeItem, getItems, hasNbtData, serializeInventory, serializeItem, setItemscontainsFuzzy, cycleData, equals, equalsFuzzy, flip, flip, getData, getId, getType, hashCode, hasWildcardData, inIterable, internalSetData, internalSetId, isAir, rotate90, rotate90Reverse, setData, setId, setIdAndData, setType, toStringpublic FurnaceBlock(int type)
type - type IDpublic FurnaceBlock(int type,
int data)
type - type IDdata - orientationpublic FurnaceBlock(int type,
int data,
BaseItemStack[] items)
type - type IDdata - orientationitems - inventory itemspublic short getBurnTime()
public void setBurnTime(short burnTime)
burnTime - the burn timepublic short getCookTime()
public void setCookTime(short cookTime)
cookTime - the cook time to setpublic String getNbtId()
TileEntityBlockgetNbtId in interface TileEntityBlockgetNbtId in class BaseBlockpublic CompoundTag getNbtData()
NbtValuedNbtValued.setNbtData(CompoundTag)
so that the instance knows of the changes. Making changes without
calling NbtValued.setNbtData(CompoundTag) could have unintended
consequences.
NbtValued.hasNbtData() must return true if and only if method does
not return null.
getNbtData in interface NbtValuedgetNbtData in class BaseBlockpublic void setNbtData(CompoundTag rootTag)
NbtValuedsetNbtData in interface NbtValuedsetNbtData in class BaseBlockrootTag - NBT data, or null if no dataCopyright © 2010-2014. All Rights Reserved.