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).
|
java.lang.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, setItems
containsFuzzy, cycleData, equals, equalsFuzzy, flip, flip, getData, getId, getType, hashCode, hasWildcardData, inIterable, internalSetData, internalSetId, isAir, rotate90, rotate90Reverse, setData, setId, setIdAndData, setType, toString
public 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 java.lang.String getNbtId()
TileEntityBlock
getNbtId
in interface TileEntityBlock
getNbtId
in class BaseBlock
public CompoundTag getNbtData()
NbtValued
NbtValued.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 NbtValued
getNbtData
in class BaseBlock
public void setNbtData(CompoundTag rootTag)
NbtValued
setNbtData
in interface NbtValued
setNbtData
in class BaseBlock
rootTag
- NBT data, or null if no data