Machine
Index
Classes
- AdvancedMiner
- BatteryBlock
- BlastFurnace
- Canner
- Compressor
- CropHarvester
- CropMatron
- ElectricFurnace
- ElectricHeatGenerator
- ElectricMachine
- Extractor
- Fermenter
- FluidDistributor
- FluidGenerator
- FluidHeatGenerator
- FluidTank
- FuelGenerator
- Generator
- GeothermalGenerator
- InductionFurnace
- IronFurnace
- Macerator
- MachineBase
- MassFabricator
- MetalFormer
- Miner
- NuclearReactor
- OreWasher
- ProcessingMachine
- Pump
- RTGenerator
- RTHeatGenerator
- ReactorChamber
- Recycler
- SolarGenerator
- SolidCanner
- SolidHeatGenerator
- StirlingGenerator
- Teleporter
- TeslaCoil
- ThermalCentrifuge
- Transformer
- WaterGenerator
- WindGenerator
Interfaces
Functions
Classes
AdvancedMiner
constructor
Returns AdvancedMiner
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
isEnabled: boolean
silk_touch: boolean
whitelist: boolean
x: number
y: number
z: number
defaultDrop
defaultTier
defaultValues
Type declaration
energy: number
isEnabled: boolean
silk_touch: boolean
whitelist: boolean
x: number
y: number
z: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
maxScanCount
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
checkDrop
Parameters
drop: ItemInstanceArray[]
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
drop
Parameters
items: ItemInstance[]
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScanRadius
Parameters
itemID: number
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
harvestBlock
Parameters
x: number
y: number
z: number
block: Tile
Returns boolean
init
Returns void
isConductor
Parameters
type: string
Returns boolean
isValidBlock
Parameters
id: number
data: number
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
operate
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
restart
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setSilktouchIcon
Parameters
container: ItemContainer
window: any
content: any
data: { mode: boolean }
mode: boolean
Returns void
setUpgradeStats
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
switchSilktouch
Returns void
switchWhitelist
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
updateUi
Returns void
BatteryBlock
constructor
Parameters
tier: number
capacity: number
defaultDrop: number
guiScreen: StandartWindow
Returns BatteryBlock
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
readonlycapacity
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
optionaldefaultDrop
defaultValues
Type declaration
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
readonlyguiScreen
isLoaded
readonlyisTeleporterCompatible
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
readonlytier
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
Returns boolean
canReceiveEnergy
Parameters
side: number
Returns boolean
canRotate
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns StandartWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
BlastFurnace
constructor
Returns BlastFurnace
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
defaultDrop
defaultValues
Type declaration
air: number
heat: number
progress: number
sourceID: number
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isHeating
isLoaded
isPowered
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canReceiveHeat
Parameters
side: number
Returns boolean
canRotate
Returns boolean
checkResult
Parameters
result: number[]
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
controlAir
Returns boolean
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxHeat
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
Returns { duration: number; result: number[] }
duration: number
result: number[]
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
putResult
Parameters
result: number[]
Returns void
receiveHeat
Parameters
amount: number
Returns number
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setIndicator
Parameters
container: ItemContainer
window: any
content: any
data: string
Returns void
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
showAirImage
Parameters
container: ItemContainer
window: any
content: any
data: { show: boolean }
show: boolean
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns void
Canner
constructor
Returns Canner
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
mode: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
mode: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
inputTank
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
outputTank
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns any
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
isValidCan
Parameters
id: number
data: number
Returns boolean
isValidSourceItem
Parameters
id: number
data: number
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
switchMode
Returns void
switchTanks
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
updateUI
Parameters
container: ItemContainer
window: any
content: any
data: { mode: number }
mode: number
Returns void
useUpgrades
Returns UpgradeSet
Compressor
constructor
Returns Compressor
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns RecipeData
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
CropHarvester
constructor
Returns CropHarvester
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
energy_storage: number
scanX: number
scanY: number
scanZ: number
tier: number
defaultDrop
defaultEnergyStorage
defaultTier
defaultValues
Type declaration
energy: number
energy_storage: number
scanX: number
scanY: number
scanZ: number
tier: number
readonlydimension
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
isInventoryFull
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
putItem
Parameters
item: ItemInstance
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
scan
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns void
CropMatron
constructor
Returns CropMatron
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
scanX: number
scanY: number
scanZ: number
optionaldefaultDrop
defaultValues
Type declaration
energy: number
scanX: number
scanY: number
scanZ: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getSlot
Parameters
type: string
Returns Nullable<ItemContainerSlot>
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
scan
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
ElectricFurnace
constructor
Returns ElectricFurnace
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns ItemInstance
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
ElectricHeatGenerator
constructor
Returns ElectricHeatGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
optionaldefaultDrop
defaultValues
Type declaration
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
calcOutput
Returns number
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
abstractElectricMachine
constructor
Returns ElectricMachine
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
optionaldefaultDrop
defaultValues
Type declaration
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
Extractor
constructor
Returns Extractor
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
Returns RecipeData
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
Fermenter
constructor
Returns Fermenter
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
optionaldefaultDrop
defaultValues
Type declaration
fertilizer: number
heat: number
progress: number
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
inputTank
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
outputTank
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canReceiveHeat
Parameters
side: number
Returns boolean
canRotate
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getOperationSound
Returns string
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
receiveHeat
Parameters
amount: number
Returns number
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
FluidDistributor
constructor
Returns FluidDistributor
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
defaultDrop
defaultValues
Type declaration
inverted: boolean
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getOperationSound
Returns string
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
invertMode
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
transportLiquid
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
FluidGenerator
constructor
Returns FluidGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
fuel: number
liquid: any
defaultDrop
defaultValues
Type declaration
energy: number
fuel: number
liquid: any
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getFuel
Parameters
liquid: string
Returns { amount: number; power: number }
amount: number
power: number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
FluidHeatGenerator
constructor
Returns FluidHeatGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
optionaldefaultDrop
defaultValues
Type declaration
fuel: number
heat: number
liquid: any
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getFuel
Parameters
liquid: string
Returns { amount: number; power: number }
amount: number
power: number
getInterruptSound
Returns string
getOperationSound
Returns string
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
spreadHeat
Parameters
heat: number
Returns number
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
FluidTank
constructor
Returns FluidTank
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
optionaldefaultDrop
defaultValues
Type declaration
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Parameters
side: number
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getOperationSound
Returns string
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
FuelGenerator
constructor
Returns FuelGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
burn: number
burnMax: number
energy: number
defaultDrop
defaultValues
Type declaration
burn: number
burnMax: number
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
consumeFuel
Parameters
slotName: string
Returns number
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
abstractGenerator
constructor
Returns Generator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
defaultDrop
defaultValues
Type declaration
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
GeothermalGenerator
constructor
Returns GeothermalGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
defaultDrop
defaultValues
Type declaration
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
InductionFurnace
constructor
Returns InductionFurnace
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
heat: number
progress: number
defaultDrop
optionaldefaultEnergyDemand
defaultEnergyStorage
optionaldefaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
heat: number
progress: number
readonlydimension
energyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isHeating
isLoaded
isPowered
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
checkResult
Parameters
result: RecipeData
slot: ItemContainerSlot
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns ItemInstance
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
putResult
Parameters
result: RecipeData
sourceSlot: ItemContainerSlot
resultSlot: ItemContainerSlot
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
IronFurnace
constructor
Returns IronFurnace
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
optionaldefaultDrop
defaultValues
Type declaration
burn: number
burnMax: number
progress: number
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Parameters
side: number
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
consumeFuel
Returns number
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns ItemInstance
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
Macerator
constructor
Returns Macerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns RecipeData
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
abstractMachineBase
constructor
Returns MachineBase
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
optionaldefaultDrop
defaultValues
Type declaration
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Parameters
side: number
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getOperationSound
Returns string
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
MassFabricator
constructor
Returns MassFabricator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
catalyser: number
energy: number
isEnabled: boolean
progress: number
defaultDrop
defaultValues
Type declaration
catalyser: number
energy: number
isEnabled: boolean
progress: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
MetalFormer
constructor
Returns MetalFormer
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
mode: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
mode: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
Returns RecipeData
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setModeIcon
Parameters
container: ItemContainer
window: any
content: any
data: { mode: number }
mode: number
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
switchMode
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
Miner
constructor
Returns Miner
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
scanR: number
scanY: number
x: number
y: number
z: number
defaultDrop
defaultValues
Type declaration
energy: number
progress: number
scanR: number
scanY: number
x: number
y: number
z: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canBeDestroyed
Parameters
blockID: number
level: number
Returns boolean
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
drop
Parameters
items: ItemInstance[]
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
findOre
Parameters
level: number
Returns boolean
findPath
Parameters
x: number
y: number
z: number
sprc: number
level: number
Returns Vector
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getMiningValues
Parameters
tool: number
Returns { energy: number; time: number }
energy: number
time: number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
isEmptyBlock
Parameters
block: Tile
Returns boolean
load
Returns void
mineBlock
Parameters
x: number
y: number
z: number
block: Tile
item: ItemContainerSlot
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setPipe
Parameters
y: number
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
NuclearReactor
constructor
Returns NuclearReactor
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
audioSourceGeiger
readonlyblockID
blockSource
chambers
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
heat: number
hem: number
isEnabled: boolean
maxHeat: number
output: number
signal: number
defaultDrop
defaultValues
Type declaration
energy: number
heat: number
hem: number
isEnabled: boolean
maxHeat: number
output: number
signal: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addChamber
Parameters
chamber: ReactorChamber
Returns void
addEmitHeat
Parameters
heat: number
Returns void
addHeat
Parameters
amount: number
Returns number
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
addOutput
Parameters
energy: number
Returns number
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
calculateHeatEffects
Returns boolean
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
explode
Returns void
getDefaultDrop
Returns number
getEnergyOutput
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getHeat
Returns number
getHeatEffectModifier
Returns number
getInterruptSound
Returns string
getItemAt
Parameters
x: number
y: number
Returns ItemContainerSlot
getMaxHeat
Returns number
getMaxPacketSize
Returns number
getOperationSound
Returns string
getOutput
Returns number
getRandCoord
Parameters
rad: number
Returns Vector
getReactorSize
Returns number
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getSlotName
Parameters
x: number
y: number
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
isFluidCooled
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
processChambers
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
removeChamber
Parameters
chamber: ReactorChamber
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setFieldSize
Parameters
container: ItemContainer
window: any
content: any
data: { size: number }
size: number
Returns void
setHeat
Parameters
heat: number
Returns void
setHeatEffectModifier
Parameters
value: number
Returns void
setItemAt
Parameters
x: number
y: number
id: number
count: number
data: number
optionalextra: ItemExtraData
Returns void
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setMaxHeat
Parameters
newMaxHeat: number
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
updateSignal
Returns void
OreWasher
constructor
Returns OreWasher
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
checkResult
Parameters
result: number[]
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
Returns number[]
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
putResult
Parameters
result: number[]
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
abstractProcessingMachine
constructor
Returns ProcessingMachine
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
optionaldefaultEnergyDemand
defaultEnergyStorage
optionaldefaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns any
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
Pump
constructor
Returns Pump
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
coords: any
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
coords: any
energy: number
progress: number
readonlydimension
energyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
liquidTank
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
processTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
extractLiquid
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getLiquidType
Parameters
liquid: string
block: Tile
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
recursiveSearch
Parameters
liquid: string
x: number
y: number
z: number
map: {}
Returns Vector
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns void
RTGenerator
constructor
Returns RTGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
defaultDrop
defaultValues
Type declaration
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
RTHeatGenerator
constructor
Returns RTHeatGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
optionaldefaultDrop
defaultValues
Type declaration
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
calculateOutput
Returns number
canRotate
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getOperationSound
Returns string
getOutputText
Parameters
output: number
Returns string
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
spreadHeat
Parameters
heat: number
Returns number
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
ReactorChamber
constructor
Returns ReactorChamber
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
core
data
Type declaration
corePos: Vector
energy: number
signal: number
defaultDrop
defaultValues
Type declaration
corePos: any
energy: number
signal: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
Recycler
constructor
Returns Recycler
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
data: number
Returns any
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
SolarGenerator
constructor
Returns SolarGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
canSeeSky: boolean
energy: number
defaultDrop
defaultValues
Type declaration
canSeeSky: boolean
energy: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setSolarElement
Parameters
container: ItemContainer
window: any
content: any
data: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
SolidCanner
constructor
Returns SolidCanner
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
Returns { can: number; result: ItemInstance }
can: number
result: ItemInstance
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
SolidHeatGenerator
constructor
Returns SolidHeatGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
optionaldefaultDrop
defaultValues
Type declaration
burn: number
burnMax: number
output: number
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getFuel
Parameters
fuelSlot: ItemInstance
Returns number
getInterruptSound
Returns string
getOperationSound
Returns string
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
spreadHeat
Returns number
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
StirlingGenerator
constructor
Returns StirlingGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
heat: number
defaultDrop
defaultValues
Type declaration
energy: number
heat: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canReceiveHeat
Parameters
side: number
Returns boolean
canRotate
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
receiveHeat
Parameters
amount: number
Returns number
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
Teleporter
constructor
Returns Teleporter
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
[key string]: any
defaultDrop
defaultValues
Type declaration
frequency: any
isActive: boolean
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Parameters
side: number
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
getDefaultDrop
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getNearestStorages
Returns TileEntity[]
getOperationSound
Returns string
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Returns string
getStartingSound
Returns string
getWeight
Parameters
ent: number
Returns number
init
Returns void
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
TeslaCoil
constructor
Returns TeslaCoil
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
isEnabled: boolean
optionaldefaultDrop
defaultValues
Type declaration
energy: number
isEnabled: boolean
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
ThermalCentrifuge
constructor
Returns ThermalCentrifuge
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
heat: number
maxHeat: number
progress: number
defaultDrop
defaultEnergyDemand
defaultEnergyStorage
defaultProcessTime
defaultTier
defaultValues
Type declaration
energy: number
heat: number
maxHeat: number
progress: number
readonlydimension
optionalenergyDemand
energyNode
energyStorage
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isHeating
isLoaded
isPowered
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalprocessTime
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
tier
update
Type declaration
Returns void
upgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
checkResult
Parameters
result: number[]
Returns boolean
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRecipeResult
Parameters
id: number
Returns { heat: number; result: number[] }
heat: number
result: number[]
getRelativeEnergy
Returns number
getScreenByName
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
putResult
Parameters
result: number[]
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setIndicator
Parameters
container: ItemContainer
window: any
content: any
data: string
Returns void
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
useUpgrades
Returns UpgradeSet
Transformer
constructor
Parameters
tier: number
optionaldefaultDrop: number
Returns Transformer
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
energy: number
increaseMode: boolean
optionaldefaultDrop
defaultValues
Type declaration
energy: number
increaseMode: boolean
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
readonlytier
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Parameters
side: number
Returns boolean
canReceiveEnergy
Parameters
side: number
Returns boolean
canRotate
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
WaterGenerator
constructor
Returns WaterGenerator
BASE_POWER
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
biome: any
blockCount: number
energy: number
output: number
ticker: number
defaultDrop
defaultValues
Type declaration
biome: any
blockCount: number
energy: number
output: number
ticker: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getBiome
Parameters
x: number
z: number
Returns number
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
isOcean
Parameters
biome: number
Returns boolean
isRiver
Parameters
biome: number
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateBlockCount
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
WindGenerator
constructor
Returns WindGenerator
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
audioSource
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
data
Type declaration
blockCount: number
energy: number
output: number
ticker: number
defaultDrop
defaultValues
Type declaration
blockCount: number
energy: number
output: number
ticker: number
readonlydimension
energyNode
energyTypes
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
finishingSound
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
optionalupgrades
readonlyuseNetworkItemContainer
x
y
z
addLiquidTank
Parameters
name: string
limit: number
optionalliquids: string[]
Returns LiquidTank
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canExtractEnergy
Returns boolean
canReceiveEnergy
Returns boolean
canRotate
Parameters
side: number
Returns boolean
chargeSlot
Parameters
slotName: string
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
decreaseSlot
Parameters
slot: ItemContainerSlot
count: number
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
player: number
Returns void
dischargeSlot
Parameters
slotName: string
Returns void
energyReceive
Parameters
type: string
amount: number
voltage: number
Returns number
energyTick
Parameters
type: string
src: EnergyTileNode
Returns void
getDefaultDrop
Returns number
getEnergyStorage
Returns number
getExplosionPower
Returns number
getFacing
Returns number
getInterruptSound
Returns string
getMaxPacketSize
Returns number
getOperationSound
Returns string
getRelativeEnergy
Returns number
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
getStartingSound
Returns string
getTier
Returns number
init
Returns void
isConductor
Parameters
type: string
Returns boolean
load
Returns void
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
rebuildGrid
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
selfDestroy
Returns void
setActive
Parameters
isActive: boolean
Returns void
setFacing
Parameters
side: number
Returns boolean
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
setupContainer
Returns void
startPlaySound
Returns void
stopPlaySound
Returns void
tick
Returns void
unload
Returns void
updateBlockCount
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
Interfaces
IHeatConsumer
canReceiveHeat
Parameters
side: number
Returns boolean
receiveHeat
Parameters
amount: number
Returns number
IWrenchable
adjustDrop
Parameters
item: ItemInstance
Returns ItemInstance
canRotate
Parameters
side: number
Returns boolean
getDefaultDrop
Returns number
getFacing
Returns number
setFacing
Parameters
side: number
Returns void
Functions
ClientSide
Client side method decorator for TileEntity
Parameters
target: TileEntityBase
propertyName: string
Returns void
ContainerEvent
Adds method as container event in TileEntity
Parameters
side: Side
Returns (target: TileEntityBase, propertyName: string) => void
Parameters
target: TileEntityBase
propertyName: string
Returns void
NetworkEvent
Adds method as network event in TileEntity
Parameters
side: Side
Returns (target: TileEntityBase, propertyName: string) => void
Parameters
target: TileEntityBase
propertyName: string
Returns void
Interface for BlockSource of the TileEntity. Provides more functionality.