BlastFurnace
extends Furnace
in package
Table of Contents
- TAG_BURN_TIME = "BurnTime"
- TAG_COOK_TIME = "CookTime"
- TAG_ID = "id"
- TAG_MAX_TIME = "MaxTime"
- TAG_X = "x"
- TAG_Y = "y"
- TAG_Z = "z"
- $closed : bool
- $inventory : FurnaceInventory
- $position : Position
- $timings : TimingsHandler
- $cookTime : int
- $customName : string|null
- $dirty : bool
- $lock : string|null
- $maxFuelTime : int
- $remainingFuelTime : int
- $spawnCompoundCache : CacheableNbt|null
- __construct() : mixed
- __destruct() : mixed
- canOpenWith() : bool
- close() : void
- copyDataFromItem() : void
- getBlock() : Block
- getCleanedNBT() : CompoundTag|null
- getDefaultName() : string
- getFurnaceType() : FurnaceType
- getInventory() : FurnaceInventory
- getName() : string
- getPosition() : Position
- getRealInventory() : Inventory
- getSerializedSpawnCompound() : CacheableNbt
- Returns encoded NBT (varint, little-endian) used to spawn this tile to clients. Uses cache where possible, populates cache if it is null.
- getSpawnCompound() : CompoundTag
- hasName() : bool
- isClosed() : bool
- isDirty() : bool
- Returns whether the tile needs to be respawned to viewers.
- onBlockDestroyed() : void
- Called when the tile's block is destroyed.
- onUpdate() : bool
- readSaveData() : void
- saveNBT() : CompoundTag
- setDirty() : void
- setName() : void
- addAdditionalSpawnData() : void
- An extension to getSpawnCompound() for further modifying the generic tile NBT.
- checkFuel() : void
- loadItems() : void
- loadName() : void
- onBlockDestroyedHook() : void
- Override this method to do actions you need to do when this tile is destroyed due to block being broken.
- onStartSmelting() : void
- onStopSmelting() : void
- saveItems() : void
- saveName() : void
- writeSaveData() : void
- Writes additional save data to a CompoundTag, not including generic things like ID and coordinates.
Constants
TAG_BURN_TIME
public
mixed
TAG_BURN_TIME
= "BurnTime"
TAG_COOK_TIME
public
mixed
TAG_COOK_TIME
= "CookTime"
TAG_ID
public
mixed
TAG_ID
= "id"
TAG_MAX_TIME
public
mixed
TAG_MAX_TIME
= "MaxTime"
TAG_X
public
mixed
TAG_X
= "x"
TAG_Y
public
mixed
TAG_Y
= "y"
TAG_Z
public
mixed
TAG_Z
= "z"
Properties
$closed
public
bool
$closed
= false
$inventory
protected
FurnaceInventory
$inventory
$position
protected
Position
$position
$timings
protected
TimingsHandler
$timings
$cookTime
private
int
$cookTime
= 0
$customName
private
string|null
$customName
= null
$dirty
private
bool
$dirty
= true
$lock
private
string|null
$lock
= null
$maxFuelTime
private
int
$maxFuelTime
= 0
$remainingFuelTime
private
int
$remainingFuelTime
= 0
$spawnCompoundCache
private
CacheableNbt|null
$spawnCompoundCache
= null
Tags
Methods
__construct()
public
__construct(World $world, Vector3 $pos) : mixed
Parameters
Return values
mixed —__destruct()
public
__destruct() : mixed
Return values
mixed —canOpenWith()
public
canOpenWith(string $key) : bool
Parameters
- $key : string
Tags
Return values
bool —close()
public
close() : void
Return values
void —copyDataFromItem()
public
copyDataFromItem(Item $item) : void
Parameters
- $item : Item
Tags
Return values
void —getBlock()
public
getBlock() : Block
Return values
Block —getCleanedNBT()
public
getCleanedNBT() : CompoundTag|null
Return values
CompoundTag|null —getDefaultName()
public
abstract getDefaultName() : string
Return values
string —getFurnaceType()
public
getFurnaceType() : FurnaceType
Return values
FurnaceType —getInventory()
public
getInventory() : FurnaceInventory
Return values
FurnaceInventory —getName()
public
getName() : string
Return values
string —getPosition()
public
getPosition() : Position
Return values
Position —getRealInventory()
public
abstract getRealInventory() : Inventory
Return values
Inventory —getSerializedSpawnCompound()
Returns encoded NBT (varint, little-endian) used to spawn this tile to clients. Uses cache where possible, populates cache if it is null.
public
final getSerializedSpawnCompound() : CacheableNbt
Tags
Return values
CacheableNbt —getSpawnCompound()
public
final getSpawnCompound() : CompoundTag
Return values
CompoundTag —hasName()
public
hasName() : bool
Return values
bool —isClosed()
public
isClosed() : bool
Return values
bool —isDirty()
Returns whether the tile needs to be respawned to viewers.
public
isDirty() : bool
Return values
bool —onBlockDestroyed()
Called when the tile's block is destroyed.
public
final onBlockDestroyed() : void
Return values
void —onUpdate()
public
onUpdate() : bool
Return values
bool —readSaveData()
public
readSaveData(CompoundTag $nbt) : void
Parameters
- $nbt : CompoundTag
Return values
void —saveNBT()
public
saveNBT() : CompoundTag
Return values
CompoundTag —setDirty()
public
setDirty([bool $dirty = true ]) : void
Parameters
- $dirty : bool = true
Return values
void —setName()
public
setName(string $name) : void
Parameters
- $name : string
Return values
void —addAdditionalSpawnData()
An extension to getSpawnCompound() for further modifying the generic tile NBT.
protected
abstract addAdditionalSpawnData(CompoundTag $nbt) : void
Parameters
- $nbt : CompoundTag
Return values
void —checkFuel()
protected
checkFuel(Item $fuel) : void
Parameters
- $fuel : Item
Return values
void —loadItems()
protected
loadItems(CompoundTag $tag) : void
Parameters
- $tag : CompoundTag
Return values
void —loadName()
protected
loadName(CompoundTag $tag) : void
Parameters
- $tag : CompoundTag
Return values
void —onBlockDestroyedHook()
Override this method to do actions you need to do when this tile is destroyed due to block being broken.
protected
onBlockDestroyedHook() : void
Return values
void —onStartSmelting()
protected
onStartSmelting() : void
Return values
void —onStopSmelting()
protected
onStopSmelting() : void
Return values
void —saveItems()
protected
saveItems(CompoundTag $tag) : void
Parameters
- $tag : CompoundTag
Return values
void —saveName()
protected
saveName(CompoundTag $tag) : void
Parameters
- $tag : CompoundTag
Return values
void —writeSaveData()
Writes additional save data to a CompoundTag, not including generic things like ID and coordinates.
protected
abstract writeSaveData(CompoundTag $nbt) : void
Parameters
- $nbt : CompoundTag