Перейти к основному содержанию

Machine

Index

Classes

AdvancedMiner

AdvancedMiner:

constructor

__clientMethods

__clientMethods: {}

Type declaration

  • [key string]: boolean

__containerEvents

__containerEvents: {}

Type declaration

__initialized

__initialized: boolean

__networkEvents

__networkEvents: {}

Type declaration

audioSource

audioSource: AudioSource

readonlyblockID

blockID: number

blockSource

blockSource: BlockSource

click

click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

Type declaration

    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
    • Parameters

      • id: number
      • count: number
      • data: number
      • coords: ItemUseCoordinates
      • player: number
      • extra: ItemExtraData

      Returns boolean | void

client

client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

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
      • (): void
      • Returns void

  • tick: () => void
      • (): void
      • Returns void

  • unload: () => void
      • (): void
      • Returns void

container

container: ItemContainer

containerEvents

containerEvents: {}

Type declaration

  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

data

data: { energy: number; isEnabled: boolean; silk_touch: boolean; whitelist: boolean; x: number; y: number; z: number }

Type declaration

  • energy: number
  • isEnabled: boolean
  • silk_touch: boolean
  • whitelist: boolean
  • x: number
  • y: number
  • z: number

defaultDrop

defaultDrop: number

defaultTier

defaultTier: number

defaultValues

defaultValues: { energy: number; isEnabled: boolean; silk_touch: boolean; whitelist: boolean; x: number; y: number; z: number }

Type declaration

  • energy: number
  • isEnabled: boolean
  • silk_touch: boolean
  • whitelist: boolean
  • x: number
  • y: number
  • z: number

readonlydimension

dimension: number

energyNode

energyNode: EnergyTileNode

energyTypes

energyTypes: object

events

events: {}

Type declaration

  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

finishingSound

finishingSound: number

getGuiScreen

getGuiScreen: () => Nullable<IWindow>

Type declaration

    • (): Nullable<IWindow>
    • Returns Nullable<IWindow>

isLoaded

isLoaded: boolean

liquidStorage

liquidStorage: Storage

maxScanCount

maxScanCount: number

networkData

networkData: SyncedNetworkData

networkEntity

networkEntity: NetworkEntity

networkEntityType

networkEntityType: NetworkEntityType

networkEntityTypeName

networkEntityTypeName: string

noupdate

noupdate: boolean

optionalonConnectionPlayer

onConnectionPlayer?: (client: NetworkClient) => void

Type declaration

    • (client: NetworkClient): void
    • Parameters

      • client: NetworkClient

      Returns void

optionalonDisconnectionPlayer

onDisconnectionPlayer?: (client: NetworkClient) => void

Type declaration

    • (client: NetworkClient): void
    • Parameters

      • client: NetworkClient

      Returns void

region

region: WorldRegion

Interface for BlockSource of the TileEntity. Provides more functionality.

remove

remove: boolean

sendPacket

sendPacket: (name: string, data: object) => {}

Type declaration

    • (name: string, data: object): {}
    • Parameters

      • name: string
      • data: object

      Returns {}

    sendResponse

    sendResponse: (packetName: string, someData: object) => {}

    Type declaration

      • (packetName: string, someData: object): {}
      • Parameters

        • packetName: string
        • someData: object

        Returns {}

      tier

      tier: number

      update

      update: () => void

      Type declaration

        • (): void
        • Returns void

      upgrades

      upgrades: string[]

      readonlyuseNetworkItemContainer

      useNetworkItemContainer: boolean

      x

      x: number

      y

      y: number

      z

      z: number

      addLiquidTank

      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
      • Parameters

        • name: string
        • limit: number
        • optionalliquids: string[]

        Returns LiquidTank

      adjustDrop

      • adjustDrop(item: ItemInstance): ItemInstance
      • Parameters

        • item: ItemInstance

        Returns ItemInstance

      canExtractEnergy

      • canExtractEnergy(side: number, type: string): boolean
      • Parameters

        • side: number
        • type: string

        Returns boolean

      canReceiveEnergy

      • canReceiveEnergy(side: number, type: string): boolean
      • Parameters

        • side: number
        • type: string

        Returns boolean

      canRotate

      • canRotate(side: number): boolean
      • Parameters

        • side: number

        Returns boolean

      chargeSlot

      • chargeSlot(slotName: string): void
      • Parameters

        • slotName: string

        Returns void

      checkDrop

      • checkDrop(drop: ItemInstanceArray[]): boolean
      • Parameters

        • drop: ItemInstanceArray[]

        Returns boolean

      clientLoad

      • clientLoad(): void
      • Called when the client copy is created


        Returns void

      clientTick

      • clientTick(): void
      • Called every tick on client thread


        Returns void

      clientUnload

      • clientUnload(): void
      • Called on destroying the client copy


        Returns void

      created

      • created(): void
      • Returns void

      decreaseSlot

      • decreaseSlot(slot: ItemContainerSlot, count: number): void
      • Parameters

        • slot: ItemContainerSlot
        • count: number

        Returns void

      destroy

      • destroy(): boolean
      • Returns boolean

      destroyBlock

      • destroyBlock(coords: ItemUseCoordinates, player: number): void
      • Parameters

        • coords: ItemUseCoordinates
        • player: number

        Returns void

      dischargeSlot

      • dischargeSlot(slotName: string): void
      • Parameters

        • slotName: string

        Returns void

      drop

      • drop(items: ItemInstance[]): void
      • Parameters

        • items: ItemInstance[]

        Returns void

      energyReceive

      • energyReceive(type: string, amount: number, voltage: number): number
      • Parameters

        • type: string
        • amount: number
        • voltage: number

        Returns number

      energyTick

      • Parameters

        Returns void

      getDefaultDrop

      • getDefaultDrop(): number
      • Returns number

      getEnergyStorage

      • getEnergyStorage(): number
      • Returns number

      getExplosionPower

      • getExplosionPower(): number
      • Returns number

      getFacing

      • getFacing(): number
      • Returns number

      getInterruptSound

      • getInterruptSound(): string
      • Returns string

      getMaxPacketSize

      • getMaxPacketSize(): number
      • Returns number

      getOperationSound

      • getOperationSound(): string
      • Returns string

      getRelativeEnergy

      • getRelativeEnergy(): number
      • Returns number

      getScanRadius

      • getScanRadius(itemID: number): number
      • Parameters

        • itemID: number

        Returns number

      getScreenByName

      • getScreenByName(): IWindow
      • Returns IWindow

      getScreenName

      • getScreenName(player: number, coords: ItemUseCoordinates): string
      • Parameters

        • player: number
        • coords: ItemUseCoordinates

        Returns string

      getStartingSound

      • getStartingSound(): string
      • Returns string

      getTier

      • getTier(): number
      • Returns number

      harvestBlock

      • harvestBlock(x: number, y: number, z: number, block: Tile): boolean
      • Parameters

        • x: number
        • y: number
        • z: number
        • block: Tile

        Returns boolean

      init

      • init(): void
      • @deprecated

        Returns void

      isConductor

      • isConductor(type: string): boolean
      • Parameters

        • type: string

        Returns boolean

      isValidBlock

      • isValidBlock(id: number, data: number): boolean
      • Parameters

        • id: number
        • data: number

        Returns boolean

      load

      • load(): void
      • @deprecated

        Returns void

      onCheckerTick

      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
      • Parameters

        • isInitialized: boolean
        • isLoaded: boolean
        • wasLoaded: boolean

        Returns void

      onCreate

      • onCreate(): void
      • Called when a TileEntity is created


        Returns void

      onInit

      • onInit(): void
      • Called when a TileEntity is initialised in the world


        Returns void

      onItemClick

      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
      • Parameters

        • id: number
        • count: number
        • data: number
        • coords: ItemUseCoordinates
        • player: number
        • extra: ItemExtraData

        Returns boolean

      onItemUse

      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
      • 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

      • onLoad(): void
      • Called when a chunk with TileEntity is loaded


        Returns void

      onRedstoneUpdate

      • onRedstoneUpdate(signal: number): void
      • Occurs when redstone signal on TileEntity block was updated


        Parameters

        • signal: number

          signal power (0-15)

        Returns void

      onTick

      • onTick(): void
      • Called every tick and should be used for all the updates of the TileEntity


        Returns void

      onUnload

      • onUnload(): void
      • Called when a chunk with TileEntity is unloaded


        Returns void

      operate

      • operate(): void
      • Returns void

      preventClick

      • preventClick(): void
      • Prevents all actions on click


        Returns void

      projectileHit

      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
      • Parameters

        • coords: ItemUseCoordinates
        • target: ProjectileHitTarget

        Returns void

      rebuildGrid

      • rebuildGrid(): void
      • Returns void

      redstone

      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
      • @deprecated

        Parameters

        • params: { onLoad: boolean; power: number; signal: number }
          • onLoad: boolean
          • power: number
          • signal: number

        Returns void

      renderModel

      • renderModel(): void
      • Returns void

      requireMoreLiquid

      • requireMoreLiquid(liquid: string, amount: number): void
      • Parameters

        • liquid: string
        • amount: number

        Returns void

      restart

      • restart(): void
      • Returns void

      selfDestroy

      • selfDestroy(): void
      • Returns void

      setActive

      • setActive(isActive: boolean): void
      • Parameters

        • isActive: boolean

        Returns void

      setFacing

      • setFacing(side: number): boolean
      • Parameters

        • side: number

        Returns boolean

      setLiquidScale

      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
      • Parameters

        • container: any
        • window: any
        • content: any
        • data: { amount: number; liquid: string; scale: string }
          • amount: number
          • liquid: string
          • scale: string

        Returns void

      setSilktouchIcon

      • setSilktouchIcon(container: ItemContainer, window: any, content: any, data: { mode: boolean }): void
      • Parameters

        • container: ItemContainer
        • window: any
        • content: any
        • data: { mode: boolean }
          • mode: boolean

        Returns void

      setUpgradeStats

      • setUpgradeStats(): void
      • Returns void

      setupContainer

      • setupContainer(): void
      • Returns void

      startPlaySound

      • startPlaySound(): void
      • Returns void

      stopPlaySound

      • stopPlaySound(): void
      • Returns void

      switchSilktouch

      • switchSilktouch(): void
      • Returns void

      switchWhitelist

      • switchWhitelist(): void
      • Returns void

      tick

      • tick(): void
      • @deprecated

        Returns void

      unload

      • unload(): void
      • @deprecated

        Returns void

      updateLiquidScale

      • updateLiquidScale(scale: string, liquid: string): void
      • Parameters

        • scale: string
        • liquid: string

        Returns void

      updateUi

      • updateUi(): void
      • Returns void

      BatteryBlock

      BatteryBlock:

      constructor

      • new BatteryBlock(tier: number, capacity: number, defaultDrop: number, guiScreen: StandartWindow): BatteryBlock
      • Parameters

        • tier: number
        • capacity: number
        • defaultDrop: number
        • guiScreen: StandartWindow

        Returns BatteryBlock

      __clientMethods

      __clientMethods: {}

      Type declaration

      • [key string]: boolean

      __containerEvents

      __containerEvents: {}

      Type declaration

      __initialized

      __initialized: boolean

      __networkEvents

      __networkEvents: {}

      Type declaration

      audioSource

      audioSource: AudioSource

      readonlyblockID

      blockID: number

      blockSource

      blockSource: BlockSource

      readonlycapacity

      capacity: number

      click

      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

      Type declaration

        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
        • Parameters

          • id: number
          • count: number
          • data: number
          • coords: ItemUseCoordinates
          • player: number
          • extra: ItemExtraData

          Returns boolean | void

      client

      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

      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
          • (): void
          • Returns void

      • tick: () => void
          • (): void
          • Returns void

      • unload: () => void
          • (): void
          • Returns void

      container

      container: ItemContainer

      containerEvents

      containerEvents: {}

      Type declaration

      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

      data

      data: { energy: number }

      Type declaration

      • energy: number

      optionaldefaultDrop

      defaultDrop?: number

      defaultValues

      defaultValues: { energy: number }

      Type declaration

      • energy: number

      readonlydimension

      dimension: number

      energyNode

      energyNode: EnergyTileNode

      energyTypes

      energyTypes: object

      events

      events: {}

      Type declaration

      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

      finishingSound

      finishingSound: number

      getGuiScreen

      getGuiScreen: () => Nullable<IWindow>

      Type declaration

        • (): Nullable<IWindow>
        • Returns Nullable<IWindow>

      readonlyguiScreen

      guiScreen: StandartWindow

      isLoaded

      isLoaded: boolean

      readonlyisTeleporterCompatible

      isTeleporterCompatible: boolean

      liquidStorage

      liquidStorage: Storage

      networkData

      networkData: SyncedNetworkData

      networkEntity

      networkEntity: NetworkEntity

      networkEntityType

      networkEntityType: NetworkEntityType

      networkEntityTypeName

      networkEntityTypeName: string

      noupdate

      noupdate: boolean

      optionalonConnectionPlayer

      onConnectionPlayer?: (client: NetworkClient) => void

      Type declaration

        • (client: NetworkClient): void
        • Parameters

          • client: NetworkClient

          Returns void

      optionalonDisconnectionPlayer

      onDisconnectionPlayer?: (client: NetworkClient) => void

      Type declaration

        • (client: NetworkClient): void
        • Parameters

          • client: NetworkClient

          Returns void

      region

      region: WorldRegion

      Interface for BlockSource of the TileEntity. Provides more functionality.

      remove

      remove: boolean

      sendPacket

      sendPacket: (name: string, data: object) => {}

      Type declaration

        • (name: string, data: object): {}
        • Parameters

          • name: string
          • data: object

          Returns {}

        sendResponse

        sendResponse: (packetName: string, someData: object) => {}

        Type declaration

          • (packetName: string, someData: object): {}
          • Parameters

            • packetName: string
            • someData: object

            Returns {}

          readonlytier

          tier: number

          update

          update: () => void

          Type declaration

            • (): void
            • Returns void

          optionalupgrades

          upgrades?: string[]

          readonlyuseNetworkItemContainer

          useNetworkItemContainer: boolean

          x

          x: number

          y

          y: number

          z

          z: number

          addLiquidTank

          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
          • Parameters

            • name: string
            • limit: number
            • optionalliquids: string[]

            Returns LiquidTank

          adjustDrop

          • adjustDrop(item: ItemInstance): ItemInstance
          • Parameters

            • item: ItemInstance

            Returns ItemInstance

          canExtractEnergy

          • canExtractEnergy(side: number): boolean
          • Parameters

            • side: number

            Returns boolean

          canReceiveEnergy

          • canReceiveEnergy(side: number): boolean
          • Parameters

            • side: number

            Returns boolean

          canRotate

          • canRotate(): boolean
          • Returns boolean

          chargeSlot

          • chargeSlot(slotName: string): void
          • Parameters

            • slotName: string

            Returns void

          clientLoad

          • clientLoad(): void
          • Called when the client copy is created


            Returns void

          clientTick

          • clientTick(): void
          • Called every tick on client thread


            Returns void

          clientUnload

          • clientUnload(): void
          • Called on destroying the client copy


            Returns void

          created

          • created(): void
          • Returns void

          decreaseSlot

          • decreaseSlot(slot: ItemContainerSlot, count: number): void
          • Parameters

            • slot: ItemContainerSlot
            • count: number

            Returns void

          destroy

          • destroy(): boolean
          • Returns boolean

          destroyBlock

          • destroyBlock(coords: ItemUseCoordinates, player: number): void
          • Parameters

            • coords: ItemUseCoordinates
            • player: number

            Returns void

          dischargeSlot

          • dischargeSlot(slotName: string): void
          • Parameters

            • slotName: string

            Returns void

          energyReceive

          • energyReceive(type: string, amount: number, voltage: number): number
          • Parameters

            • type: string
            • amount: number
            • voltage: number

            Returns number

          energyTick

          • Parameters

            Returns void

          getDefaultDrop

          • getDefaultDrop(): number
          • Returns number

          getEnergyStorage

          • getEnergyStorage(): number
          • Returns number

          getExplosionPower

          • getExplosionPower(): number
          • Returns number

          getFacing

          • getFacing(): number
          • Returns number

          getInterruptSound

          • getInterruptSound(): string
          • Returns string

          getMaxPacketSize

          • getMaxPacketSize(): number
          • Returns number

          getOperationSound

          • getOperationSound(): string
          • Returns string

          getRelativeEnergy

          • getRelativeEnergy(): number
          • Returns number

          getScreenByName

          • getScreenByName(): StandartWindow
          • Returns StandartWindow

          getScreenName

          • getScreenName(player: number, coords: ItemUseCoordinates): string
          • Parameters

            • player: number
            • coords: ItemUseCoordinates

            Returns string

          getStartingSound

          • getStartingSound(): string
          • Returns string

          getTier

          • getTier(): number
          • Returns number

          init

          • init(): void
          • @deprecated

            Returns void

          isConductor

          • isConductor(type: string): boolean
          • Parameters

            • type: string

            Returns boolean

          load

          • load(): void
          • @deprecated

            Returns void

          onCheckerTick

          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
          • Parameters

            • isInitialized: boolean
            • isLoaded: boolean
            • wasLoaded: boolean

            Returns void

          onCreate

          • onCreate(): void
          • Called when a TileEntity is created


            Returns void

          onInit

          • onInit(): void
          • Called when a TileEntity is initialised in the world


            Returns void

          onItemClick

          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
          • Parameters

            • id: number
            • count: number
            • data: number
            • coords: ItemUseCoordinates
            • player: number
            • extra: ItemExtraData

            Returns boolean

          onItemUse

          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
          • 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

          • onLoad(): void
          • Called when a chunk with TileEntity is loaded


            Returns void

          onRedstoneUpdate

          • onRedstoneUpdate(signal: number): void
          • Occurs when redstone signal on TileEntity block was updated


            Parameters

            • signal: number

              signal power (0-15)

            Returns void

          onTick

          • onTick(): void
          • Called every tick and should be used for all the updates of the TileEntity


            Returns void

          onUnload

          • onUnload(): void
          • Called when a chunk with TileEntity is unloaded


            Returns void

          preventClick

          • preventClick(): void
          • Prevents all actions on click


            Returns void

          projectileHit

          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
          • Parameters

            • coords: ItemUseCoordinates
            • target: ProjectileHitTarget

            Returns void

          rebuildGrid

          • rebuildGrid(): void
          • Returns void

          redstone

          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
          • @deprecated

            Parameters

            • params: { onLoad: boolean; power: number; signal: number }
              • onLoad: boolean
              • power: number
              • signal: number

            Returns void

          renderModel

          • renderModel(): void
          • Returns void

          requireMoreLiquid

          • requireMoreLiquid(liquid: string, amount: number): void
          • Parameters

            • liquid: string
            • amount: number

            Returns void

          selfDestroy

          • selfDestroy(): void
          • Returns void

          setActive

          • setActive(isActive: boolean): void
          • Parameters

            • isActive: boolean

            Returns void

          setFacing

          • setFacing(side: number): boolean
          • Parameters

            • side: number

            Returns boolean

          setLiquidScale

          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
          • Parameters

            • container: any
            • window: any
            • content: any
            • data: { amount: number; liquid: string; scale: string }
              • amount: number
              • liquid: string
              • scale: string

            Returns void

          setupContainer

          • setupContainer(): void
          • Returns void

          startPlaySound

          • startPlaySound(): void
          • Returns void

          stopPlaySound

          • stopPlaySound(): void
          • Returns void

          tick

          • tick(): void
          • @deprecated

            Returns void

          unload

          • unload(): void
          • @deprecated

            Returns void

          updateLiquidScale

          • updateLiquidScale(scale: string, liquid: string): void
          • Parameters

            • scale: string
            • liquid: string

            Returns void

          BlastFurnace

          BlastFurnace:

          constructor

          __clientMethods

          __clientMethods: {}

          Type declaration

          • [key string]: boolean

          __containerEvents

          __containerEvents: {}

          Type declaration

          __initialized

          __initialized: boolean

          __networkEvents

          __networkEvents: {}

          Type declaration

          audioSource

          audioSource: AudioSource

          readonlyblockID

          blockID: number

          blockSource

          blockSource: BlockSource

          click

          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

          Type declaration

            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
            • Parameters

              • id: number
              • count: number
              • data: number
              • coords: ItemUseCoordinates
              • player: number
              • extra: ItemExtraData

              Returns boolean | void

          client

          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

          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
              • (): void
              • Returns void

          • tick: () => void
              • (): void
              • Returns void

          • unload: () => void
              • (): void
              • Returns void

          container

          container: ItemContainer

          containerEvents

          containerEvents: {}

          Type declaration

          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

          data

          data: {}

          Type declaration

          • [key string]: any

          defaultDrop

          defaultDrop: number

          defaultValues

          defaultValues: { air: number; heat: number; progress: number; sourceID: number }

          Type declaration

          • air: number
          • heat: number
          • progress: number
          • sourceID: number

          readonlydimension

          dimension: number

          events

          events: {}

          Type declaration

          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

          finishingSound

          finishingSound: number

          getGuiScreen

          getGuiScreen: () => Nullable<IWindow>

          Type declaration

            • (): Nullable<IWindow>
            • Returns Nullable<IWindow>

          isHeating

          isHeating: boolean

          isLoaded

          isLoaded: boolean

          isPowered

          isPowered: boolean

          liquidStorage

          liquidStorage: Storage

          networkData

          networkData: SyncedNetworkData

          networkEntity

          networkEntity: NetworkEntity

          networkEntityType

          networkEntityType: NetworkEntityType

          networkEntityTypeName

          networkEntityTypeName: string

          noupdate

          noupdate: boolean

          optionalonConnectionPlayer

          onConnectionPlayer?: (client: NetworkClient) => void

          Type declaration

            • (client: NetworkClient): void
            • Parameters

              • client: NetworkClient

              Returns void

          optionalonDisconnectionPlayer

          onDisconnectionPlayer?: (client: NetworkClient) => void

          Type declaration

            • (client: NetworkClient): void
            • Parameters

              • client: NetworkClient

              Returns void

          region

          region: WorldRegion

          Interface for BlockSource of the TileEntity. Provides more functionality.

          remove

          remove: boolean

          sendPacket

          sendPacket: (name: string, data: object) => {}

          Type declaration

            • (name: string, data: object): {}
            • Parameters

              • name: string
              • data: object

              Returns {}

            sendResponse

            sendResponse: (packetName: string, someData: object) => {}

            Type declaration

              • (packetName: string, someData: object): {}
              • Parameters

                • packetName: string
                • someData: object

                Returns {}

              update

              update: () => void

              Type declaration

                • (): void
                • Returns void

              upgrades

              upgrades: string[]

              readonlyuseNetworkItemContainer

              useNetworkItemContainer: boolean

              x

              x: number

              y

              y: number

              z

              z: number

              addLiquidTank

              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
              • Parameters

                • name: string
                • limit: number
                • optionalliquids: string[]

                Returns LiquidTank

              adjustDrop

              • adjustDrop(item: ItemInstance): ItemInstance
              • Parameters

                • item: ItemInstance

                Returns ItemInstance

              canReceiveHeat

              • canReceiveHeat(side: number): boolean
              • Parameters

                • side: number

                Returns boolean

              canRotate

              • canRotate(): boolean
              • Returns boolean

              checkResult

              • checkResult(result: number[]): boolean
              • Parameters

                • result: number[]

                Returns boolean

              clientLoad

              • clientLoad(): void
              • Called when the client copy is created


                Returns void

              clientTick

              • clientTick(): void
              • Called every tick on client thread


                Returns void

              clientUnload

              • clientUnload(): void
              • Called on destroying the client copy


                Returns void

              controlAir

              • controlAir(): boolean
              • Returns boolean

              created

              • created(): void
              • Returns void

              decreaseSlot

              • decreaseSlot(slot: ItemContainerSlot, count: number): void
              • Parameters

                • slot: ItemContainerSlot
                • count: number

                Returns void

              destroy

              • destroy(): boolean
              • Returns boolean

              destroyBlock

              • destroyBlock(coords: ItemUseCoordinates, player: number): void
              • Parameters

                • coords: ItemUseCoordinates
                • player: number

                Returns void

              getDefaultDrop

              • getDefaultDrop(): number
              • Returns number

              getFacing

              • getFacing(): number
              • Returns number

              getInterruptSound

              • getInterruptSound(): string
              • Returns string

              getMaxHeat

              • getMaxHeat(): number
              • Returns number

              getOperationSound

              • getOperationSound(): string
              • Returns string

              getRecipeResult

              • getRecipeResult(id: number): { duration: number; result: number[] }
              • Parameters

                • id: number

                Returns { duration: number; result: number[] }

                • duration: number
                • result: number[]

              getScreenByName

              • getScreenByName(): IWindow
              • Returns IWindow

              getScreenName

              • getScreenName(player: number, coords: ItemUseCoordinates): string
              • Parameters

                • player: number
                • coords: ItemUseCoordinates

                Returns string

              getStartingSound

              • getStartingSound(): string
              • Returns string

              init

              • init(): void
              • @deprecated

                Returns void

              load

              • load(): void
              • @deprecated

                Returns void

              onCheckerTick

              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
              • Parameters

                • isInitialized: boolean
                • isLoaded: boolean
                • wasLoaded: boolean

                Returns void

              onCreate

              • onCreate(): void
              • Called when a TileEntity is created


                Returns void

              onInit

              • onInit(): void
              • Called when a TileEntity is initialised in the world


                Returns void

              onItemClick

              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
              • Parameters

                • id: number
                • count: number
                • data: number
                • coords: ItemUseCoordinates
                • player: number
                • extra: ItemExtraData

                Returns boolean

              onItemUse

              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
              • 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

              • onLoad(): void
              • Called when a chunk with TileEntity is loaded


                Returns void

              onRedstoneUpdate

              • onRedstoneUpdate(signal: number): void
              • Occurs when redstone signal on TileEntity block was updated


                Parameters

                • signal: number

                  signal power (0-15)

                Returns void

              onTick

              • onTick(): void
              • Called every tick and should be used for all the updates of the TileEntity


                Returns void

              onUnload

              • onUnload(): void
              • Called when a chunk with TileEntity is unloaded


                Returns void

              preventClick

              • preventClick(): void
              • Prevents all actions on click


                Returns void

              projectileHit

              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
              • Parameters

                • coords: ItemUseCoordinates
                • target: ProjectileHitTarget

                Returns void

              putResult

              • putResult(result: number[]): void
              • Parameters

                • result: number[]

                Returns void

              receiveHeat

              • receiveHeat(amount: number): number
              • Parameters

                • amount: number

                Returns number

              redstone

              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
              • @deprecated

                Parameters

                • params: { onLoad: boolean; power: number; signal: number }
                  • onLoad: boolean
                  • power: number
                  • signal: number

                Returns void

              renderModel

              • renderModel(): void
              • Returns void

              requireMoreLiquid

              • requireMoreLiquid(liquid: string, amount: number): void
              • Parameters

                • liquid: string
                • amount: number

                Returns void

              selfDestroy

              • selfDestroy(): void
              • Returns void

              setActive

              • setActive(isActive: boolean): void
              • Parameters

                • isActive: boolean

                Returns void

              setFacing

              • setFacing(side: number): boolean
              • Parameters

                • side: number

                Returns boolean

              setIndicator

              • setIndicator(container: ItemContainer, window: any, content: any, data: string): void
              • Parameters

                • container: ItemContainer
                • window: any
                • content: any
                • data: string

                Returns void

              setLiquidScale

              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
              • Parameters

                • container: any
                • window: any
                • content: any
                • data: { amount: number; liquid: string; scale: string }
                  • amount: number
                  • liquid: string
                  • scale: string

                Returns void

              setupContainer

              • setupContainer(): void
              • Returns void

              showAirImage

              • showAirImage(container: ItemContainer, window: any, content: any, data: { show: boolean }): void
              • Parameters

                • container: ItemContainer
                • window: any
                • content: any
                • data: { show: boolean }
                  • show: boolean

                Returns void

              startPlaySound

              • startPlaySound(): void
              • Returns void

              stopPlaySound

              • stopPlaySound(): void
              • Returns void

              tick

              • tick(): void
              • @deprecated

                Returns void

              unload

              • unload(): void
              • @deprecated

                Returns void

              updateLiquidScale

              • updateLiquidScale(scale: string, liquid: string): void
              • Parameters

                • scale: string
                • liquid: string

                Returns void

              useUpgrades

              • useUpgrades(): void
              • Returns void

              Canner

              Canner:

              constructor

              • Returns Canner

              __clientMethods

              __clientMethods: {}

              Type declaration

              • [key string]: boolean

              __containerEvents

              __containerEvents: {}

              Type declaration

              __initialized

              __initialized: boolean

              __networkEvents

              __networkEvents: {}

              Type declaration

              audioSource

              audioSource: AudioSource

              readonlyblockID

              blockID: number

              blockSource

              blockSource: BlockSource

              click

              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

              Type declaration

                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                • Parameters

                  • id: number
                  • count: number
                  • data: number
                  • coords: ItemUseCoordinates
                  • player: number
                  • extra: ItemExtraData

                  Returns boolean | void

              client

              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

              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
                  • (): void
                  • Returns void

              • tick: () => void
                  • (): void
                  • Returns void

              • unload: () => void
                  • (): void
                  • Returns void

              container

              container: ItemContainer

              containerEvents

              containerEvents: {}

              Type declaration

              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

              data

              data: { energy: number; mode: number; progress: number }

              Type declaration

              • energy: number
              • mode: number
              • progress: number

              defaultDrop

              defaultDrop: number

              defaultEnergyDemand

              defaultEnergyDemand: number

              defaultEnergyStorage

              defaultEnergyStorage: number

              defaultProcessTime

              defaultProcessTime: number

              defaultTier

              defaultTier: number

              defaultValues

              defaultValues: { energy: number; mode: number; progress: number }

              Type declaration

              • energy: number
              • mode: number
              • progress: number

              readonlydimension

              dimension: number

              optionalenergyDemand

              energyDemand?: number

              energyNode

              energyNode: EnergyTileNode

              energyStorage

              energyStorage: number

              energyTypes

              energyTypes: object

              events

              events: {}

              Type declaration

              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

              finishingSound

              finishingSound: number

              getGuiScreen

              getGuiScreen: () => Nullable<IWindow>

              Type declaration

                • (): Nullable<IWindow>
                • Returns Nullable<IWindow>

              inputTank

              inputTank: LiquidTank

              isLoaded

              isLoaded: boolean

              liquidStorage

              liquidStorage: Storage

              networkData

              networkData: SyncedNetworkData

              networkEntity

              networkEntity: NetworkEntity

              networkEntityType

              networkEntityType: NetworkEntityType

              networkEntityTypeName

              networkEntityTypeName: string

              noupdate

              noupdate: boolean

              optionalonConnectionPlayer

              onConnectionPlayer?: (client: NetworkClient) => void

              Type declaration

                • (client: NetworkClient): void
                • Parameters

                  • client: NetworkClient

                  Returns void

              optionalonDisconnectionPlayer

              onDisconnectionPlayer?: (client: NetworkClient) => void

              Type declaration

                • (client: NetworkClient): void
                • Parameters

                  • client: NetworkClient

                  Returns void

              outputTank

              outputTank: LiquidTank

              optionalprocessTime

              processTime?: number

              region

              region: WorldRegion

              Interface for BlockSource of the TileEntity. Provides more functionality.

              remove

              remove: boolean

              sendPacket

              sendPacket: (name: string, data: object) => {}

              Type declaration

                • (name: string, data: object): {}
                • Parameters

                  • name: string
                  • data: object

                  Returns {}

                sendResponse

                sendResponse: (packetName: string, someData: object) => {}

                Type declaration

                  • (packetName: string, someData: object): {}
                  • Parameters

                    • packetName: string
                    • someData: object

                    Returns {}

                  tier

                  tier: number

                  update

                  update: () => void

                  Type declaration

                    • (): void
                    • Returns void

                  upgrades

                  upgrades: string[]

                  readonlyuseNetworkItemContainer

                  useNetworkItemContainer: boolean

                  x

                  x: number

                  y

                  y: number

                  z

                  z: number

                  addLiquidTank

                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                  • Parameters

                    • name: string
                    • limit: number
                    • optionalliquids: string[]

                    Returns LiquidTank

                  adjustDrop

                  • adjustDrop(item: ItemInstance): ItemInstance
                  • Parameters

                    • item: ItemInstance

                    Returns ItemInstance

                  canExtractEnergy

                  • canExtractEnergy(side: number, type: string): boolean
                  • Parameters

                    • side: number
                    • type: string

                    Returns boolean

                  canReceiveEnergy

                  • canReceiveEnergy(side: number, type: string): boolean
                  • Parameters

                    • side: number
                    • type: string

                    Returns boolean

                  canRotate

                  • canRotate(side: number): boolean
                  • Parameters

                    • side: number

                    Returns boolean

                  chargeSlot

                  • chargeSlot(slotName: string): void
                  • Parameters

                    • slotName: string

                    Returns void

                  clientLoad

                  • clientLoad(): void
                  • Called when the client copy is created


                    Returns void

                  clientTick

                  • clientTick(): void
                  • Called every tick on client thread


                    Returns void

                  clientUnload

                  • clientUnload(): void
                  • Called on destroying the client copy


                    Returns void

                  created

                  • created(): void
                  • Returns void

                  decreaseSlot

                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                  • Parameters

                    • slot: ItemContainerSlot
                    • count: number

                    Returns void

                  destroy

                  • destroy(): boolean
                  • Returns boolean

                  destroyBlock

                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                  • Parameters

                    • coords: ItemUseCoordinates
                    • player: number

                    Returns void

                  dischargeSlot

                  • dischargeSlot(slotName: string): void
                  • Parameters

                    • slotName: string

                    Returns void

                  energyReceive

                  • energyReceive(type: string, amount: number, voltage: number): number
                  • Parameters

                    • type: string
                    • amount: number
                    • voltage: number

                    Returns number

                  energyTick

                  • Parameters

                    Returns void

                  getDefaultDrop

                  • getDefaultDrop(): number
                  • Returns number

                  getEnergyStorage

                  • getEnergyStorage(): number
                  • Returns number

                  getExplosionPower

                  • getExplosionPower(): number
                  • Returns number

                  getFacing

                  • getFacing(): number
                  • Returns number

                  getInterruptSound

                  • getInterruptSound(): string
                  • Returns string

                  getMaxPacketSize

                  • getMaxPacketSize(): number
                  • Returns number

                  getOperationSound

                  • getOperationSound(): string
                  • Returns string

                  getRecipeResult

                  • getRecipeResult(id: number, data: number): any
                  • Parameters

                    • id: number
                    • data: number

                    Returns any

                  getRelativeEnergy

                  • getRelativeEnergy(): number
                  • Returns number

                  getScreenByName

                  • getScreenByName(): IWindow
                  • Returns IWindow

                  getScreenName

                  • getScreenName(player: number, coords: ItemUseCoordinates): string
                  • Parameters

                    • player: number
                    • coords: ItemUseCoordinates

                    Returns string

                  getStartingSound

                  • getStartingSound(): string
                  • Returns string

                  getTier

                  • getTier(): number
                  • Returns number

                  init

                  • init(): void
                  • @deprecated

                    Returns void

                  isConductor

                  • isConductor(type: string): boolean
                  • Parameters

                    • type: string

                    Returns boolean

                  isValidCan

                  • isValidCan(id: number, data: number): boolean
                  • Parameters

                    • id: number
                    • data: number

                    Returns boolean

                  isValidSourceItem

                  • isValidSourceItem(id: number, data: number): boolean
                  • Parameters

                    • id: number
                    • data: number

                    Returns boolean

                  load

                  • load(): void
                  • @deprecated

                    Returns void

                  onCheckerTick

                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                  • Parameters

                    • isInitialized: boolean
                    • isLoaded: boolean
                    • wasLoaded: boolean

                    Returns void

                  onCreate

                  • onCreate(): void
                  • Called when a TileEntity is created


                    Returns void

                  onInit

                  • onInit(): void
                  • Called when a TileEntity is initialised in the world


                    Returns void

                  onItemClick

                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                  • Parameters

                    • id: number
                    • count: number
                    • data: number
                    • coords: ItemUseCoordinates
                    • player: number
                    • extra: ItemExtraData

                    Returns boolean

                  onItemUse

                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                  • 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

                  • onLoad(): void
                  • Called when a chunk with TileEntity is loaded


                    Returns void

                  onRedstoneUpdate

                  • onRedstoneUpdate(signal: number): void
                  • Occurs when redstone signal on TileEntity block was updated


                    Parameters

                    • signal: number

                      signal power (0-15)

                    Returns void

                  onTick

                  • onTick(): void
                  • Called every tick and should be used for all the updates of the TileEntity


                    Returns void

                  onUnload

                  • onUnload(): void
                  • Called when a chunk with TileEntity is unloaded


                    Returns void

                  preventClick

                  • preventClick(): void
                  • Prevents all actions on click


                    Returns void

                  projectileHit

                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                  • Parameters

                    • coords: ItemUseCoordinates
                    • target: ProjectileHitTarget

                    Returns void

                  rebuildGrid

                  • rebuildGrid(): void
                  • Returns void

                  redstone

                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                  • @deprecated

                    Parameters

                    • params: { onLoad: boolean; power: number; signal: number }
                      • onLoad: boolean
                      • power: number
                      • signal: number

                    Returns void

                  renderModel

                  • renderModel(): void
                  • Returns void

                  requireMoreLiquid

                  • requireMoreLiquid(liquid: string, amount: number): void
                  • Parameters

                    • liquid: string
                    • amount: number

                    Returns void

                  selfDestroy

                  • selfDestroy(): void
                  • Returns void

                  setActive

                  • setActive(isActive: boolean): void
                  • Parameters

                    • isActive: boolean

                    Returns void

                  setFacing

                  • setFacing(side: number): boolean
                  • Parameters

                    • side: number

                    Returns boolean

                  setLiquidScale

                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                  • Parameters

                    • container: any
                    • window: any
                    • content: any
                    • data: { amount: number; liquid: string; scale: string }
                      • amount: number
                      • liquid: string
                      • scale: string

                    Returns void

                  setupContainer

                  • setupContainer(): void
                  • Returns void

                  startPlaySound

                  • startPlaySound(): void
                  • Returns void

                  stopPlaySound

                  • stopPlaySound(): void
                  • Returns void

                  switchMode

                  • switchMode(): void
                  • Returns void

                  switchTanks

                  • switchTanks(): void
                  • Returns void

                  tick

                  • tick(): void
                  • @deprecated

                    Returns void

                  unload

                  • unload(): void
                  • @deprecated

                    Returns void

                  updateLiquidScale

                  • updateLiquidScale(scale: string, liquid: string): void
                  • Parameters

                    • scale: string
                    • liquid: string

                    Returns void

                  updateUI

                  • updateUI(container: ItemContainer, window: any, content: any, data: { mode: number }): void
                  • Parameters

                    • container: ItemContainer
                    • window: any
                    • content: any
                    • data: { mode: number }
                      • mode: number

                    Returns void

                  useUpgrades

                  • Returns UpgradeSet

                  Compressor

                  Compressor:

                  constructor

                  • Returns Compressor

                  __clientMethods

                  __clientMethods: {}

                  Type declaration

                  • [key string]: boolean

                  __containerEvents

                  __containerEvents: {}

                  Type declaration

                  __initialized

                  __initialized: boolean

                  __networkEvents

                  __networkEvents: {}

                  Type declaration

                  audioSource

                  audioSource: AudioSource

                  readonlyblockID

                  blockID: number

                  blockSource

                  blockSource: BlockSource

                  click

                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                  Type declaration

                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                    • Parameters

                      • id: number
                      • count: number
                      • data: number
                      • coords: ItemUseCoordinates
                      • player: number
                      • extra: ItemExtraData

                      Returns boolean | void

                  client

                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                  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
                      • (): void
                      • Returns void

                  • tick: () => void
                      • (): void
                      • Returns void

                  • unload: () => void
                      • (): void
                      • Returns void

                  container

                  container: ItemContainer

                  containerEvents

                  containerEvents: {}

                  Type declaration

                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                  data

                  data: { energy: number; progress: number }

                  Type declaration

                  • energy: number
                  • progress: number

                  defaultDrop

                  defaultDrop: number

                  defaultEnergyDemand

                  defaultEnergyDemand: number

                  defaultEnergyStorage

                  defaultEnergyStorage: number

                  defaultProcessTime

                  defaultProcessTime: number

                  defaultTier

                  defaultTier: number

                  defaultValues

                  defaultValues: { energy: number; progress: number }

                  Type declaration

                  • energy: number
                  • progress: number

                  readonlydimension

                  dimension: number

                  optionalenergyDemand

                  energyDemand?: number

                  energyNode

                  energyNode: EnergyTileNode

                  energyStorage

                  energyStorage: number

                  energyTypes

                  energyTypes: object

                  events

                  events: {}

                  Type declaration

                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                  finishingSound

                  finishingSound: number

                  getGuiScreen

                  getGuiScreen: () => Nullable<IWindow>

                  Type declaration

                    • (): Nullable<IWindow>
                    • Returns Nullable<IWindow>

                  isLoaded

                  isLoaded: boolean

                  liquidStorage

                  liquidStorage: Storage

                  networkData

                  networkData: SyncedNetworkData

                  networkEntity

                  networkEntity: NetworkEntity

                  networkEntityType

                  networkEntityType: NetworkEntityType

                  networkEntityTypeName

                  networkEntityTypeName: string

                  noupdate

                  noupdate: boolean

                  optionalonConnectionPlayer

                  onConnectionPlayer?: (client: NetworkClient) => void

                  Type declaration

                    • (client: NetworkClient): void
                    • Parameters

                      • client: NetworkClient

                      Returns void

                  optionalonDisconnectionPlayer

                  onDisconnectionPlayer?: (client: NetworkClient) => void

                  Type declaration

                    • (client: NetworkClient): void
                    • Parameters

                      • client: NetworkClient

                      Returns void

                  optionalprocessTime

                  processTime?: number

                  region

                  region: WorldRegion

                  Interface for BlockSource of the TileEntity. Provides more functionality.

                  remove

                  remove: boolean

                  sendPacket

                  sendPacket: (name: string, data: object) => {}

                  Type declaration

                    • (name: string, data: object): {}
                    • Parameters

                      • name: string
                      • data: object

                      Returns {}

                    sendResponse

                    sendResponse: (packetName: string, someData: object) => {}

                    Type declaration

                      • (packetName: string, someData: object): {}
                      • Parameters

                        • packetName: string
                        • someData: object

                        Returns {}

                      tier

                      tier: number

                      update

                      update: () => void

                      Type declaration

                        • (): void
                        • Returns void

                      upgrades

                      upgrades: string[]

                      readonlyuseNetworkItemContainer

                      useNetworkItemContainer: boolean

                      x

                      x: number

                      y

                      y: number

                      z

                      z: number

                      addLiquidTank

                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                      • Parameters

                        • name: string
                        • limit: number
                        • optionalliquids: string[]

                        Returns LiquidTank

                      adjustDrop

                      • adjustDrop(item: ItemInstance): ItemInstance
                      • Parameters

                        • item: ItemInstance

                        Returns ItemInstance

                      canExtractEnergy

                      • canExtractEnergy(side: number, type: string): boolean
                      • Parameters

                        • side: number
                        • type: string

                        Returns boolean

                      canReceiveEnergy

                      • canReceiveEnergy(side: number, type: string): boolean
                      • Parameters

                        • side: number
                        • type: string

                        Returns boolean

                      canRotate

                      • canRotate(side: number): boolean
                      • Parameters

                        • side: number

                        Returns boolean

                      chargeSlot

                      • chargeSlot(slotName: string): void
                      • Parameters

                        • slotName: string

                        Returns void

                      clientLoad

                      • clientLoad(): void
                      • Called when the client copy is created


                        Returns void

                      clientTick

                      • clientTick(): void
                      • Called every tick on client thread


                        Returns void

                      clientUnload

                      • clientUnload(): void
                      • Called on destroying the client copy


                        Returns void

                      created

                      • created(): void
                      • Returns void

                      decreaseSlot

                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                      • Parameters

                        • slot: ItemContainerSlot
                        • count: number

                        Returns void

                      destroy

                      • destroy(): boolean
                      • Returns boolean

                      destroyBlock

                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                      • Parameters

                        • coords: ItemUseCoordinates
                        • player: number

                        Returns void

                      dischargeSlot

                      • dischargeSlot(slotName: string): void
                      • Parameters

                        • slotName: string

                        Returns void

                      energyReceive

                      • energyReceive(type: string, amount: number, voltage: number): number
                      • Parameters

                        • type: string
                        • amount: number
                        • voltage: number

                        Returns number

                      energyTick

                      • Parameters

                        Returns void

                      getDefaultDrop

                      • getDefaultDrop(): number
                      • Returns number

                      getEnergyStorage

                      • getEnergyStorage(): number
                      • Returns number

                      getExplosionPower

                      • getExplosionPower(): number
                      • Returns number

                      getFacing

                      • getFacing(): number
                      • Returns number

                      getInterruptSound

                      • getInterruptSound(): string
                      • Returns string

                      getMaxPacketSize

                      • getMaxPacketSize(): number
                      • Returns number

                      getOperationSound

                      • getOperationSound(): string
                      • Returns string

                      getRecipeResult

                      • getRecipeResult(id: number, data: number): RecipeData
                      • Parameters

                        • id: number
                        • data: number

                        Returns RecipeData

                      getRelativeEnergy

                      • getRelativeEnergy(): number
                      • Returns number

                      getScreenByName

                      • getScreenByName(): IWindow
                      • Returns IWindow

                      getScreenName

                      • getScreenName(player: number, coords: ItemUseCoordinates): string
                      • Parameters

                        • player: number
                        • coords: ItemUseCoordinates

                        Returns string

                      getStartingSound

                      • getStartingSound(): string
                      • Returns string

                      getTier

                      • getTier(): number
                      • Returns number

                      init

                      • init(): void
                      • @deprecated

                        Returns void

                      isConductor

                      • isConductor(type: string): boolean
                      • Parameters

                        • type: string

                        Returns boolean

                      load

                      • load(): void
                      • @deprecated

                        Returns void

                      onCheckerTick

                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                      • Parameters

                        • isInitialized: boolean
                        • isLoaded: boolean
                        • wasLoaded: boolean

                        Returns void

                      onCreate

                      • onCreate(): void
                      • Called when a TileEntity is created


                        Returns void

                      onInit

                      • onInit(): void
                      • Called when a TileEntity is initialised in the world


                        Returns void

                      onItemClick

                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                      • Parameters

                        • id: number
                        • count: number
                        • data: number
                        • coords: ItemUseCoordinates
                        • player: number
                        • extra: ItemExtraData

                        Returns boolean

                      onItemUse

                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                      • 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

                      • onLoad(): void
                      • Called when a chunk with TileEntity is loaded


                        Returns void

                      onRedstoneUpdate

                      • onRedstoneUpdate(signal: number): void
                      • Occurs when redstone signal on TileEntity block was updated


                        Parameters

                        • signal: number

                          signal power (0-15)

                        Returns void

                      onTick

                      • onTick(): void
                      • Called every tick and should be used for all the updates of the TileEntity


                        Returns void

                      onUnload

                      • onUnload(): void
                      • Called when a chunk with TileEntity is unloaded


                        Returns void

                      preventClick

                      • preventClick(): void
                      • Prevents all actions on click


                        Returns void

                      projectileHit

                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                      • Parameters

                        • coords: ItemUseCoordinates
                        • target: ProjectileHitTarget

                        Returns void

                      rebuildGrid

                      • rebuildGrid(): void
                      • Returns void

                      redstone

                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                      • @deprecated

                        Parameters

                        • params: { onLoad: boolean; power: number; signal: number }
                          • onLoad: boolean
                          • power: number
                          • signal: number

                        Returns void

                      renderModel

                      • renderModel(): void
                      • Returns void

                      requireMoreLiquid

                      • requireMoreLiquid(liquid: string, amount: number): void
                      • Parameters

                        • liquid: string
                        • amount: number

                        Returns void

                      selfDestroy

                      • selfDestroy(): void
                      • Returns void

                      setActive

                      • setActive(isActive: boolean): void
                      • Parameters

                        • isActive: boolean

                        Returns void

                      setFacing

                      • setFacing(side: number): boolean
                      • Parameters

                        • side: number

                        Returns boolean

                      setLiquidScale

                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                      • Parameters

                        • container: any
                        • window: any
                        • content: any
                        • data: { amount: number; liquid: string; scale: string }
                          • amount: number
                          • liquid: string
                          • scale: string

                        Returns void

                      setupContainer

                      • setupContainer(): void
                      • Returns void

                      startPlaySound

                      • startPlaySound(): void
                      • Returns void

                      stopPlaySound

                      • stopPlaySound(): void
                      • Returns void

                      tick

                      • tick(): void
                      • @deprecated

                        Returns void

                      unload

                      • unload(): void
                      • @deprecated

                        Returns void

                      updateLiquidScale

                      • updateLiquidScale(scale: string, liquid: string): void
                      • Parameters

                        • scale: string
                        • liquid: string

                        Returns void

                      useUpgrades

                      • Returns UpgradeSet

                      CropHarvester

                      CropHarvester:

                      constructor

                      __clientMethods

                      __clientMethods: {}

                      Type declaration

                      • [key string]: boolean

                      __containerEvents

                      __containerEvents: {}

                      Type declaration

                      __initialized

                      __initialized: boolean

                      __networkEvents

                      __networkEvents: {}

                      Type declaration

                      audioSource

                      audioSource: AudioSource

                      readonlyblockID

                      blockID: number

                      blockSource

                      blockSource: BlockSource

                      click

                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                      Type declaration

                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                        • Parameters

                          • id: number
                          • count: number
                          • data: number
                          • coords: ItemUseCoordinates
                          • player: number
                          • extra: ItemExtraData

                          Returns boolean | void

                      client

                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                      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
                          • (): void
                          • Returns void

                      • tick: () => void
                          • (): void
                          • Returns void

                      • unload: () => void
                          • (): void
                          • Returns void

                      container

                      container: ItemContainer

                      containerEvents

                      containerEvents: {}

                      Type declaration

                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                      data

                      data: { energy: number; energy_storage: number; scanX: number; scanY: number; scanZ: number; tier: number }

                      Type declaration

                      • energy: number
                      • energy_storage: number
                      • scanX: number
                      • scanY: number
                      • scanZ: number
                      • tier: number

                      defaultDrop

                      defaultDrop: number

                      defaultEnergyStorage

                      defaultEnergyStorage: number

                      defaultTier

                      defaultTier: number

                      defaultValues

                      defaultValues: { energy: number; energy_storage: number; scanX: number; scanY: number; scanZ: number; tier: number }

                      Type declaration

                      • energy: number
                      • energy_storage: number
                      • scanX: number
                      • scanY: number
                      • scanZ: number
                      • tier: number

                      readonlydimension

                      dimension: number

                      energyNode

                      energyNode: EnergyTileNode

                      energyStorage

                      energyStorage: number

                      energyTypes

                      energyTypes: object

                      events

                      events: {}

                      Type declaration

                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                      finishingSound

                      finishingSound: number

                      getGuiScreen

                      getGuiScreen: () => Nullable<IWindow>

                      Type declaration

                        • (): Nullable<IWindow>
                        • Returns Nullable<IWindow>

                      isLoaded

                      isLoaded: boolean

                      liquidStorage

                      liquidStorage: Storage

                      networkData

                      networkData: SyncedNetworkData

                      networkEntity

                      networkEntity: NetworkEntity

                      networkEntityType

                      networkEntityType: NetworkEntityType

                      networkEntityTypeName

                      networkEntityTypeName: string

                      noupdate

                      noupdate: boolean

                      optionalonConnectionPlayer

                      onConnectionPlayer?: (client: NetworkClient) => void

                      Type declaration

                        • (client: NetworkClient): void
                        • Parameters

                          • client: NetworkClient

                          Returns void

                      optionalonDisconnectionPlayer

                      onDisconnectionPlayer?: (client: NetworkClient) => void

                      Type declaration

                        • (client: NetworkClient): void
                        • Parameters

                          • client: NetworkClient

                          Returns void

                      region

                      region: WorldRegion

                      Interface for BlockSource of the TileEntity. Provides more functionality.

                      remove

                      remove: boolean

                      sendPacket

                      sendPacket: (name: string, data: object) => {}

                      Type declaration

                        • (name: string, data: object): {}
                        • Parameters

                          • name: string
                          • data: object

                          Returns {}

                        sendResponse

                        sendResponse: (packetName: string, someData: object) => {}

                        Type declaration

                          • (packetName: string, someData: object): {}
                          • Parameters

                            • packetName: string
                            • someData: object

                            Returns {}

                          tier

                          tier: number

                          update

                          update: () => void

                          Type declaration

                            • (): void
                            • Returns void

                          upgrades

                          upgrades: string[]

                          readonlyuseNetworkItemContainer

                          useNetworkItemContainer: boolean

                          x

                          x: number

                          y

                          y: number

                          z

                          z: number

                          addLiquidTank

                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                          • Parameters

                            • name: string
                            • limit: number
                            • optionalliquids: string[]

                            Returns LiquidTank

                          adjustDrop

                          • adjustDrop(item: ItemInstance): ItemInstance
                          • Parameters

                            • item: ItemInstance

                            Returns ItemInstance

                          canExtractEnergy

                          • canExtractEnergy(side: number, type: string): boolean
                          • Parameters

                            • side: number
                            • type: string

                            Returns boolean

                          canReceiveEnergy

                          • canReceiveEnergy(side: number, type: string): boolean
                          • Parameters

                            • side: number
                            • type: string

                            Returns boolean

                          canRotate

                          • canRotate(side: number): boolean
                          • Parameters

                            • side: number

                            Returns boolean

                          chargeSlot

                          • chargeSlot(slotName: string): void
                          • Parameters

                            • slotName: string

                            Returns void

                          clientLoad

                          • clientLoad(): void
                          • Called when the client copy is created


                            Returns void

                          clientTick

                          • clientTick(): void
                          • Called every tick on client thread


                            Returns void

                          clientUnload

                          • clientUnload(): void
                          • Called on destroying the client copy


                            Returns void

                          created

                          • created(): void
                          • Returns void

                          decreaseSlot

                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                          • Parameters

                            • slot: ItemContainerSlot
                            • count: number

                            Returns void

                          destroy

                          • destroy(): boolean
                          • Returns boolean

                          destroyBlock

                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                          • Parameters

                            • coords: ItemUseCoordinates
                            • player: number

                            Returns void

                          dischargeSlot

                          • dischargeSlot(slotName: string): void
                          • Parameters

                            • slotName: string

                            Returns void

                          energyReceive

                          • energyReceive(type: string, amount: number, voltage: number): number
                          • Parameters

                            • type: string
                            • amount: number
                            • voltage: number

                            Returns number

                          energyTick

                          • Parameters

                            Returns void

                          getDefaultDrop

                          • getDefaultDrop(): number
                          • Returns number

                          getEnergyStorage

                          • getEnergyStorage(): number
                          • Returns number

                          getExplosionPower

                          • getExplosionPower(): number
                          • Returns number

                          getFacing

                          • getFacing(): number
                          • Returns number

                          getInterruptSound

                          • getInterruptSound(): string
                          • Returns string

                          getMaxPacketSize

                          • getMaxPacketSize(): number
                          • Returns number

                          getOperationSound

                          • getOperationSound(): string
                          • Returns string

                          getRelativeEnergy

                          • getRelativeEnergy(): number
                          • Returns number

                          getScreenByName

                          • getScreenByName(): IWindow
                          • Returns IWindow

                          getScreenName

                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                          • Parameters

                            • player: number
                            • coords: ItemUseCoordinates

                            Returns string

                          getStartingSound

                          • getStartingSound(): string
                          • Returns string

                          getTier

                          • getTier(): number
                          • Returns number

                          init

                          • init(): void
                          • @deprecated

                            Returns void

                          isConductor

                          • isConductor(type: string): boolean
                          • Parameters

                            • type: string

                            Returns boolean

                          isInventoryFull

                          • isInventoryFull(): boolean
                          • Returns boolean

                          load

                          • load(): void
                          • @deprecated

                            Returns void

                          onCheckerTick

                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                          • Parameters

                            • isInitialized: boolean
                            • isLoaded: boolean
                            • wasLoaded: boolean

                            Returns void

                          onCreate

                          • onCreate(): void
                          • Called when a TileEntity is created


                            Returns void

                          onInit

                          • onInit(): void
                          • Called when a TileEntity is initialised in the world


                            Returns void

                          onItemClick

                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                          • Parameters

                            • id: number
                            • count: number
                            • data: number
                            • coords: ItemUseCoordinates
                            • player: number
                            • extra: ItemExtraData

                            Returns boolean

                          onItemUse

                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                          • 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

                          • onLoad(): void
                          • Called when a chunk with TileEntity is loaded


                            Returns void

                          onRedstoneUpdate

                          • onRedstoneUpdate(signal: number): void
                          • Occurs when redstone signal on TileEntity block was updated


                            Parameters

                            • signal: number

                              signal power (0-15)

                            Returns void

                          onTick

                          • onTick(): void
                          • Called every tick and should be used for all the updates of the TileEntity


                            Returns void

                          onUnload

                          • onUnload(): void
                          • Called when a chunk with TileEntity is unloaded


                            Returns void

                          preventClick

                          • preventClick(): void
                          • Prevents all actions on click


                            Returns void

                          projectileHit

                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                          • Parameters

                            • coords: ItemUseCoordinates
                            • target: ProjectileHitTarget

                            Returns void

                          putItem

                          • putItem(item: ItemInstance): void
                          • Parameters

                            • item: ItemInstance

                            Returns void

                          rebuildGrid

                          • rebuildGrid(): void
                          • Returns void

                          redstone

                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                          • @deprecated

                            Parameters

                            • params: { onLoad: boolean; power: number; signal: number }
                              • onLoad: boolean
                              • power: number
                              • signal: number

                            Returns void

                          renderModel

                          • renderModel(): void
                          • Returns void

                          requireMoreLiquid

                          • requireMoreLiquid(liquid: string, amount: number): void
                          • Parameters

                            • liquid: string
                            • amount: number

                            Returns void

                          scan

                          • scan(): void
                          • Returns void

                          selfDestroy

                          • selfDestroy(): void
                          • Returns void

                          setActive

                          • setActive(isActive: boolean): void
                          • Parameters

                            • isActive: boolean

                            Returns void

                          setFacing

                          • setFacing(side: number): boolean
                          • Parameters

                            • side: number

                            Returns boolean

                          setLiquidScale

                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                          • Parameters

                            • container: any
                            • window: any
                            • content: any
                            • data: { amount: number; liquid: string; scale: string }
                              • amount: number
                              • liquid: string
                              • scale: string

                            Returns void

                          setupContainer

                          • setupContainer(): void
                          • Returns void

                          startPlaySound

                          • startPlaySound(): void
                          • Returns void

                          stopPlaySound

                          • stopPlaySound(): void
                          • Returns void

                          tick

                          • tick(): void
                          • @deprecated

                            Returns void

                          unload

                          • unload(): void
                          • @deprecated

                            Returns void

                          updateLiquidScale

                          • updateLiquidScale(scale: string, liquid: string): void
                          • Parameters

                            • scale: string
                            • liquid: string

                            Returns void

                          useUpgrades

                          • useUpgrades(): void
                          • Returns void

                          CropMatron

                          CropMatron:

                          constructor

                          • Returns CropMatron

                          __clientMethods

                          __clientMethods: {}

                          Type declaration

                          • [key string]: boolean

                          __containerEvents

                          __containerEvents: {}

                          Type declaration

                          __initialized

                          __initialized: boolean

                          __networkEvents

                          __networkEvents: {}

                          Type declaration

                          audioSource

                          audioSource: AudioSource

                          readonlyblockID

                          blockID: number

                          blockSource

                          blockSource: BlockSource

                          click

                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                          Type declaration

                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                            • Parameters

                              • id: number
                              • count: number
                              • data: number
                              • coords: ItemUseCoordinates
                              • player: number
                              • extra: ItemExtraData

                              Returns boolean | void

                          client

                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                          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
                              • (): void
                              • Returns void

                          • tick: () => void
                              • (): void
                              • Returns void

                          • unload: () => void
                              • (): void
                              • Returns void

                          container

                          container: ItemContainer

                          containerEvents

                          containerEvents: {}

                          Type declaration

                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                          data

                          data: { energy: number; scanX: number; scanY: number; scanZ: number }

                          Type declaration

                          • energy: number
                          • scanX: number
                          • scanY: number
                          • scanZ: number

                          optionaldefaultDrop

                          defaultDrop?: number

                          defaultValues

                          defaultValues: { energy: number; scanX: number; scanY: number; scanZ: number }

                          Type declaration

                          • energy: number
                          • scanX: number
                          • scanY: number
                          • scanZ: number

                          readonlydimension

                          dimension: number

                          energyNode

                          energyNode: EnergyTileNode

                          energyTypes

                          energyTypes: object

                          events

                          events: {}

                          Type declaration

                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                          finishingSound

                          finishingSound: number

                          getGuiScreen

                          getGuiScreen: () => Nullable<IWindow>

                          Type declaration

                            • (): Nullable<IWindow>
                            • Returns Nullable<IWindow>

                          isLoaded

                          isLoaded: boolean

                          liquidStorage

                          liquidStorage: Storage

                          liquidTank

                          liquidTank: LiquidTank

                          networkData

                          networkData: SyncedNetworkData

                          networkEntity

                          networkEntity: NetworkEntity

                          networkEntityType

                          networkEntityType: NetworkEntityType

                          networkEntityTypeName

                          networkEntityTypeName: string

                          noupdate

                          noupdate: boolean

                          optionalonConnectionPlayer

                          onConnectionPlayer?: (client: NetworkClient) => void

                          Type declaration

                            • (client: NetworkClient): void
                            • Parameters

                              • client: NetworkClient

                              Returns void

                          optionalonDisconnectionPlayer

                          onDisconnectionPlayer?: (client: NetworkClient) => void

                          Type declaration

                            • (client: NetworkClient): void
                            • Parameters

                              • client: NetworkClient

                              Returns void

                          region

                          region: WorldRegion

                          Interface for BlockSource of the TileEntity. Provides more functionality.

                          remove

                          remove: boolean

                          sendPacket

                          sendPacket: (name: string, data: object) => {}

                          Type declaration

                            • (name: string, data: object): {}
                            • Parameters

                              • name: string
                              • data: object

                              Returns {}

                            sendResponse

                            sendResponse: (packetName: string, someData: object) => {}

                            Type declaration

                              • (packetName: string, someData: object): {}
                              • Parameters

                                • packetName: string
                                • someData: object

                                Returns {}

                              update

                              update: () => void

                              Type declaration

                                • (): void
                                • Returns void

                              optionalupgrades

                              upgrades?: string[]

                              readonlyuseNetworkItemContainer

                              useNetworkItemContainer: boolean

                              x

                              x: number

                              y

                              y: number

                              z

                              z: number

                              addLiquidTank

                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                              • Parameters

                                • name: string
                                • limit: number
                                • optionalliquids: string[]

                                Returns LiquidTank

                              adjustDrop

                              • adjustDrop(item: ItemInstance): ItemInstance
                              • Parameters

                                • item: ItemInstance

                                Returns ItemInstance

                              canExtractEnergy

                              • canExtractEnergy(side: number, type: string): boolean
                              • Parameters

                                • side: number
                                • type: string

                                Returns boolean

                              canReceiveEnergy

                              • canReceiveEnergy(side: number, type: string): boolean
                              • Parameters

                                • side: number
                                • type: string

                                Returns boolean

                              canRotate

                              • canRotate(side: number): boolean
                              • Parameters

                                • side: number

                                Returns boolean

                              chargeSlot

                              • chargeSlot(slotName: string): void
                              • Parameters

                                • slotName: string

                                Returns void

                              clientLoad

                              • clientLoad(): void
                              • Called when the client copy is created


                                Returns void

                              clientTick

                              • clientTick(): void
                              • Called every tick on client thread


                                Returns void

                              clientUnload

                              • clientUnload(): void
                              • Called on destroying the client copy


                                Returns void

                              created

                              • created(): void
                              • Returns void

                              decreaseSlot

                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                              • Parameters

                                • slot: ItemContainerSlot
                                • count: number

                                Returns void

                              destroy

                              • destroy(): boolean
                              • Returns boolean

                              destroyBlock

                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                              • Parameters

                                • coords: ItemUseCoordinates
                                • player: number

                                Returns void

                              dischargeSlot

                              • dischargeSlot(slotName: string): void
                              • Parameters

                                • slotName: string

                                Returns void

                              energyReceive

                              • energyReceive(type: string, amount: number, voltage: number): number
                              • Parameters

                                • type: string
                                • amount: number
                                • voltage: number

                                Returns number

                              energyTick

                              • Parameters

                                Returns void

                              getDefaultDrop

                              • getDefaultDrop(): number
                              • Returns number

                              getEnergyStorage

                              • getEnergyStorage(): number
                              • Returns number

                              getExplosionPower

                              • getExplosionPower(): number
                              • Returns number

                              getFacing

                              • getFacing(): number
                              • Returns number

                              getInterruptSound

                              • getInterruptSound(): string
                              • Returns string

                              getMaxPacketSize

                              • getMaxPacketSize(): number
                              • Returns number

                              getOperationSound

                              • getOperationSound(): string
                              • Returns string

                              getRelativeEnergy

                              • getRelativeEnergy(): number
                              • Returns number

                              getScreenByName

                              • getScreenByName(): IWindow
                              • Returns IWindow

                              getScreenName

                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                              • Parameters

                                • player: number
                                • coords: ItemUseCoordinates

                                Returns string

                              getSlot

                              • getSlot(type: string): Nullable<ItemContainerSlot>
                              • Parameters

                                • type: string

                                Returns Nullable<ItemContainerSlot>

                              getStartingSound

                              • getStartingSound(): string
                              • Returns string

                              getTier

                              • getTier(): number
                              • Returns number

                              init

                              • init(): void
                              • @deprecated

                                Returns void

                              isConductor

                              • isConductor(type: string): boolean
                              • Parameters

                                • type: string

                                Returns boolean

                              load

                              • load(): void
                              • @deprecated

                                Returns void

                              onCheckerTick

                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                              • Parameters

                                • isInitialized: boolean
                                • isLoaded: boolean
                                • wasLoaded: boolean

                                Returns void

                              onCreate

                              • onCreate(): void
                              • Called when a TileEntity is created


                                Returns void

                              onInit

                              • onInit(): void
                              • Called when a TileEntity is initialised in the world


                                Returns void

                              onItemClick

                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                              • Parameters

                                • id: number
                                • count: number
                                • data: number
                                • coords: ItemUseCoordinates
                                • player: number
                                • extra: ItemExtraData

                                Returns boolean

                              onItemUse

                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                              • 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

                              • onLoad(): void
                              • Called when a chunk with TileEntity is loaded


                                Returns void

                              onRedstoneUpdate

                              • onRedstoneUpdate(signal: number): void
                              • Occurs when redstone signal on TileEntity block was updated


                                Parameters

                                • signal: number

                                  signal power (0-15)

                                Returns void

                              onTick

                              • onTick(): void
                              • Called every tick and should be used for all the updates of the TileEntity


                                Returns void

                              onUnload

                              • onUnload(): void
                              • Called when a chunk with TileEntity is unloaded


                                Returns void

                              preventClick

                              • preventClick(): void
                              • Prevents all actions on click


                                Returns void

                              projectileHit

                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                              • Parameters

                                • coords: ItemUseCoordinates
                                • target: ProjectileHitTarget

                                Returns void

                              rebuildGrid

                              • rebuildGrid(): void
                              • Returns void

                              redstone

                              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                              • @deprecated

                                Parameters

                                • params: { onLoad: boolean; power: number; signal: number }
                                  • onLoad: boolean
                                  • power: number
                                  • signal: number

                                Returns void

                              renderModel

                              • renderModel(): void
                              • Returns void

                              requireMoreLiquid

                              • requireMoreLiquid(liquid: string, amount: number): void
                              • Parameters

                                • liquid: string
                                • amount: number

                                Returns void

                              scan

                              • scan(): void
                              • Returns void

                              selfDestroy

                              • selfDestroy(): void
                              • Returns void

                              setActive

                              • setActive(isActive: boolean): void
                              • Parameters

                                • isActive: boolean

                                Returns void

                              setFacing

                              • setFacing(side: number): boolean
                              • Parameters

                                • side: number

                                Returns boolean

                              setLiquidScale

                              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                              • Parameters

                                • container: any
                                • window: any
                                • content: any
                                • data: { amount: number; liquid: string; scale: string }
                                  • amount: number
                                  • liquid: string
                                  • scale: string

                                Returns void

                              setupContainer

                              • setupContainer(): void
                              • Returns void

                              startPlaySound

                              • startPlaySound(): void
                              • Returns void

                              stopPlaySound

                              • stopPlaySound(): void
                              • Returns void

                              tick

                              • tick(): void
                              • @deprecated

                                Returns void

                              unload

                              • unload(): void
                              • @deprecated

                                Returns void

                              updateLiquidScale

                              • updateLiquidScale(scale: string, liquid: string): void
                              • Parameters

                                • scale: string
                                • liquid: string

                                Returns void

                              ElectricFurnace

                              ElectricFurnace:

                              constructor

                              __clientMethods

                              __clientMethods: {}

                              Type declaration

                              • [key string]: boolean

                              __containerEvents

                              __containerEvents: {}

                              Type declaration

                              __initialized

                              __initialized: boolean

                              __networkEvents

                              __networkEvents: {}

                              Type declaration

                              audioSource

                              audioSource: AudioSource

                              readonlyblockID

                              blockID: number

                              blockSource

                              blockSource: BlockSource

                              click

                              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                              Type declaration

                                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                • Parameters

                                  • id: number
                                  • count: number
                                  • data: number
                                  • coords: ItemUseCoordinates
                                  • player: number
                                  • extra: ItemExtraData

                                  Returns boolean | void

                              client

                              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                              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
                                  • (): void
                                  • Returns void

                              • tick: () => void
                                  • (): void
                                  • Returns void

                              • unload: () => void
                                  • (): void
                                  • Returns void

                              container

                              container: ItemContainer

                              containerEvents

                              containerEvents: {}

                              Type declaration

                              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                              data

                              data: { energy: number; progress: number }

                              Type declaration

                              • energy: number
                              • progress: number

                              defaultDrop

                              defaultDrop: number

                              defaultEnergyDemand

                              defaultEnergyDemand: number

                              defaultEnergyStorage

                              defaultEnergyStorage: number

                              defaultProcessTime

                              defaultProcessTime: number

                              defaultTier

                              defaultTier: number

                              defaultValues

                              defaultValues: { energy: number; progress: number }

                              Type declaration

                              • energy: number
                              • progress: number

                              readonlydimension

                              dimension: number

                              optionalenergyDemand

                              energyDemand?: number

                              energyNode

                              energyNode: EnergyTileNode

                              energyStorage

                              energyStorage: number

                              energyTypes

                              energyTypes: object

                              events

                              events: {}

                              Type declaration

                              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                              finishingSound

                              finishingSound: number

                              getGuiScreen

                              getGuiScreen: () => Nullable<IWindow>

                              Type declaration

                                • (): Nullable<IWindow>
                                • Returns Nullable<IWindow>

                              isLoaded

                              isLoaded: boolean

                              liquidStorage

                              liquidStorage: Storage

                              networkData

                              networkData: SyncedNetworkData

                              networkEntity

                              networkEntity: NetworkEntity

                              networkEntityType

                              networkEntityType: NetworkEntityType

                              networkEntityTypeName

                              networkEntityTypeName: string

                              noupdate

                              noupdate: boolean

                              optionalonConnectionPlayer

                              onConnectionPlayer?: (client: NetworkClient) => void

                              Type declaration

                                • (client: NetworkClient): void
                                • Parameters

                                  • client: NetworkClient

                                  Returns void

                              optionalonDisconnectionPlayer

                              onDisconnectionPlayer?: (client: NetworkClient) => void

                              Type declaration

                                • (client: NetworkClient): void
                                • Parameters

                                  • client: NetworkClient

                                  Returns void

                              optionalprocessTime

                              processTime?: number

                              region

                              region: WorldRegion

                              Interface for BlockSource of the TileEntity. Provides more functionality.

                              remove

                              remove: boolean

                              sendPacket

                              sendPacket: (name: string, data: object) => {}

                              Type declaration

                                • (name: string, data: object): {}
                                • Parameters

                                  • name: string
                                  • data: object

                                  Returns {}

                                sendResponse

                                sendResponse: (packetName: string, someData: object) => {}

                                Type declaration

                                  • (packetName: string, someData: object): {}
                                  • Parameters

                                    • packetName: string
                                    • someData: object

                                    Returns {}

                                  tier

                                  tier: number

                                  update

                                  update: () => void

                                  Type declaration

                                    • (): void
                                    • Returns void

                                  upgrades

                                  upgrades: string[]

                                  readonlyuseNetworkItemContainer

                                  useNetworkItemContainer: boolean

                                  x

                                  x: number

                                  y

                                  y: number

                                  z

                                  z: number

                                  addLiquidTank

                                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                  • Parameters

                                    • name: string
                                    • limit: number
                                    • optionalliquids: string[]

                                    Returns LiquidTank

                                  adjustDrop

                                  • adjustDrop(item: ItemInstance): ItemInstance
                                  • Parameters

                                    • item: ItemInstance

                                    Returns ItemInstance

                                  canExtractEnergy

                                  • canExtractEnergy(side: number, type: string): boolean
                                  • Parameters

                                    • side: number
                                    • type: string

                                    Returns boolean

                                  canReceiveEnergy

                                  • canReceiveEnergy(side: number, type: string): boolean
                                  • Parameters

                                    • side: number
                                    • type: string

                                    Returns boolean

                                  canRotate

                                  • canRotate(side: number): boolean
                                  • Parameters

                                    • side: number

                                    Returns boolean

                                  chargeSlot

                                  • chargeSlot(slotName: string): void
                                  • Parameters

                                    • slotName: string

                                    Returns void

                                  clientLoad

                                  • clientLoad(): void
                                  • Called when the client copy is created


                                    Returns void

                                  clientTick

                                  • clientTick(): void
                                  • Called every tick on client thread


                                    Returns void

                                  clientUnload

                                  • clientUnload(): void
                                  • Called on destroying the client copy


                                    Returns void

                                  created

                                  • created(): void
                                  • Returns void

                                  decreaseSlot

                                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                  • Parameters

                                    • slot: ItemContainerSlot
                                    • count: number

                                    Returns void

                                  destroy

                                  • destroy(): boolean
                                  • Returns boolean

                                  destroyBlock

                                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                  • Parameters

                                    • coords: ItemUseCoordinates
                                    • player: number

                                    Returns void

                                  dischargeSlot

                                  • dischargeSlot(slotName: string): void
                                  • Parameters

                                    • slotName: string

                                    Returns void

                                  energyReceive

                                  • energyReceive(type: string, amount: number, voltage: number): number
                                  • Parameters

                                    • type: string
                                    • amount: number
                                    • voltage: number

                                    Returns number

                                  energyTick

                                  • Parameters

                                    Returns void

                                  getDefaultDrop

                                  • getDefaultDrop(): number
                                  • Returns number

                                  getEnergyStorage

                                  • getEnergyStorage(): number
                                  • Returns number

                                  getExplosionPower

                                  • getExplosionPower(): number
                                  • Returns number

                                  getFacing

                                  • getFacing(): number
                                  • Returns number

                                  getInterruptSound

                                  • getInterruptSound(): string
                                  • Returns string

                                  getMaxPacketSize

                                  • getMaxPacketSize(): number
                                  • Returns number

                                  getOperationSound

                                  • getOperationSound(): string
                                  • Returns string

                                  getRecipeResult

                                  • getRecipeResult(id: number, data: number): ItemInstance
                                  • Parameters

                                    • id: number
                                    • data: number

                                    Returns ItemInstance

                                  getRelativeEnergy

                                  • getRelativeEnergy(): number
                                  • Returns number

                                  getScreenByName

                                  • getScreenByName(): IWindow
                                  • Returns IWindow

                                  getScreenName

                                  • getScreenName(player: number, coords: ItemUseCoordinates): string
                                  • Parameters

                                    • player: number
                                    • coords: ItemUseCoordinates

                                    Returns string

                                  getStartingSound

                                  • getStartingSound(): string
                                  • Returns string

                                  getTier

                                  • getTier(): number
                                  • Returns number

                                  init

                                  • init(): void
                                  • @deprecated

                                    Returns void

                                  isConductor

                                  • isConductor(type: string): boolean
                                  • Parameters

                                    • type: string

                                    Returns boolean

                                  load

                                  • load(): void
                                  • @deprecated

                                    Returns void

                                  onCheckerTick

                                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                  • Parameters

                                    • isInitialized: boolean
                                    • isLoaded: boolean
                                    • wasLoaded: boolean

                                    Returns void

                                  onCreate

                                  • onCreate(): void
                                  • Called when a TileEntity is created


                                    Returns void

                                  onInit

                                  • onInit(): void
                                  • Called when a TileEntity is initialised in the world


                                    Returns void

                                  onItemClick

                                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                  • Parameters

                                    • id: number
                                    • count: number
                                    • data: number
                                    • coords: ItemUseCoordinates
                                    • player: number
                                    • extra: ItemExtraData

                                    Returns boolean

                                  onItemUse

                                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                  • 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

                                  • onLoad(): void
                                  • Called when a chunk with TileEntity is loaded


                                    Returns void

                                  onRedstoneUpdate

                                  • onRedstoneUpdate(signal: number): void
                                  • Occurs when redstone signal on TileEntity block was updated


                                    Parameters

                                    • signal: number

                                      signal power (0-15)

                                    Returns void

                                  onTick

                                  • onTick(): void
                                  • Called every tick and should be used for all the updates of the TileEntity


                                    Returns void

                                  onUnload

                                  • onUnload(): void
                                  • Called when a chunk with TileEntity is unloaded


                                    Returns void

                                  preventClick

                                  • preventClick(): void
                                  • Prevents all actions on click


                                    Returns void

                                  projectileHit

                                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                  • Parameters

                                    • coords: ItemUseCoordinates
                                    • target: ProjectileHitTarget

                                    Returns void

                                  rebuildGrid

                                  • rebuildGrid(): void
                                  • Returns void

                                  redstone

                                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                  • @deprecated

                                    Parameters

                                    • params: { onLoad: boolean; power: number; signal: number }
                                      • onLoad: boolean
                                      • power: number
                                      • signal: number

                                    Returns void

                                  renderModel

                                  • renderModel(): void
                                  • Returns void

                                  requireMoreLiquid

                                  • requireMoreLiquid(liquid: string, amount: number): void
                                  • Parameters

                                    • liquid: string
                                    • amount: number

                                    Returns void

                                  selfDestroy

                                  • selfDestroy(): void
                                  • Returns void

                                  setActive

                                  • setActive(isActive: boolean): void
                                  • Parameters

                                    • isActive: boolean

                                    Returns void

                                  setFacing

                                  • setFacing(side: number): boolean
                                  • Parameters

                                    • side: number

                                    Returns boolean

                                  setLiquidScale

                                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                  • Parameters

                                    • container: any
                                    • window: any
                                    • content: any
                                    • data: { amount: number; liquid: string; scale: string }
                                      • amount: number
                                      • liquid: string
                                      • scale: string

                                    Returns void

                                  setupContainer

                                  • setupContainer(): void
                                  • Returns void

                                  startPlaySound

                                  • startPlaySound(): void
                                  • Returns void

                                  stopPlaySound

                                  • stopPlaySound(): void
                                  • Returns void

                                  tick

                                  • tick(): void
                                  • @deprecated

                                    Returns void

                                  unload

                                  • unload(): void
                                  • @deprecated

                                    Returns void

                                  updateLiquidScale

                                  • updateLiquidScale(scale: string, liquid: string): void
                                  • Parameters

                                    • scale: string
                                    • liquid: string

                                    Returns void

                                  useUpgrades

                                  • Returns UpgradeSet

                                  ElectricHeatGenerator

                                  ElectricHeatGenerator:

                                  constructor

                                  __clientMethods

                                  __clientMethods: {}

                                  Type declaration

                                  • [key string]: boolean

                                  __containerEvents

                                  __containerEvents: {}

                                  Type declaration

                                  __initialized

                                  __initialized: boolean

                                  __networkEvents

                                  __networkEvents: {}

                                  Type declaration

                                  audioSource

                                  audioSource: AudioSource

                                  readonlyblockID

                                  blockID: number

                                  blockSource

                                  blockSource: BlockSource

                                  click

                                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                  Type declaration

                                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                    • Parameters

                                      • id: number
                                      • count: number
                                      • data: number
                                      • coords: ItemUseCoordinates
                                      • player: number
                                      • extra: ItemExtraData

                                      Returns boolean | void

                                  client

                                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                  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
                                      • (): void
                                      • Returns void

                                  • tick: () => void
                                      • (): void
                                      • Returns void

                                  • unload: () => void
                                      • (): void
                                      • Returns void

                                  container

                                  container: ItemContainer

                                  containerEvents

                                  containerEvents: {}

                                  Type declaration

                                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                  data

                                  data: { energy: number }

                                  Type declaration

                                  • energy: number

                                  optionaldefaultDrop

                                  defaultDrop?: number

                                  defaultValues

                                  defaultValues: { energy: number }

                                  Type declaration

                                  • energy: number

                                  readonlydimension

                                  dimension: number

                                  energyNode

                                  energyNode: EnergyTileNode

                                  energyTypes

                                  energyTypes: object

                                  events

                                  events: {}

                                  Type declaration

                                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                  finishingSound

                                  finishingSound: number

                                  getGuiScreen

                                  getGuiScreen: () => Nullable<IWindow>

                                  Type declaration

                                    • (): Nullable<IWindow>
                                    • Returns Nullable<IWindow>

                                  isLoaded

                                  isLoaded: boolean

                                  liquidStorage

                                  liquidStorage: Storage

                                  networkData

                                  networkData: SyncedNetworkData

                                  networkEntity

                                  networkEntity: NetworkEntity

                                  networkEntityType

                                  networkEntityType: NetworkEntityType

                                  networkEntityTypeName

                                  networkEntityTypeName: string

                                  noupdate

                                  noupdate: boolean

                                  optionalonConnectionPlayer

                                  onConnectionPlayer?: (client: NetworkClient) => void

                                  Type declaration

                                    • (client: NetworkClient): void
                                    • Parameters

                                      • client: NetworkClient

                                      Returns void

                                  optionalonDisconnectionPlayer

                                  onDisconnectionPlayer?: (client: NetworkClient) => void

                                  Type declaration

                                    • (client: NetworkClient): void
                                    • Parameters

                                      • client: NetworkClient

                                      Returns void

                                  region

                                  region: WorldRegion

                                  Interface for BlockSource of the TileEntity. Provides more functionality.

                                  remove

                                  remove: boolean

                                  sendPacket

                                  sendPacket: (name: string, data: object) => {}

                                  Type declaration

                                    • (name: string, data: object): {}
                                    • Parameters

                                      • name: string
                                      • data: object

                                      Returns {}

                                    sendResponse

                                    sendResponse: (packetName: string, someData: object) => {}

                                    Type declaration

                                      • (packetName: string, someData: object): {}
                                      • Parameters

                                        • packetName: string
                                        • someData: object

                                        Returns {}

                                      update

                                      update: () => void

                                      Type declaration

                                        • (): void
                                        • Returns void

                                      optionalupgrades

                                      upgrades?: string[]

                                      readonlyuseNetworkItemContainer

                                      useNetworkItemContainer: boolean

                                      x

                                      x: number

                                      y

                                      y: number

                                      z

                                      z: number

                                      addLiquidTank

                                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                      • Parameters

                                        • name: string
                                        • limit: number
                                        • optionalliquids: string[]

                                        Returns LiquidTank

                                      adjustDrop

                                      • adjustDrop(item: ItemInstance): ItemInstance
                                      • Parameters

                                        • item: ItemInstance

                                        Returns ItemInstance

                                      calcOutput

                                      • calcOutput(): number
                                      • Returns number

                                      canExtractEnergy

                                      • canExtractEnergy(side: number, type: string): boolean
                                      • Parameters

                                        • side: number
                                        • type: string

                                        Returns boolean

                                      canReceiveEnergy

                                      • canReceiveEnergy(side: number, type: string): boolean
                                      • Parameters

                                        • side: number
                                        • type: string

                                        Returns boolean

                                      canRotate

                                      • canRotate(): boolean
                                      • Returns boolean

                                      chargeSlot

                                      • chargeSlot(slotName: string): void
                                      • Parameters

                                        • slotName: string

                                        Returns void

                                      clientLoad

                                      • clientLoad(): void
                                      • Called when the client copy is created


                                        Returns void

                                      clientTick

                                      • clientTick(): void
                                      • Called every tick on client thread


                                        Returns void

                                      clientUnload

                                      • clientUnload(): void
                                      • Called on destroying the client copy


                                        Returns void

                                      created

                                      • created(): void
                                      • Returns void

                                      decreaseSlot

                                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                      • Parameters

                                        • slot: ItemContainerSlot
                                        • count: number

                                        Returns void

                                      destroy

                                      • destroy(): boolean
                                      • Returns boolean

                                      destroyBlock

                                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                      • Parameters

                                        • coords: ItemUseCoordinates
                                        • player: number

                                        Returns void

                                      dischargeSlot

                                      • dischargeSlot(slotName: string): void
                                      • Parameters

                                        • slotName: string

                                        Returns void

                                      energyReceive

                                      • energyReceive(type: string, amount: number, voltage: number): number
                                      • Parameters

                                        • type: string
                                        • amount: number
                                        • voltage: number

                                        Returns number

                                      energyTick

                                      • Parameters

                                        Returns void

                                      getDefaultDrop

                                      • getDefaultDrop(): number
                                      • Returns number

                                      getEnergyStorage

                                      • getEnergyStorage(): number
                                      • Returns number

                                      getExplosionPower

                                      • getExplosionPower(): number
                                      • Returns number

                                      getFacing

                                      • getFacing(): number
                                      • Returns number

                                      getInterruptSound

                                      • getInterruptSound(): string
                                      • Returns string

                                      getMaxPacketSize

                                      • getMaxPacketSize(): number
                                      • Returns number

                                      getOperationSound

                                      • getOperationSound(): string
                                      • Returns string

                                      getRelativeEnergy

                                      • getRelativeEnergy(): number
                                      • Returns number

                                      getScreenByName

                                      • getScreenByName(): IWindow
                                      • Returns IWindow

                                      getScreenName

                                      • getScreenName(player: number, coords: ItemUseCoordinates): string
                                      • Parameters

                                        • player: number
                                        • coords: ItemUseCoordinates

                                        Returns string

                                      getStartingSound

                                      • getStartingSound(): string
                                      • Returns string

                                      getTier

                                      • getTier(): number
                                      • Returns number

                                      init

                                      • init(): void
                                      • @deprecated

                                        Returns void

                                      isConductor

                                      • isConductor(type: string): boolean
                                      • Parameters

                                        • type: string

                                        Returns boolean

                                      load

                                      • load(): void
                                      • @deprecated

                                        Returns void

                                      onCheckerTick

                                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                      • Parameters

                                        • isInitialized: boolean
                                        • isLoaded: boolean
                                        • wasLoaded: boolean

                                        Returns void

                                      onCreate

                                      • onCreate(): void
                                      • Called when a TileEntity is created


                                        Returns void

                                      onInit

                                      • onInit(): void
                                      • Called when a TileEntity is initialised in the world


                                        Returns void

                                      onItemClick

                                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                      • Parameters

                                        • id: number
                                        • count: number
                                        • data: number
                                        • coords: ItemUseCoordinates
                                        • player: number
                                        • extra: ItemExtraData

                                        Returns boolean

                                      onItemUse

                                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                      • 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

                                      • onLoad(): void
                                      • Called when a chunk with TileEntity is loaded


                                        Returns void

                                      onRedstoneUpdate

                                      • onRedstoneUpdate(signal: number): void
                                      • Occurs when redstone signal on TileEntity block was updated


                                        Parameters

                                        • signal: number

                                          signal power (0-15)

                                        Returns void

                                      onTick

                                      • onTick(): void
                                      • Called every tick and should be used for all the updates of the TileEntity


                                        Returns void

                                      onUnload

                                      • onUnload(): void
                                      • Called when a chunk with TileEntity is unloaded


                                        Returns void

                                      preventClick

                                      • preventClick(): void
                                      • Prevents all actions on click


                                        Returns void

                                      projectileHit

                                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                      • Parameters

                                        • coords: ItemUseCoordinates
                                        • target: ProjectileHitTarget

                                        Returns void

                                      rebuildGrid

                                      • rebuildGrid(): void
                                      • Returns void

                                      redstone

                                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                      • @deprecated

                                        Parameters

                                        • params: { onLoad: boolean; power: number; signal: number }
                                          • onLoad: boolean
                                          • power: number
                                          • signal: number

                                        Returns void

                                      renderModel

                                      • renderModel(): void
                                      • Returns void

                                      requireMoreLiquid

                                      • requireMoreLiquid(liquid: string, amount: number): void
                                      • Parameters

                                        • liquid: string
                                        • amount: number

                                        Returns void

                                      selfDestroy

                                      • selfDestroy(): void
                                      • Returns void

                                      setActive

                                      • setActive(isActive: boolean): void
                                      • Parameters

                                        • isActive: boolean

                                        Returns void

                                      setFacing

                                      • setFacing(side: number): boolean
                                      • Parameters

                                        • side: number

                                        Returns boolean

                                      setLiquidScale

                                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                      • Parameters

                                        • container: any
                                        • window: any
                                        • content: any
                                        • data: { amount: number; liquid: string; scale: string }
                                          • amount: number
                                          • liquid: string
                                          • scale: string

                                        Returns void

                                      setupContainer

                                      • setupContainer(): void
                                      • Returns void

                                      startPlaySound

                                      • startPlaySound(): void
                                      • Returns void

                                      stopPlaySound

                                      • stopPlaySound(): void
                                      • Returns void

                                      tick

                                      • tick(): void
                                      • @deprecated

                                        Returns void

                                      unload

                                      • unload(): void
                                      • @deprecated

                                        Returns void

                                      updateLiquidScale

                                      • updateLiquidScale(scale: string, liquid: string): void
                                      • Parameters

                                        • scale: string
                                        • liquid: string

                                        Returns void

                                      abstractElectricMachine

                                      ElectricMachine:

                                      constructor

                                      __clientMethods

                                      __clientMethods: {}

                                      Type declaration

                                      • [key string]: boolean

                                      __containerEvents

                                      __containerEvents: {}

                                      Type declaration

                                      __initialized

                                      __initialized: boolean

                                      __networkEvents

                                      __networkEvents: {}

                                      Type declaration

                                      audioSource

                                      audioSource: AudioSource

                                      readonlyblockID

                                      blockID: number

                                      blockSource

                                      blockSource: BlockSource

                                      click

                                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                      Type declaration

                                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                        • Parameters

                                          • id: number
                                          • count: number
                                          • data: number
                                          • coords: ItemUseCoordinates
                                          • player: number
                                          • extra: ItemExtraData

                                          Returns boolean | void

                                      client

                                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                      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
                                          • (): void
                                          • Returns void

                                      • tick: () => void
                                          • (): void
                                          • Returns void

                                      • unload: () => void
                                          • (): void
                                          • Returns void

                                      container

                                      container: ItemContainer

                                      containerEvents

                                      containerEvents: {}

                                      Type declaration

                                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                      data

                                      data: { energy: number }

                                      Type declaration

                                      • energy: number

                                      optionaldefaultDrop

                                      defaultDrop?: number

                                      defaultValues

                                      defaultValues: { energy: number }

                                      Type declaration

                                      • energy: number

                                      readonlydimension

                                      dimension: number

                                      energyNode

                                      energyNode: EnergyTileNode

                                      energyTypes

                                      energyTypes: object

                                      events

                                      events: {}

                                      Type declaration

                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                      finishingSound

                                      finishingSound: number

                                      getGuiScreen

                                      getGuiScreen: () => Nullable<IWindow>

                                      Type declaration

                                        • (): Nullable<IWindow>
                                        • Returns Nullable<IWindow>

                                      isLoaded

                                      isLoaded: boolean

                                      liquidStorage

                                      liquidStorage: Storage

                                      networkData

                                      networkData: SyncedNetworkData

                                      networkEntity

                                      networkEntity: NetworkEntity

                                      networkEntityType

                                      networkEntityType: NetworkEntityType

                                      networkEntityTypeName

                                      networkEntityTypeName: string

                                      noupdate

                                      noupdate: boolean

                                      optionalonConnectionPlayer

                                      onConnectionPlayer?: (client: NetworkClient) => void

                                      Type declaration

                                        • (client: NetworkClient): void
                                        • Parameters

                                          • client: NetworkClient

                                          Returns void

                                      optionalonDisconnectionPlayer

                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                      Type declaration

                                        • (client: NetworkClient): void
                                        • Parameters

                                          • client: NetworkClient

                                          Returns void

                                      region

                                      region: WorldRegion

                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                      remove

                                      remove: boolean

                                      sendPacket

                                      sendPacket: (name: string, data: object) => {}

                                      Type declaration

                                        • (name: string, data: object): {}
                                        • Parameters

                                          • name: string
                                          • data: object

                                          Returns {}

                                        sendResponse

                                        sendResponse: (packetName: string, someData: object) => {}

                                        Type declaration

                                          • (packetName: string, someData: object): {}
                                          • Parameters

                                            • packetName: string
                                            • someData: object

                                            Returns {}

                                          update

                                          update: () => void

                                          Type declaration

                                            • (): void
                                            • Returns void

                                          optionalupgrades

                                          upgrades?: string[]

                                          readonlyuseNetworkItemContainer

                                          useNetworkItemContainer: boolean

                                          x

                                          x: number

                                          y

                                          y: number

                                          z

                                          z: number

                                          addLiquidTank

                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                          • Parameters

                                            • name: string
                                            • limit: number
                                            • optionalliquids: string[]

                                            Returns LiquidTank

                                          adjustDrop

                                          • adjustDrop(item: ItemInstance): ItemInstance
                                          • Parameters

                                            • item: ItemInstance

                                            Returns ItemInstance

                                          canExtractEnergy

                                          • canExtractEnergy(side: number, type: string): boolean
                                          • Parameters

                                            • side: number
                                            • type: string

                                            Returns boolean

                                          canReceiveEnergy

                                          • canReceiveEnergy(side: number, type: string): boolean
                                          • Parameters

                                            • side: number
                                            • type: string

                                            Returns boolean

                                          canRotate

                                          • canRotate(side: number): boolean
                                          • Parameters

                                            • side: number

                                            Returns boolean

                                          chargeSlot

                                          • chargeSlot(slotName: string): void
                                          • Parameters

                                            • slotName: string

                                            Returns void

                                          clientLoad

                                          • clientLoad(): void
                                          • Called when the client copy is created


                                            Returns void

                                          clientTick

                                          • clientTick(): void
                                          • Called every tick on client thread


                                            Returns void

                                          clientUnload

                                          • clientUnload(): void
                                          • Called on destroying the client copy


                                            Returns void

                                          created

                                          • created(): void
                                          • Returns void

                                          decreaseSlot

                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                          • Parameters

                                            • slot: ItemContainerSlot
                                            • count: number

                                            Returns void

                                          destroy

                                          • destroy(): boolean
                                          • Returns boolean

                                          destroyBlock

                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                          • Parameters

                                            • coords: ItemUseCoordinates
                                            • player: number

                                            Returns void

                                          dischargeSlot

                                          • dischargeSlot(slotName: string): void
                                          • Parameters

                                            • slotName: string

                                            Returns void

                                          energyReceive

                                          • energyReceive(type: string, amount: number, voltage: number): number
                                          • Parameters

                                            • type: string
                                            • amount: number
                                            • voltage: number

                                            Returns number

                                          energyTick

                                          • Parameters

                                            Returns void

                                          getDefaultDrop

                                          • getDefaultDrop(): number
                                          • Returns number

                                          getEnergyStorage

                                          • getEnergyStorage(): number
                                          • Returns number

                                          getExplosionPower

                                          • getExplosionPower(): number
                                          • Returns number

                                          getFacing

                                          • getFacing(): number
                                          • Returns number

                                          getInterruptSound

                                          • getInterruptSound(): string
                                          • Returns string

                                          getMaxPacketSize

                                          • getMaxPacketSize(): number
                                          • Returns number

                                          getOperationSound

                                          • getOperationSound(): string
                                          • Returns string

                                          getRelativeEnergy

                                          • getRelativeEnergy(): number
                                          • Returns number

                                          getScreenByName

                                          • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                          • Parameters

                                            • screenName: string
                                            • container: ItemContainer

                                            Returns IWindow

                                          getScreenName

                                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                                          • Parameters

                                            • player: number
                                            • coords: ItemUseCoordinates

                                            Returns string

                                          getStartingSound

                                          • getStartingSound(): string
                                          • Returns string

                                          getTier

                                          • getTier(): number
                                          • Returns number

                                          init

                                          • init(): void
                                          • @deprecated

                                            Returns void

                                          isConductor

                                          • isConductor(type: string): boolean
                                          • Parameters

                                            • type: string

                                            Returns boolean

                                          load

                                          • load(): void
                                          • @deprecated

                                            Returns void

                                          onCheckerTick

                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                          • Parameters

                                            • isInitialized: boolean
                                            • isLoaded: boolean
                                            • wasLoaded: boolean

                                            Returns void

                                          onCreate

                                          • onCreate(): void
                                          • Called when a TileEntity is created


                                            Returns void

                                          onInit

                                          • onInit(): void
                                          • Called when a TileEntity is initialised in the world


                                            Returns void

                                          onItemClick

                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                          • Parameters

                                            • id: number
                                            • count: number
                                            • data: number
                                            • coords: ItemUseCoordinates
                                            • player: number
                                            • extra: ItemExtraData

                                            Returns boolean

                                          onItemUse

                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                          • 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

                                          • onLoad(): void
                                          • Called when a chunk with TileEntity is loaded


                                            Returns void

                                          onRedstoneUpdate

                                          • onRedstoneUpdate(signal: number): void
                                          • Occurs when redstone signal on TileEntity block was updated


                                            Parameters

                                            • signal: number

                                              signal power (0-15)

                                            Returns void

                                          onTick

                                          • onTick(): void
                                          • Called every tick and should be used for all the updates of the TileEntity


                                            Returns void

                                          onUnload

                                          • onUnload(): void
                                          • Called when a chunk with TileEntity is unloaded


                                            Returns void

                                          preventClick

                                          • preventClick(): void
                                          • Prevents all actions on click


                                            Returns void

                                          projectileHit

                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                          • Parameters

                                            • coords: ItemUseCoordinates
                                            • target: ProjectileHitTarget

                                            Returns void

                                          rebuildGrid

                                          • rebuildGrid(): void
                                          • Returns void

                                          redstone

                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                          • @deprecated

                                            Parameters

                                            • params: { onLoad: boolean; power: number; signal: number }
                                              • onLoad: boolean
                                              • power: number
                                              • signal: number

                                            Returns void

                                          renderModel

                                          • renderModel(): void
                                          • Returns void

                                          requireMoreLiquid

                                          • requireMoreLiquid(liquid: string, amount: number): void
                                          • Parameters

                                            • liquid: string
                                            • amount: number

                                            Returns void

                                          selfDestroy

                                          • selfDestroy(): void
                                          • Returns void

                                          setActive

                                          • setActive(isActive: boolean): void
                                          • Parameters

                                            • isActive: boolean

                                            Returns void

                                          setFacing

                                          • setFacing(side: number): boolean
                                          • Parameters

                                            • side: number

                                            Returns boolean

                                          setLiquidScale

                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                          • Parameters

                                            • container: any
                                            • window: any
                                            • content: any
                                            • data: { amount: number; liquid: string; scale: string }
                                              • amount: number
                                              • liquid: string
                                              • scale: string

                                            Returns void

                                          setupContainer

                                          • setupContainer(): void
                                          • Returns void

                                          startPlaySound

                                          • startPlaySound(): void
                                          • Returns void

                                          stopPlaySound

                                          • stopPlaySound(): void
                                          • Returns void

                                          tick

                                          • tick(): void
                                          • @deprecated

                                            Returns void

                                          unload

                                          • unload(): void
                                          • @deprecated

                                            Returns void

                                          updateLiquidScale

                                          • updateLiquidScale(scale: string, liquid: string): void
                                          • Parameters

                                            • scale: string
                                            • liquid: string

                                            Returns void

                                          Extractor

                                          Extractor:

                                          constructor

                                          • Returns Extractor

                                          __clientMethods

                                          __clientMethods: {}

                                          Type declaration

                                          • [key string]: boolean

                                          __containerEvents

                                          __containerEvents: {}

                                          Type declaration

                                          __initialized

                                          __initialized: boolean

                                          __networkEvents

                                          __networkEvents: {}

                                          Type declaration

                                          audioSource

                                          audioSource: AudioSource

                                          readonlyblockID

                                          blockID: number

                                          blockSource

                                          blockSource: BlockSource

                                          click

                                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                          Type declaration

                                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                            • Parameters

                                              • id: number
                                              • count: number
                                              • data: number
                                              • coords: ItemUseCoordinates
                                              • player: number
                                              • extra: ItemExtraData

                                              Returns boolean | void

                                          client

                                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                          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
                                              • (): void
                                              • Returns void

                                          • tick: () => void
                                              • (): void
                                              • Returns void

                                          • unload: () => void
                                              • (): void
                                              • Returns void

                                          container

                                          container: ItemContainer

                                          containerEvents

                                          containerEvents: {}

                                          Type declaration

                                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                          data

                                          data: { energy: number; progress: number }

                                          Type declaration

                                          • energy: number
                                          • progress: number

                                          defaultDrop

                                          defaultDrop: number

                                          defaultEnergyDemand

                                          defaultEnergyDemand: number

                                          defaultEnergyStorage

                                          defaultEnergyStorage: number

                                          defaultProcessTime

                                          defaultProcessTime: number

                                          defaultTier

                                          defaultTier: number

                                          defaultValues

                                          defaultValues: { energy: number; progress: number }

                                          Type declaration

                                          • energy: number
                                          • progress: number

                                          readonlydimension

                                          dimension: number

                                          optionalenergyDemand

                                          energyDemand?: number

                                          energyNode

                                          energyNode: EnergyTileNode

                                          energyStorage

                                          energyStorage: number

                                          energyTypes

                                          energyTypes: object

                                          events

                                          events: {}

                                          Type declaration

                                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                          finishingSound

                                          finishingSound: number

                                          getGuiScreen

                                          getGuiScreen: () => Nullable<IWindow>

                                          Type declaration

                                            • (): Nullable<IWindow>
                                            • Returns Nullable<IWindow>

                                          isLoaded

                                          isLoaded: boolean

                                          liquidStorage

                                          liquidStorage: Storage

                                          networkData

                                          networkData: SyncedNetworkData

                                          networkEntity

                                          networkEntity: NetworkEntity

                                          networkEntityType

                                          networkEntityType: NetworkEntityType

                                          networkEntityTypeName

                                          networkEntityTypeName: string

                                          noupdate

                                          noupdate: boolean

                                          optionalonConnectionPlayer

                                          onConnectionPlayer?: (client: NetworkClient) => void

                                          Type declaration

                                            • (client: NetworkClient): void
                                            • Parameters

                                              • client: NetworkClient

                                              Returns void

                                          optionalonDisconnectionPlayer

                                          onDisconnectionPlayer?: (client: NetworkClient) => void

                                          Type declaration

                                            • (client: NetworkClient): void
                                            • Parameters

                                              • client: NetworkClient

                                              Returns void

                                          optionalprocessTime

                                          processTime?: number

                                          region

                                          region: WorldRegion

                                          Interface for BlockSource of the TileEntity. Provides more functionality.

                                          remove

                                          remove: boolean

                                          sendPacket

                                          sendPacket: (name: string, data: object) => {}

                                          Type declaration

                                            • (name: string, data: object): {}
                                            • Parameters

                                              • name: string
                                              • data: object

                                              Returns {}

                                            sendResponse

                                            sendResponse: (packetName: string, someData: object) => {}

                                            Type declaration

                                              • (packetName: string, someData: object): {}
                                              • Parameters

                                                • packetName: string
                                                • someData: object

                                                Returns {}

                                              tier

                                              tier: number

                                              update

                                              update: () => void

                                              Type declaration

                                                • (): void
                                                • Returns void

                                              upgrades

                                              upgrades: string[]

                                              readonlyuseNetworkItemContainer

                                              useNetworkItemContainer: boolean

                                              x

                                              x: number

                                              y

                                              y: number

                                              z

                                              z: number

                                              addLiquidTank

                                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                              • Parameters

                                                • name: string
                                                • limit: number
                                                • optionalliquids: string[]

                                                Returns LiquidTank

                                              adjustDrop

                                              • adjustDrop(item: ItemInstance): ItemInstance
                                              • Parameters

                                                • item: ItemInstance

                                                Returns ItemInstance

                                              canExtractEnergy

                                              • canExtractEnergy(side: number, type: string): boolean
                                              • Parameters

                                                • side: number
                                                • type: string

                                                Returns boolean

                                              canReceiveEnergy

                                              • canReceiveEnergy(side: number, type: string): boolean
                                              • Parameters

                                                • side: number
                                                • type: string

                                                Returns boolean

                                              canRotate

                                              • canRotate(side: number): boolean
                                              • Parameters

                                                • side: number

                                                Returns boolean

                                              chargeSlot

                                              • chargeSlot(slotName: string): void
                                              • Parameters

                                                • slotName: string

                                                Returns void

                                              clientLoad

                                              • clientLoad(): void
                                              • Called when the client copy is created


                                                Returns void

                                              clientTick

                                              • clientTick(): void
                                              • Called every tick on client thread


                                                Returns void

                                              clientUnload

                                              • clientUnload(): void
                                              • Called on destroying the client copy


                                                Returns void

                                              created

                                              • created(): void
                                              • Returns void

                                              decreaseSlot

                                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                              • Parameters

                                                • slot: ItemContainerSlot
                                                • count: number

                                                Returns void

                                              destroy

                                              • destroy(): boolean
                                              • Returns boolean

                                              destroyBlock

                                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                              • Parameters

                                                • coords: ItemUseCoordinates
                                                • player: number

                                                Returns void

                                              dischargeSlot

                                              • dischargeSlot(slotName: string): void
                                              • Parameters

                                                • slotName: string

                                                Returns void

                                              energyReceive

                                              • energyReceive(type: string, amount: number, voltage: number): number
                                              • Parameters

                                                • type: string
                                                • amount: number
                                                • voltage: number

                                                Returns number

                                              energyTick

                                              • Parameters

                                                Returns void

                                              getDefaultDrop

                                              • getDefaultDrop(): number
                                              • Returns number

                                              getEnergyStorage

                                              • getEnergyStorage(): number
                                              • Returns number

                                              getExplosionPower

                                              • getExplosionPower(): number
                                              • Returns number

                                              getFacing

                                              • getFacing(): number
                                              • Returns number

                                              getInterruptSound

                                              • getInterruptSound(): string
                                              • Returns string

                                              getMaxPacketSize

                                              • getMaxPacketSize(): number
                                              • Returns number

                                              getOperationSound

                                              • getOperationSound(): string
                                              • Returns string

                                              getRecipeResult

                                              • Parameters

                                                • id: number

                                                Returns RecipeData

                                              getRelativeEnergy

                                              • getRelativeEnergy(): number
                                              • Returns number

                                              getScreenByName

                                              • getScreenByName(): IWindow
                                              • Returns IWindow

                                              getScreenName

                                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                                              • Parameters

                                                • player: number
                                                • coords: ItemUseCoordinates

                                                Returns string

                                              getStartingSound

                                              • getStartingSound(): string
                                              • Returns string

                                              getTier

                                              • getTier(): number
                                              • Returns number

                                              init

                                              • init(): void
                                              • @deprecated

                                                Returns void

                                              isConductor

                                              • isConductor(type: string): boolean
                                              • Parameters

                                                • type: string

                                                Returns boolean

                                              load

                                              • load(): void
                                              • @deprecated

                                                Returns void

                                              onCheckerTick

                                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                              • Parameters

                                                • isInitialized: boolean
                                                • isLoaded: boolean
                                                • wasLoaded: boolean

                                                Returns void

                                              onCreate

                                              • onCreate(): void
                                              • Called when a TileEntity is created


                                                Returns void

                                              onInit

                                              • onInit(): void
                                              • Called when a TileEntity is initialised in the world


                                                Returns void

                                              onItemClick

                                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                              • Parameters

                                                • id: number
                                                • count: number
                                                • data: number
                                                • coords: ItemUseCoordinates
                                                • player: number
                                                • extra: ItemExtraData

                                                Returns boolean

                                              onItemUse

                                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                              • 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

                                              • onLoad(): void
                                              • Called when a chunk with TileEntity is loaded


                                                Returns void

                                              onRedstoneUpdate

                                              • onRedstoneUpdate(signal: number): void
                                              • Occurs when redstone signal on TileEntity block was updated


                                                Parameters

                                                • signal: number

                                                  signal power (0-15)

                                                Returns void

                                              onTick

                                              • onTick(): void
                                              • Called every tick and should be used for all the updates of the TileEntity


                                                Returns void

                                              onUnload

                                              • onUnload(): void
                                              • Called when a chunk with TileEntity is unloaded


                                                Returns void

                                              preventClick

                                              • preventClick(): void
                                              • Prevents all actions on click


                                                Returns void

                                              projectileHit

                                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                              • Parameters

                                                • coords: ItemUseCoordinates
                                                • target: ProjectileHitTarget

                                                Returns void

                                              rebuildGrid

                                              • rebuildGrid(): void
                                              • Returns void

                                              redstone

                                              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                              • @deprecated

                                                Parameters

                                                • params: { onLoad: boolean; power: number; signal: number }
                                                  • onLoad: boolean
                                                  • power: number
                                                  • signal: number

                                                Returns void

                                              renderModel

                                              • renderModel(): void
                                              • Returns void

                                              requireMoreLiquid

                                              • requireMoreLiquid(liquid: string, amount: number): void
                                              • Parameters

                                                • liquid: string
                                                • amount: number

                                                Returns void

                                              selfDestroy

                                              • selfDestroy(): void
                                              • Returns void

                                              setActive

                                              • setActive(isActive: boolean): void
                                              • Parameters

                                                • isActive: boolean

                                                Returns void

                                              setFacing

                                              • setFacing(side: number): boolean
                                              • Parameters

                                                • side: number

                                                Returns boolean

                                              setLiquidScale

                                              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                              • Parameters

                                                • container: any
                                                • window: any
                                                • content: any
                                                • data: { amount: number; liquid: string; scale: string }
                                                  • amount: number
                                                  • liquid: string
                                                  • scale: string

                                                Returns void

                                              setupContainer

                                              • setupContainer(): void
                                              • Returns void

                                              startPlaySound

                                              • startPlaySound(): void
                                              • Returns void

                                              stopPlaySound

                                              • stopPlaySound(): void
                                              • Returns void

                                              tick

                                              • tick(): void
                                              • @deprecated

                                                Returns void

                                              unload

                                              • unload(): void
                                              • @deprecated

                                                Returns void

                                              updateLiquidScale

                                              • updateLiquidScale(scale: string, liquid: string): void
                                              • Parameters

                                                • scale: string
                                                • liquid: string

                                                Returns void

                                              useUpgrades

                                              • Returns UpgradeSet

                                              Fermenter

                                              Fermenter:

                                              constructor

                                              • Returns Fermenter

                                              __clientMethods

                                              __clientMethods: {}

                                              Type declaration

                                              • [key string]: boolean

                                              __containerEvents

                                              __containerEvents: {}

                                              Type declaration

                                              __initialized

                                              __initialized: boolean

                                              __networkEvents

                                              __networkEvents: {}

                                              Type declaration

                                              audioSource

                                              audioSource: AudioSource

                                              readonlyblockID

                                              blockID: number

                                              blockSource

                                              blockSource: BlockSource

                                              click

                                              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                              Type declaration

                                                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                • Parameters

                                                  • id: number
                                                  • count: number
                                                  • data: number
                                                  • coords: ItemUseCoordinates
                                                  • player: number
                                                  • extra: ItemExtraData

                                                  Returns boolean | void

                                              client

                                              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                              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
                                                  • (): void
                                                  • Returns void

                                              • tick: () => void
                                                  • (): void
                                                  • Returns void

                                              • unload: () => void
                                                  • (): void
                                                  • Returns void

                                              container

                                              container: ItemContainer

                                              containerEvents

                                              containerEvents: {}

                                              Type declaration

                                              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                              data

                                              data: {}

                                              Type declaration

                                              • [key string]: any

                                              optionaldefaultDrop

                                              defaultDrop?: number

                                              defaultValues

                                              defaultValues: { fertilizer: number; heat: number; progress: number }

                                              Type declaration

                                              • fertilizer: number
                                              • heat: number
                                              • progress: number

                                              readonlydimension

                                              dimension: number

                                              events

                                              events: {}

                                              Type declaration

                                              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                              finishingSound

                                              finishingSound: number

                                              getGuiScreen

                                              getGuiScreen: () => Nullable<IWindow>

                                              Type declaration

                                                • (): Nullable<IWindow>
                                                • Returns Nullable<IWindow>

                                              inputTank

                                              inputTank: LiquidTank

                                              isLoaded

                                              isLoaded: boolean

                                              liquidStorage

                                              liquidStorage: Storage

                                              networkData

                                              networkData: SyncedNetworkData

                                              networkEntity

                                              networkEntity: NetworkEntity

                                              networkEntityType

                                              networkEntityType: NetworkEntityType

                                              networkEntityTypeName

                                              networkEntityTypeName: string

                                              noupdate

                                              noupdate: boolean

                                              optionalonConnectionPlayer

                                              onConnectionPlayer?: (client: NetworkClient) => void

                                              Type declaration

                                                • (client: NetworkClient): void
                                                • Parameters

                                                  • client: NetworkClient

                                                  Returns void

                                              optionalonDisconnectionPlayer

                                              onDisconnectionPlayer?: (client: NetworkClient) => void

                                              Type declaration

                                                • (client: NetworkClient): void
                                                • Parameters

                                                  • client: NetworkClient

                                                  Returns void

                                              outputTank

                                              outputTank: LiquidTank

                                              region

                                              region: WorldRegion

                                              Interface for BlockSource of the TileEntity. Provides more functionality.

                                              remove

                                              remove: boolean

                                              sendPacket

                                              sendPacket: (name: string, data: object) => {}

                                              Type declaration

                                                • (name: string, data: object): {}
                                                • Parameters

                                                  • name: string
                                                  • data: object

                                                  Returns {}

                                                sendResponse

                                                sendResponse: (packetName: string, someData: object) => {}

                                                Type declaration

                                                  • (packetName: string, someData: object): {}
                                                  • Parameters

                                                    • packetName: string
                                                    • someData: object

                                                    Returns {}

                                                  update

                                                  update: () => void

                                                  Type declaration

                                                    • (): void
                                                    • Returns void

                                                  upgrades

                                                  upgrades: string[]

                                                  readonlyuseNetworkItemContainer

                                                  useNetworkItemContainer: boolean

                                                  x

                                                  x: number

                                                  y

                                                  y: number

                                                  z

                                                  z: number

                                                  addLiquidTank

                                                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                  • Parameters

                                                    • name: string
                                                    • limit: number
                                                    • optionalliquids: string[]

                                                    Returns LiquidTank

                                                  adjustDrop

                                                  • adjustDrop(item: ItemInstance): ItemInstance
                                                  • Parameters

                                                    • item: ItemInstance

                                                    Returns ItemInstance

                                                  canReceiveHeat

                                                  • canReceiveHeat(side: number): boolean
                                                  • Parameters

                                                    • side: number

                                                    Returns boolean

                                                  canRotate

                                                  • canRotate(): boolean
                                                  • Returns boolean

                                                  clientLoad

                                                  • clientLoad(): void
                                                  • Called when the client copy is created


                                                    Returns void

                                                  clientTick

                                                  • clientTick(): void
                                                  • Called every tick on client thread


                                                    Returns void

                                                  clientUnload

                                                  • clientUnload(): void
                                                  • Called on destroying the client copy


                                                    Returns void

                                                  created

                                                  • created(): void
                                                  • Returns void

                                                  decreaseSlot

                                                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                  • Parameters

                                                    • slot: ItemContainerSlot
                                                    • count: number

                                                    Returns void

                                                  destroy

                                                  • destroy(): boolean
                                                  • Returns boolean

                                                  destroyBlock

                                                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                  • Parameters

                                                    • coords: ItemUseCoordinates
                                                    • player: number

                                                    Returns void

                                                  getDefaultDrop

                                                  • getDefaultDrop(): number
                                                  • Returns number

                                                  getFacing

                                                  • getFacing(): number
                                                  • Returns number

                                                  getInterruptSound

                                                  • getInterruptSound(): string
                                                  • Returns string

                                                  getOperationSound

                                                  • getOperationSound(): string
                                                  • Returns string

                                                  getScreenByName

                                                  • getScreenByName(): IWindow
                                                  • Returns IWindow

                                                  getScreenName

                                                  • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                  • Parameters

                                                    • player: number
                                                    • coords: ItemUseCoordinates

                                                    Returns string

                                                  getStartingSound

                                                  • getStartingSound(): string
                                                  • Returns string

                                                  init

                                                  • init(): void
                                                  • @deprecated

                                                    Returns void

                                                  load

                                                  • load(): void
                                                  • @deprecated

                                                    Returns void

                                                  onCheckerTick

                                                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                  • Parameters

                                                    • isInitialized: boolean
                                                    • isLoaded: boolean
                                                    • wasLoaded: boolean

                                                    Returns void

                                                  onCreate

                                                  • onCreate(): void
                                                  • Called when a TileEntity is created


                                                    Returns void

                                                  onInit

                                                  • onInit(): void
                                                  • Called when a TileEntity is initialised in the world


                                                    Returns void

                                                  onItemClick

                                                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                  • Parameters

                                                    • id: number
                                                    • count: number
                                                    • data: number
                                                    • coords: ItemUseCoordinates
                                                    • player: number
                                                    • extra: ItemExtraData

                                                    Returns boolean

                                                  onItemUse

                                                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                  • 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

                                                  • onLoad(): void
                                                  • Called when a chunk with TileEntity is loaded


                                                    Returns void

                                                  onRedstoneUpdate

                                                  • onRedstoneUpdate(signal: number): void
                                                  • Occurs when redstone signal on TileEntity block was updated


                                                    Parameters

                                                    • signal: number

                                                      signal power (0-15)

                                                    Returns void

                                                  onTick

                                                  • onTick(): void
                                                  • Called every tick and should be used for all the updates of the TileEntity


                                                    Returns void

                                                  onUnload

                                                  • onUnload(): void
                                                  • Called when a chunk with TileEntity is unloaded


                                                    Returns void

                                                  preventClick

                                                  • preventClick(): void
                                                  • Prevents all actions on click


                                                    Returns void

                                                  projectileHit

                                                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                  • Parameters

                                                    • coords: ItemUseCoordinates
                                                    • target: ProjectileHitTarget

                                                    Returns void

                                                  receiveHeat

                                                  • receiveHeat(amount: number): number
                                                  • Parameters

                                                    • amount: number

                                                    Returns number

                                                  redstone

                                                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                  • @deprecated

                                                    Parameters

                                                    • params: { onLoad: boolean; power: number; signal: number }
                                                      • onLoad: boolean
                                                      • power: number
                                                      • signal: number

                                                    Returns void

                                                  renderModel

                                                  • renderModel(): void
                                                  • Returns void

                                                  requireMoreLiquid

                                                  • requireMoreLiquid(liquid: string, amount: number): void
                                                  • Parameters

                                                    • liquid: string
                                                    • amount: number

                                                    Returns void

                                                  selfDestroy

                                                  • selfDestroy(): void
                                                  • Returns void

                                                  setActive

                                                  • setActive(isActive: boolean): void
                                                  • Parameters

                                                    • isActive: boolean

                                                    Returns void

                                                  setFacing

                                                  • setFacing(side: number): boolean
                                                  • Parameters

                                                    • side: number

                                                    Returns boolean

                                                  setLiquidScale

                                                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                  • Parameters

                                                    • container: any
                                                    • window: any
                                                    • content: any
                                                    • data: { amount: number; liquid: string; scale: string }
                                                      • amount: number
                                                      • liquid: string
                                                      • scale: string

                                                    Returns void

                                                  setupContainer

                                                  • setupContainer(): void
                                                  • Returns void

                                                  startPlaySound

                                                  • startPlaySound(): void
                                                  • Returns void

                                                  stopPlaySound

                                                  • stopPlaySound(): void
                                                  • Returns void

                                                  tick

                                                  • tick(): void
                                                  • @deprecated

                                                    Returns void

                                                  unload

                                                  • unload(): void
                                                  • @deprecated

                                                    Returns void

                                                  updateLiquidScale

                                                  • updateLiquidScale(scale: string, liquid: string): void
                                                  • Parameters

                                                    • scale: string
                                                    • liquid: string

                                                    Returns void

                                                  FluidDistributor

                                                  FluidDistributor:

                                                  constructor

                                                  __clientMethods

                                                  __clientMethods: {}

                                                  Type declaration

                                                  • [key string]: boolean

                                                  __containerEvents

                                                  __containerEvents: {}

                                                  Type declaration

                                                  __initialized

                                                  __initialized: boolean

                                                  __networkEvents

                                                  __networkEvents: {}

                                                  Type declaration

                                                  audioSource

                                                  audioSource: AudioSource

                                                  readonlyblockID

                                                  blockID: number

                                                  blockSource

                                                  blockSource: BlockSource

                                                  click

                                                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                  Type declaration

                                                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                    • Parameters

                                                      • id: number
                                                      • count: number
                                                      • data: number
                                                      • coords: ItemUseCoordinates
                                                      • player: number
                                                      • extra: ItemExtraData

                                                      Returns boolean | void

                                                  client

                                                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                  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
                                                      • (): void
                                                      • Returns void

                                                  • tick: () => void
                                                      • (): void
                                                      • Returns void

                                                  • unload: () => void
                                                      • (): void
                                                      • Returns void

                                                  container

                                                  container: ItemContainer

                                                  containerEvents

                                                  containerEvents: {}

                                                  Type declaration

                                                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                  data

                                                  data: {}

                                                  Type declaration

                                                  • [key string]: any

                                                  defaultDrop

                                                  defaultDrop: number

                                                  defaultValues

                                                  defaultValues: { inverted: boolean }

                                                  Type declaration

                                                  • inverted: boolean

                                                  readonlydimension

                                                  dimension: number

                                                  events

                                                  events: {}

                                                  Type declaration

                                                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                  finishingSound

                                                  finishingSound: number

                                                  getGuiScreen

                                                  getGuiScreen: () => Nullable<IWindow>

                                                  Type declaration

                                                    • (): Nullable<IWindow>
                                                    • Returns Nullable<IWindow>

                                                  isLoaded

                                                  isLoaded: boolean

                                                  liquidStorage

                                                  liquidStorage: Storage

                                                  liquidTank

                                                  liquidTank: LiquidTank

                                                  networkData

                                                  networkData: SyncedNetworkData

                                                  networkEntity

                                                  networkEntity: NetworkEntity

                                                  networkEntityType

                                                  networkEntityType: NetworkEntityType

                                                  networkEntityTypeName

                                                  networkEntityTypeName: string

                                                  noupdate

                                                  noupdate: boolean

                                                  optionalonConnectionPlayer

                                                  onConnectionPlayer?: (client: NetworkClient) => void

                                                  Type declaration

                                                    • (client: NetworkClient): void
                                                    • Parameters

                                                      • client: NetworkClient

                                                      Returns void

                                                  optionalonDisconnectionPlayer

                                                  onDisconnectionPlayer?: (client: NetworkClient) => void

                                                  Type declaration

                                                    • (client: NetworkClient): void
                                                    • Parameters

                                                      • client: NetworkClient

                                                      Returns void

                                                  region

                                                  region: WorldRegion

                                                  Interface for BlockSource of the TileEntity. Provides more functionality.

                                                  remove

                                                  remove: boolean

                                                  sendPacket

                                                  sendPacket: (name: string, data: object) => {}

                                                  Type declaration

                                                    • (name: string, data: object): {}
                                                    • Parameters

                                                      • name: string
                                                      • data: object

                                                      Returns {}

                                                    sendResponse

                                                    sendResponse: (packetName: string, someData: object) => {}

                                                    Type declaration

                                                      • (packetName: string, someData: object): {}
                                                      • Parameters

                                                        • packetName: string
                                                        • someData: object

                                                        Returns {}

                                                      update

                                                      update: () => void

                                                      Type declaration

                                                        • (): void
                                                        • Returns void

                                                      optionalupgrades

                                                      upgrades?: string[]

                                                      readonlyuseNetworkItemContainer

                                                      useNetworkItemContainer: boolean

                                                      x

                                                      x: number

                                                      y

                                                      y: number

                                                      z

                                                      z: number

                                                      addLiquidTank

                                                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                      • Parameters

                                                        • name: string
                                                        • limit: number
                                                        • optionalliquids: string[]

                                                        Returns LiquidTank

                                                      adjustDrop

                                                      • adjustDrop(item: ItemInstance): ItemInstance
                                                      • Parameters

                                                        • item: ItemInstance

                                                        Returns ItemInstance

                                                      canRotate

                                                      • canRotate(): boolean
                                                      • Returns boolean

                                                      clientLoad

                                                      • clientLoad(): void
                                                      • Called when the client copy is created


                                                        Returns void

                                                      clientTick

                                                      • clientTick(): void
                                                      • Called every tick on client thread


                                                        Returns void

                                                      clientUnload

                                                      • clientUnload(): void
                                                      • Called on destroying the client copy


                                                        Returns void

                                                      created

                                                      • created(): void
                                                      • Returns void

                                                      decreaseSlot

                                                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                      • Parameters

                                                        • slot: ItemContainerSlot
                                                        • count: number

                                                        Returns void

                                                      destroy

                                                      • destroy(): boolean
                                                      • Returns boolean

                                                      destroyBlock

                                                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                      • Parameters

                                                        • coords: ItemUseCoordinates
                                                        • player: number

                                                        Returns void

                                                      getDefaultDrop

                                                      • getDefaultDrop(): number
                                                      • Returns number

                                                      getFacing

                                                      • getFacing(): number
                                                      • Returns number

                                                      getInterruptSound

                                                      • getInterruptSound(): string
                                                      • Returns string

                                                      getOperationSound

                                                      • getOperationSound(): string
                                                      • Returns string

                                                      getScreenByName

                                                      • getScreenByName(): IWindow
                                                      • Returns IWindow

                                                      getScreenName

                                                      • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                      • Parameters

                                                        • player: number
                                                        • coords: ItemUseCoordinates

                                                        Returns string

                                                      getStartingSound

                                                      • getStartingSound(): string
                                                      • Returns string

                                                      init

                                                      • init(): void
                                                      • @deprecated

                                                        Returns void

                                                      invertMode

                                                      • invertMode(): void
                                                      • Returns void

                                                      load

                                                      • load(): void
                                                      • @deprecated

                                                        Returns void

                                                      onCheckerTick

                                                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                      • Parameters

                                                        • isInitialized: boolean
                                                        • isLoaded: boolean
                                                        • wasLoaded: boolean

                                                        Returns void

                                                      onCreate

                                                      • onCreate(): void
                                                      • Called when a TileEntity is created


                                                        Returns void

                                                      onInit

                                                      • onInit(): void
                                                      • Called when a TileEntity is initialised in the world


                                                        Returns void

                                                      onItemClick

                                                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                      • Parameters

                                                        • id: number
                                                        • count: number
                                                        • data: number
                                                        • coords: ItemUseCoordinates
                                                        • player: number
                                                        • extra: ItemExtraData

                                                        Returns boolean

                                                      onItemUse

                                                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                      • 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

                                                      • onLoad(): void
                                                      • Called when a chunk with TileEntity is loaded


                                                        Returns void

                                                      onRedstoneUpdate

                                                      • onRedstoneUpdate(signal: number): void
                                                      • Occurs when redstone signal on TileEntity block was updated


                                                        Parameters

                                                        • signal: number

                                                          signal power (0-15)

                                                        Returns void

                                                      onTick

                                                      • onTick(): void
                                                      • Called every tick and should be used for all the updates of the TileEntity


                                                        Returns void

                                                      onUnload

                                                      • onUnload(): void
                                                      • Called when a chunk with TileEntity is unloaded


                                                        Returns void

                                                      preventClick

                                                      • preventClick(): void
                                                      • Prevents all actions on click


                                                        Returns void

                                                      projectileHit

                                                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                      • Parameters

                                                        • coords: ItemUseCoordinates
                                                        • target: ProjectileHitTarget

                                                        Returns void

                                                      redstone

                                                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                      • @deprecated

                                                        Parameters

                                                        • params: { onLoad: boolean; power: number; signal: number }
                                                          • onLoad: boolean
                                                          • power: number
                                                          • signal: number

                                                        Returns void

                                                      renderModel

                                                      • renderModel(): void
                                                      • Returns void

                                                      requireMoreLiquid

                                                      • requireMoreLiquid(liquid: string, amount: number): void
                                                      • Parameters

                                                        • liquid: string
                                                        • amount: number

                                                        Returns void

                                                      selfDestroy

                                                      • selfDestroy(): void
                                                      • Returns void

                                                      setActive

                                                      • setActive(isActive: boolean): void
                                                      • Parameters

                                                        • isActive: boolean

                                                        Returns void

                                                      setFacing

                                                      • setFacing(side: number): boolean
                                                      • Parameters

                                                        • side: number

                                                        Returns boolean

                                                      setLiquidScale

                                                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                      • Parameters

                                                        • container: any
                                                        • window: any
                                                        • content: any
                                                        • data: { amount: number; liquid: string; scale: string }
                                                          • amount: number
                                                          • liquid: string
                                                          • scale: string

                                                        Returns void

                                                      setupContainer

                                                      • setupContainer(): void
                                                      • Returns void

                                                      startPlaySound

                                                      • startPlaySound(): void
                                                      • Returns void

                                                      stopPlaySound

                                                      • stopPlaySound(): void
                                                      • Returns void

                                                      tick

                                                      • tick(): void
                                                      • @deprecated

                                                        Returns void

                                                      transportLiquid

                                                      • transportLiquid(): void
                                                      • Returns void

                                                      unload

                                                      • unload(): void
                                                      • @deprecated

                                                        Returns void

                                                      updateLiquidScale

                                                      • updateLiquidScale(scale: string, liquid: string): void
                                                      • Parameters

                                                        • scale: string
                                                        • liquid: string

                                                        Returns void

                                                      FluidGenerator

                                                      FluidGenerator:

                                                      constructor

                                                      __clientMethods

                                                      __clientMethods: {}

                                                      Type declaration

                                                      • [key string]: boolean

                                                      __containerEvents

                                                      __containerEvents: {}

                                                      Type declaration

                                                      __initialized

                                                      __initialized: boolean

                                                      __networkEvents

                                                      __networkEvents: {}

                                                      Type declaration

                                                      audioSource

                                                      audioSource: AudioSource

                                                      readonlyblockID

                                                      blockID: number

                                                      blockSource

                                                      blockSource: BlockSource

                                                      click

                                                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                      Type declaration

                                                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                        • Parameters

                                                          • id: number
                                                          • count: number
                                                          • data: number
                                                          • coords: ItemUseCoordinates
                                                          • player: number
                                                          • extra: ItemExtraData

                                                          Returns boolean | void

                                                      client

                                                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                      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
                                                          • (): void
                                                          • Returns void

                                                      • tick: () => void
                                                          • (): void
                                                          • Returns void

                                                      • unload: () => void
                                                          • (): void
                                                          • Returns void

                                                      container

                                                      container: ItemContainer

                                                      containerEvents

                                                      containerEvents: {}

                                                      Type declaration

                                                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                      data

                                                      data: { energy: number; fuel: number; liquid: any }

                                                      Type declaration

                                                      • energy: number
                                                      • fuel: number
                                                      • liquid: any

                                                      defaultDrop

                                                      defaultDrop: number

                                                      defaultValues

                                                      defaultValues: { energy: number; fuel: number; liquid: any }

                                                      Type declaration

                                                      • energy: number
                                                      • fuel: number
                                                      • liquid: any

                                                      readonlydimension

                                                      dimension: number

                                                      energyNode

                                                      energyNode: EnergyTileNode

                                                      energyTypes

                                                      energyTypes: object

                                                      events

                                                      events: {}

                                                      Type declaration

                                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                      finishingSound

                                                      finishingSound: number

                                                      getGuiScreen

                                                      getGuiScreen: () => Nullable<IWindow>

                                                      Type declaration

                                                        • (): Nullable<IWindow>
                                                        • Returns Nullable<IWindow>

                                                      isLoaded

                                                      isLoaded: boolean

                                                      liquidStorage

                                                      liquidStorage: Storage

                                                      liquidTank

                                                      liquidTank: LiquidTank

                                                      networkData

                                                      networkData: SyncedNetworkData

                                                      networkEntity

                                                      networkEntity: NetworkEntity

                                                      networkEntityType

                                                      networkEntityType: NetworkEntityType

                                                      networkEntityTypeName

                                                      networkEntityTypeName: string

                                                      noupdate

                                                      noupdate: boolean

                                                      optionalonConnectionPlayer

                                                      onConnectionPlayer?: (client: NetworkClient) => void

                                                      Type declaration

                                                        • (client: NetworkClient): void
                                                        • Parameters

                                                          • client: NetworkClient

                                                          Returns void

                                                      optionalonDisconnectionPlayer

                                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                                      Type declaration

                                                        • (client: NetworkClient): void
                                                        • Parameters

                                                          • client: NetworkClient

                                                          Returns void

                                                      region

                                                      region: WorldRegion

                                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                                      remove

                                                      remove: boolean

                                                      sendPacket

                                                      sendPacket: (name: string, data: object) => {}

                                                      Type declaration

                                                        • (name: string, data: object): {}
                                                        • Parameters

                                                          • name: string
                                                          • data: object

                                                          Returns {}

                                                        sendResponse

                                                        sendResponse: (packetName: string, someData: object) => {}

                                                        Type declaration

                                                          • (packetName: string, someData: object): {}
                                                          • Parameters

                                                            • packetName: string
                                                            • someData: object

                                                            Returns {}

                                                          update

                                                          update: () => void

                                                          Type declaration

                                                            • (): void
                                                            • Returns void

                                                          optionalupgrades

                                                          upgrades?: string[]

                                                          readonlyuseNetworkItemContainer

                                                          useNetworkItemContainer: boolean

                                                          x

                                                          x: number

                                                          y

                                                          y: number

                                                          z

                                                          z: number

                                                          addLiquidTank

                                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                          • Parameters

                                                            • name: string
                                                            • limit: number
                                                            • optionalliquids: string[]

                                                            Returns LiquidTank

                                                          adjustDrop

                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                          • Parameters

                                                            • item: ItemInstance

                                                            Returns ItemInstance

                                                          canExtractEnergy

                                                          • canExtractEnergy(): boolean
                                                          • Returns boolean

                                                          canReceiveEnergy

                                                          • canReceiveEnergy(): boolean
                                                          • Returns boolean

                                                          canRotate

                                                          • canRotate(side: number): boolean
                                                          • Parameters

                                                            • side: number

                                                            Returns boolean

                                                          chargeSlot

                                                          • chargeSlot(slotName: string): void
                                                          • Parameters

                                                            • slotName: string

                                                            Returns void

                                                          clientLoad

                                                          • clientLoad(): void
                                                          • Called when the client copy is created


                                                            Returns void

                                                          clientTick

                                                          • clientTick(): void
                                                          • Called every tick on client thread


                                                            Returns void

                                                          clientUnload

                                                          • clientUnload(): void
                                                          • Called on destroying the client copy


                                                            Returns void

                                                          created

                                                          • created(): void
                                                          • Returns void

                                                          decreaseSlot

                                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                          • Parameters

                                                            • slot: ItemContainerSlot
                                                            • count: number

                                                            Returns void

                                                          destroy

                                                          • destroy(): boolean
                                                          • Returns boolean

                                                          destroyBlock

                                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                          • Parameters

                                                            • coords: ItemUseCoordinates
                                                            • player: number

                                                            Returns void

                                                          dischargeSlot

                                                          • dischargeSlot(slotName: string): void
                                                          • Parameters

                                                            • slotName: string

                                                            Returns void

                                                          energyReceive

                                                          • energyReceive(type: string, amount: number, voltage: number): number
                                                          • Parameters

                                                            • type: string
                                                            • amount: number
                                                            • voltage: number

                                                            Returns number

                                                          energyTick

                                                          • Parameters

                                                            Returns void

                                                          getDefaultDrop

                                                          • getDefaultDrop(): number
                                                          • Returns number

                                                          getEnergyStorage

                                                          • getEnergyStorage(): number
                                                          • Returns number

                                                          getExplosionPower

                                                          • getExplosionPower(): number
                                                          • Returns number

                                                          getFacing

                                                          • getFacing(): number
                                                          • Returns number

                                                          getFuel

                                                          • getFuel(liquid: string): { amount: number; power: number }
                                                          • Parameters

                                                            • liquid: string

                                                            Returns { amount: number; power: number }

                                                            • amount: number
                                                            • power: number

                                                          getInterruptSound

                                                          • getInterruptSound(): string
                                                          • Returns string

                                                          getMaxPacketSize

                                                          • getMaxPacketSize(): number
                                                          • Returns number

                                                          getOperationSound

                                                          • getOperationSound(): string
                                                          • Returns string

                                                          getRelativeEnergy

                                                          • getRelativeEnergy(): number
                                                          • Returns number

                                                          getScreenByName

                                                          • getScreenByName(): IWindow
                                                          • Returns IWindow

                                                          getScreenName

                                                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                          • Parameters

                                                            • player: number
                                                            • coords: ItemUseCoordinates

                                                            Returns string

                                                          getStartingSound

                                                          • getStartingSound(): string
                                                          • Returns string

                                                          getTier

                                                          • getTier(): number
                                                          • Returns number

                                                          init

                                                          • init(): void
                                                          • @deprecated

                                                            Returns void

                                                          isConductor

                                                          • isConductor(type: string): boolean
                                                          • Parameters

                                                            • type: string

                                                            Returns boolean

                                                          load

                                                          • load(): void
                                                          • @deprecated

                                                            Returns void

                                                          onCheckerTick

                                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                          • Parameters

                                                            • isInitialized: boolean
                                                            • isLoaded: boolean
                                                            • wasLoaded: boolean

                                                            Returns void

                                                          onCreate

                                                          • onCreate(): void
                                                          • Called when a TileEntity is created


                                                            Returns void

                                                          onInit

                                                          • onInit(): void
                                                          • Called when a TileEntity is initialised in the world


                                                            Returns void

                                                          onItemClick

                                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                          • Parameters

                                                            • id: number
                                                            • count: number
                                                            • data: number
                                                            • coords: ItemUseCoordinates
                                                            • player: number
                                                            • extra: ItemExtraData

                                                            Returns boolean

                                                          onItemUse

                                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                          • 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

                                                          • onLoad(): void
                                                          • Called when a chunk with TileEntity is loaded


                                                            Returns void

                                                          onRedstoneUpdate

                                                          • onRedstoneUpdate(signal: number): void
                                                          • Occurs when redstone signal on TileEntity block was updated


                                                            Parameters

                                                            • signal: number

                                                              signal power (0-15)

                                                            Returns void

                                                          onTick

                                                          • onTick(): void
                                                          • Called every tick and should be used for all the updates of the TileEntity


                                                            Returns void

                                                          onUnload

                                                          • onUnload(): void
                                                          • Called when a chunk with TileEntity is unloaded


                                                            Returns void

                                                          preventClick

                                                          • preventClick(): void
                                                          • Prevents all actions on click


                                                            Returns void

                                                          projectileHit

                                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                          • Parameters

                                                            • coords: ItemUseCoordinates
                                                            • target: ProjectileHitTarget

                                                            Returns void

                                                          rebuildGrid

                                                          • rebuildGrid(): void
                                                          • Returns void

                                                          redstone

                                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                          • @deprecated

                                                            Parameters

                                                            • params: { onLoad: boolean; power: number; signal: number }
                                                              • onLoad: boolean
                                                              • power: number
                                                              • signal: number

                                                            Returns void

                                                          renderModel

                                                          • renderModel(): void
                                                          • Returns void

                                                          requireMoreLiquid

                                                          • requireMoreLiquid(liquid: string, amount: number): void
                                                          • Parameters

                                                            • liquid: string
                                                            • amount: number

                                                            Returns void

                                                          selfDestroy

                                                          • selfDestroy(): void
                                                          • Returns void

                                                          setActive

                                                          • setActive(isActive: boolean): void
                                                          • Parameters

                                                            • isActive: boolean

                                                            Returns void

                                                          setFacing

                                                          • setFacing(side: number): boolean
                                                          • Parameters

                                                            • side: number

                                                            Returns boolean

                                                          setLiquidScale

                                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                          • Parameters

                                                            • container: any
                                                            • window: any
                                                            • content: any
                                                            • data: { amount: number; liquid: string; scale: string }
                                                              • amount: number
                                                              • liquid: string
                                                              • scale: string

                                                            Returns void

                                                          setupContainer

                                                          • setupContainer(): void
                                                          • Returns void

                                                          startPlaySound

                                                          • startPlaySound(): void
                                                          • Returns void

                                                          stopPlaySound

                                                          • stopPlaySound(): void
                                                          • Returns void

                                                          tick

                                                          • tick(): void
                                                          • @deprecated

                                                            Returns void

                                                          unload

                                                          • unload(): void
                                                          • @deprecated

                                                            Returns void

                                                          updateLiquidScale

                                                          • updateLiquidScale(scale: string, liquid: string): void
                                                          • Parameters

                                                            • scale: string
                                                            • liquid: string

                                                            Returns void

                                                          FluidHeatGenerator

                                                          FluidHeatGenerator:

                                                          constructor

                                                          __clientMethods

                                                          __clientMethods: {}

                                                          Type declaration

                                                          • [key string]: boolean

                                                          __containerEvents

                                                          __containerEvents: {}

                                                          Type declaration

                                                          __initialized

                                                          __initialized: boolean

                                                          __networkEvents

                                                          __networkEvents: {}

                                                          Type declaration

                                                          audioSource

                                                          audioSource: AudioSource

                                                          readonlyblockID

                                                          blockID: number

                                                          blockSource

                                                          blockSource: BlockSource

                                                          click

                                                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                          Type declaration

                                                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                            • Parameters

                                                              • id: number
                                                              • count: number
                                                              • data: number
                                                              • coords: ItemUseCoordinates
                                                              • player: number
                                                              • extra: ItemExtraData

                                                              Returns boolean | void

                                                          client

                                                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                          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
                                                              • (): void
                                                              • Returns void

                                                          • tick: () => void
                                                              • (): void
                                                              • Returns void

                                                          • unload: () => void
                                                              • (): void
                                                              • Returns void

                                                          container

                                                          container: ItemContainer

                                                          containerEvents

                                                          containerEvents: {}

                                                          Type declaration

                                                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                          data

                                                          data: {}

                                                          Type declaration

                                                          • [key string]: any

                                                          optionaldefaultDrop

                                                          defaultDrop?: number

                                                          defaultValues

                                                          defaultValues: { fuel: number; heat: number; liquid: any }

                                                          Type declaration

                                                          • fuel: number
                                                          • heat: number
                                                          • liquid: any

                                                          readonlydimension

                                                          dimension: number

                                                          events

                                                          events: {}

                                                          Type declaration

                                                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                          finishingSound

                                                          finishingSound: number

                                                          getGuiScreen

                                                          getGuiScreen: () => Nullable<IWindow>

                                                          Type declaration

                                                            • (): Nullable<IWindow>
                                                            • Returns Nullable<IWindow>

                                                          isLoaded

                                                          isLoaded: boolean

                                                          liquidStorage

                                                          liquidStorage: Storage

                                                          liquidTank

                                                          liquidTank: LiquidTank

                                                          networkData

                                                          networkData: SyncedNetworkData

                                                          networkEntity

                                                          networkEntity: NetworkEntity

                                                          networkEntityType

                                                          networkEntityType: NetworkEntityType

                                                          networkEntityTypeName

                                                          networkEntityTypeName: string

                                                          noupdate

                                                          noupdate: boolean

                                                          optionalonConnectionPlayer

                                                          onConnectionPlayer?: (client: NetworkClient) => void

                                                          Type declaration

                                                            • (client: NetworkClient): void
                                                            • Parameters

                                                              • client: NetworkClient

                                                              Returns void

                                                          optionalonDisconnectionPlayer

                                                          onDisconnectionPlayer?: (client: NetworkClient) => void

                                                          Type declaration

                                                            • (client: NetworkClient): void
                                                            • Parameters

                                                              • client: NetworkClient

                                                              Returns void

                                                          region

                                                          region: WorldRegion

                                                          Interface for BlockSource of the TileEntity. Provides more functionality.

                                                          remove

                                                          remove: boolean

                                                          sendPacket

                                                          sendPacket: (name: string, data: object) => {}

                                                          Type declaration

                                                            • (name: string, data: object): {}
                                                            • Parameters

                                                              • name: string
                                                              • data: object

                                                              Returns {}

                                                            sendResponse

                                                            sendResponse: (packetName: string, someData: object) => {}

                                                            Type declaration

                                                              • (packetName: string, someData: object): {}
                                                              • Parameters

                                                                • packetName: string
                                                                • someData: object

                                                                Returns {}

                                                              update

                                                              update: () => void

                                                              Type declaration

                                                                • (): void
                                                                • Returns void

                                                              optionalupgrades

                                                              upgrades?: string[]

                                                              readonlyuseNetworkItemContainer

                                                              useNetworkItemContainer: boolean

                                                              x

                                                              x: number

                                                              y

                                                              y: number

                                                              z

                                                              z: number

                                                              addLiquidTank

                                                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                              • Parameters

                                                                • name: string
                                                                • limit: number
                                                                • optionalliquids: string[]

                                                                Returns LiquidTank

                                                              adjustDrop

                                                              • adjustDrop(item: ItemInstance): ItemInstance
                                                              • Parameters

                                                                • item: ItemInstance

                                                                Returns ItemInstance

                                                              canRotate

                                                              • canRotate(): boolean
                                                              • Returns boolean

                                                              clientLoad

                                                              • clientLoad(): void
                                                              • Called when the client copy is created


                                                                Returns void

                                                              clientTick

                                                              • clientTick(): void
                                                              • Called every tick on client thread


                                                                Returns void

                                                              clientUnload

                                                              • clientUnload(): void
                                                              • Called on destroying the client copy


                                                                Returns void

                                                              created

                                                              • created(): void
                                                              • Returns void

                                                              decreaseSlot

                                                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                              • Parameters

                                                                • slot: ItemContainerSlot
                                                                • count: number

                                                                Returns void

                                                              destroy

                                                              • destroy(): boolean
                                                              • Returns boolean

                                                              destroyBlock

                                                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                              • Parameters

                                                                • coords: ItemUseCoordinates
                                                                • player: number

                                                                Returns void

                                                              getDefaultDrop

                                                              • getDefaultDrop(): number
                                                              • Returns number

                                                              getFacing

                                                              • getFacing(): number
                                                              • Returns number

                                                              getFuel

                                                              • getFuel(liquid: string): { amount: number; power: number }
                                                              • Parameters

                                                                • liquid: string

                                                                Returns { amount: number; power: number }

                                                                • amount: number
                                                                • power: number

                                                              getInterruptSound

                                                              • getInterruptSound(): string
                                                              • Returns string

                                                              getOperationSound

                                                              • getOperationSound(): string
                                                              • Returns string

                                                              getScreenByName

                                                              • getScreenByName(): IWindow
                                                              • Returns IWindow

                                                              getScreenName

                                                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                              • Parameters

                                                                • player: number
                                                                • coords: ItemUseCoordinates

                                                                Returns string

                                                              getStartingSound

                                                              • getStartingSound(): string
                                                              • Returns string

                                                              init

                                                              • init(): void
                                                              • @deprecated

                                                                Returns void

                                                              load

                                                              • load(): void
                                                              • @deprecated

                                                                Returns void

                                                              onCheckerTick

                                                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                              • Parameters

                                                                • isInitialized: boolean
                                                                • isLoaded: boolean
                                                                • wasLoaded: boolean

                                                                Returns void

                                                              onCreate

                                                              • onCreate(): void
                                                              • Called when a TileEntity is created


                                                                Returns void

                                                              onInit

                                                              • onInit(): void
                                                              • Called when a TileEntity is initialised in the world


                                                                Returns void

                                                              onItemClick

                                                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                              • Parameters

                                                                • id: number
                                                                • count: number
                                                                • data: number
                                                                • coords: ItemUseCoordinates
                                                                • player: number
                                                                • extra: ItemExtraData

                                                                Returns boolean

                                                              onItemUse

                                                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                              • 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

                                                              • onLoad(): void
                                                              • Called when a chunk with TileEntity is loaded


                                                                Returns void

                                                              onRedstoneUpdate

                                                              • onRedstoneUpdate(signal: number): void
                                                              • Occurs when redstone signal on TileEntity block was updated


                                                                Parameters

                                                                • signal: number

                                                                  signal power (0-15)

                                                                Returns void

                                                              onTick

                                                              • onTick(): void
                                                              • Called every tick and should be used for all the updates of the TileEntity


                                                                Returns void

                                                              onUnload

                                                              • onUnload(): void
                                                              • Called when a chunk with TileEntity is unloaded


                                                                Returns void

                                                              preventClick

                                                              • preventClick(): void
                                                              • Prevents all actions on click


                                                                Returns void

                                                              projectileHit

                                                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                              • Parameters

                                                                • coords: ItemUseCoordinates
                                                                • target: ProjectileHitTarget

                                                                Returns void

                                                              redstone

                                                              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                              • @deprecated

                                                                Parameters

                                                                • params: { onLoad: boolean; power: number; signal: number }
                                                                  • onLoad: boolean
                                                                  • power: number
                                                                  • signal: number

                                                                Returns void

                                                              renderModel

                                                              • renderModel(): void
                                                              • Returns void

                                                              requireMoreLiquid

                                                              • requireMoreLiquid(liquid: string, amount: number): void
                                                              • Parameters

                                                                • liquid: string
                                                                • amount: number

                                                                Returns void

                                                              selfDestroy

                                                              • selfDestroy(): void
                                                              • Returns void

                                                              setActive

                                                              • setActive(isActive: boolean): void
                                                              • Parameters

                                                                • isActive: boolean

                                                                Returns void

                                                              setFacing

                                                              • setFacing(side: number): boolean
                                                              • Parameters

                                                                • side: number

                                                                Returns boolean

                                                              setLiquidScale

                                                              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                              • Parameters

                                                                • container: any
                                                                • window: any
                                                                • content: any
                                                                • data: { amount: number; liquid: string; scale: string }
                                                                  • amount: number
                                                                  • liquid: string
                                                                  • scale: string

                                                                Returns void

                                                              setupContainer

                                                              • setupContainer(): void
                                                              • Returns void

                                                              spreadHeat

                                                              • spreadHeat(heat: number): number
                                                              • Parameters

                                                                • heat: number

                                                                Returns number

                                                              startPlaySound

                                                              • startPlaySound(): void
                                                              • Returns void

                                                              stopPlaySound

                                                              • stopPlaySound(): void
                                                              • Returns void

                                                              tick

                                                              • tick(): void
                                                              • @deprecated

                                                                Returns void

                                                              unload

                                                              • unload(): void
                                                              • @deprecated

                                                                Returns void

                                                              updateLiquidScale

                                                              • updateLiquidScale(scale: string, liquid: string): void
                                                              • Parameters

                                                                • scale: string
                                                                • liquid: string

                                                                Returns void

                                                              FluidTank

                                                              FluidTank:

                                                              constructor

                                                              • Returns FluidTank

                                                              __clientMethods

                                                              __clientMethods: {}

                                                              Type declaration

                                                              • [key string]: boolean

                                                              __containerEvents

                                                              __containerEvents: {}

                                                              Type declaration

                                                              __initialized

                                                              __initialized: boolean

                                                              __networkEvents

                                                              __networkEvents: {}

                                                              Type declaration

                                                              audioSource

                                                              audioSource: AudioSource

                                                              readonlyblockID

                                                              blockID: number

                                                              blockSource

                                                              blockSource: BlockSource

                                                              click

                                                              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                              Type declaration

                                                                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                • Parameters

                                                                  • id: number
                                                                  • count: number
                                                                  • data: number
                                                                  • coords: ItemUseCoordinates
                                                                  • player: number
                                                                  • extra: ItemExtraData

                                                                  Returns boolean | void

                                                              client

                                                              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                              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
                                                                  • (): void
                                                                  • Returns void

                                                              • tick: () => void
                                                                  • (): void
                                                                  • Returns void

                                                              • unload: () => void
                                                                  • (): void
                                                                  • Returns void

                                                              container

                                                              container: ItemContainer

                                                              containerEvents

                                                              containerEvents: {}

                                                              Type declaration

                                                              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                              data

                                                              data: {}

                                                              Type declaration

                                                              • [key string]: any

                                                              optionaldefaultDrop

                                                              defaultDrop?: number

                                                              defaultValues

                                                              defaultValues: {}

                                                              Type declaration

                                                                readonlydimension

                                                                dimension: number

                                                                events

                                                                events: {}

                                                                Type declaration

                                                                • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                finishingSound

                                                                finishingSound: number

                                                                getGuiScreen

                                                                getGuiScreen: () => Nullable<IWindow>

                                                                Type declaration

                                                                  • (): Nullable<IWindow>
                                                                  • Returns Nullable<IWindow>

                                                                isLoaded

                                                                isLoaded: boolean

                                                                liquidStorage

                                                                liquidStorage: Storage

                                                                liquidTank

                                                                liquidTank: LiquidTank

                                                                networkData

                                                                networkData: SyncedNetworkData

                                                                networkEntity

                                                                networkEntity: NetworkEntity

                                                                networkEntityType

                                                                networkEntityType: NetworkEntityType

                                                                networkEntityTypeName

                                                                networkEntityTypeName: string

                                                                noupdate

                                                                noupdate: boolean

                                                                optionalonConnectionPlayer

                                                                onConnectionPlayer?: (client: NetworkClient) => void

                                                                Type declaration

                                                                  • (client: NetworkClient): void
                                                                  • Parameters

                                                                    • client: NetworkClient

                                                                    Returns void

                                                                optionalonDisconnectionPlayer

                                                                onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                Type declaration

                                                                  • (client: NetworkClient): void
                                                                  • Parameters

                                                                    • client: NetworkClient

                                                                    Returns void

                                                                region

                                                                region: WorldRegion

                                                                Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                remove

                                                                remove: boolean

                                                                sendPacket

                                                                sendPacket: (name: string, data: object) => {}

                                                                Type declaration

                                                                  • (name: string, data: object): {}
                                                                  • Parameters

                                                                    • name: string
                                                                    • data: object

                                                                    Returns {}

                                                                  sendResponse

                                                                  sendResponse: (packetName: string, someData: object) => {}

                                                                  Type declaration

                                                                    • (packetName: string, someData: object): {}
                                                                    • Parameters

                                                                      • packetName: string
                                                                      • someData: object

                                                                      Returns {}

                                                                    update

                                                                    update: () => void

                                                                    Type declaration

                                                                      • (): void
                                                                      • Returns void

                                                                    upgrades

                                                                    upgrades: string[]

                                                                    readonlyuseNetworkItemContainer

                                                                    useNetworkItemContainer: boolean

                                                                    x

                                                                    x: number

                                                                    y

                                                                    y: number

                                                                    z

                                                                    z: number

                                                                    addLiquidTank

                                                                    • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                    • Parameters

                                                                      • name: string
                                                                      • limit: number
                                                                      • optionalliquids: string[]

                                                                      Returns LiquidTank

                                                                    adjustDrop

                                                                    • adjustDrop(item: ItemInstance): ItemInstance
                                                                    • Parameters

                                                                      • item: ItemInstance

                                                                      Returns ItemInstance

                                                                    canRotate

                                                                    • canRotate(side: number): boolean
                                                                    • Parameters

                                                                      • side: number

                                                                      Returns boolean

                                                                    clientLoad

                                                                    • clientLoad(): void
                                                                    • Called when the client copy is created


                                                                      Returns void

                                                                    clientTick

                                                                    • clientTick(): void
                                                                    • Called every tick on client thread


                                                                      Returns void

                                                                    clientUnload

                                                                    • clientUnload(): void
                                                                    • Called on destroying the client copy


                                                                      Returns void

                                                                    created

                                                                    • created(): void
                                                                    • Returns void

                                                                    decreaseSlot

                                                                    • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                    • Parameters

                                                                      • slot: ItemContainerSlot
                                                                      • count: number

                                                                      Returns void

                                                                    destroy

                                                                    • destroy(): boolean
                                                                    • Returns boolean

                                                                    destroyBlock

                                                                    • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                    • Parameters

                                                                      • coords: ItemUseCoordinates
                                                                      • player: number

                                                                      Returns void

                                                                    getDefaultDrop

                                                                    • getDefaultDrop(): number
                                                                    • Returns number

                                                                    getFacing

                                                                    • getFacing(): number
                                                                    • Returns number

                                                                    getInterruptSound

                                                                    • getInterruptSound(): string
                                                                    • Returns string

                                                                    getOperationSound

                                                                    • getOperationSound(): string
                                                                    • Returns string

                                                                    getScreenByName

                                                                    • getScreenByName(): IWindow
                                                                    • Returns IWindow

                                                                    getScreenName

                                                                    • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                    • Parameters

                                                                      • player: number
                                                                      • coords: ItemUseCoordinates

                                                                      Returns string

                                                                    getStartingSound

                                                                    • getStartingSound(): string
                                                                    • Returns string

                                                                    init

                                                                    • init(): void
                                                                    • @deprecated

                                                                      Returns void

                                                                    load

                                                                    • load(): void
                                                                    • @deprecated

                                                                      Returns void

                                                                    onCheckerTick

                                                                    • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                    • Parameters

                                                                      • isInitialized: boolean
                                                                      • isLoaded: boolean
                                                                      • wasLoaded: boolean

                                                                      Returns void

                                                                    onCreate

                                                                    • onCreate(): void
                                                                    • Called when a TileEntity is created


                                                                      Returns void

                                                                    onInit

                                                                    • onInit(): void
                                                                    • Called when a TileEntity is initialised in the world


                                                                      Returns void

                                                                    onItemClick

                                                                    • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                    • Parameters

                                                                      • id: number
                                                                      • count: number
                                                                      • data: number
                                                                      • coords: ItemUseCoordinates
                                                                      • player: number
                                                                      • extra: ItemExtraData

                                                                      Returns boolean

                                                                    onItemUse

                                                                    • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                    • 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

                                                                    • onLoad(): void
                                                                    • Called when a chunk with TileEntity is loaded


                                                                      Returns void

                                                                    onRedstoneUpdate

                                                                    • onRedstoneUpdate(signal: number): void
                                                                    • Occurs when redstone signal on TileEntity block was updated


                                                                      Parameters

                                                                      • signal: number

                                                                        signal power (0-15)

                                                                      Returns void

                                                                    onTick

                                                                    • onTick(): void
                                                                    • Called every tick and should be used for all the updates of the TileEntity


                                                                      Returns void

                                                                    onUnload

                                                                    • onUnload(): void
                                                                    • Called when a chunk with TileEntity is unloaded


                                                                      Returns void

                                                                    preventClick

                                                                    • preventClick(): void
                                                                    • Prevents all actions on click


                                                                      Returns void

                                                                    projectileHit

                                                                    • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                    • Parameters

                                                                      • coords: ItemUseCoordinates
                                                                      • target: ProjectileHitTarget

                                                                      Returns void

                                                                    redstone

                                                                    • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                    • @deprecated

                                                                      Parameters

                                                                      • params: { onLoad: boolean; power: number; signal: number }
                                                                        • onLoad: boolean
                                                                        • power: number
                                                                        • signal: number

                                                                      Returns void

                                                                    renderModel

                                                                    • renderModel(): void
                                                                    • Returns void

                                                                    requireMoreLiquid

                                                                    • requireMoreLiquid(liquid: string, amount: number): void
                                                                    • Parameters

                                                                      • liquid: string
                                                                      • amount: number

                                                                      Returns void

                                                                    selfDestroy

                                                                    • selfDestroy(): void
                                                                    • Returns void

                                                                    setActive

                                                                    • setActive(isActive: boolean): void
                                                                    • Parameters

                                                                      • isActive: boolean

                                                                      Returns void

                                                                    setFacing

                                                                    • setFacing(side: number): boolean
                                                                    • Parameters

                                                                      • side: number

                                                                      Returns boolean

                                                                    setLiquidScale

                                                                    • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                    • Parameters

                                                                      • container: any
                                                                      • window: any
                                                                      • content: any
                                                                      • data: { amount: number; liquid: string; scale: string }
                                                                        • amount: number
                                                                        • liquid: string
                                                                        • scale: string

                                                                      Returns void

                                                                    setupContainer

                                                                    • setupContainer(): void
                                                                    • Returns void

                                                                    startPlaySound

                                                                    • startPlaySound(): void
                                                                    • Returns void

                                                                    stopPlaySound

                                                                    • stopPlaySound(): void
                                                                    • Returns void

                                                                    tick

                                                                    • tick(): void
                                                                    • @deprecated

                                                                      Returns void

                                                                    unload

                                                                    • unload(): void
                                                                    • @deprecated

                                                                      Returns void

                                                                    updateLiquidScale

                                                                    • updateLiquidScale(scale: string, liquid: string): void
                                                                    • Parameters

                                                                      • scale: string
                                                                      • liquid: string

                                                                      Returns void

                                                                    FuelGenerator

                                                                    FuelGenerator:

                                                                    constructor

                                                                    __clientMethods

                                                                    __clientMethods: {}

                                                                    Type declaration

                                                                    • [key string]: boolean

                                                                    __containerEvents

                                                                    __containerEvents: {}

                                                                    Type declaration

                                                                    __initialized

                                                                    __initialized: boolean

                                                                    __networkEvents

                                                                    __networkEvents: {}

                                                                    Type declaration

                                                                    audioSource

                                                                    audioSource: AudioSource

                                                                    readonlyblockID

                                                                    blockID: number

                                                                    blockSource

                                                                    blockSource: BlockSource

                                                                    click

                                                                    click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                    Type declaration

                                                                      • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                      • Parameters

                                                                        • id: number
                                                                        • count: number
                                                                        • data: number
                                                                        • coords: ItemUseCoordinates
                                                                        • player: number
                                                                        • extra: ItemExtraData

                                                                        Returns boolean | void

                                                                    client

                                                                    client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                    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
                                                                        • (): void
                                                                        • Returns void

                                                                    • tick: () => void
                                                                        • (): void
                                                                        • Returns void

                                                                    • unload: () => void
                                                                        • (): void
                                                                        • Returns void

                                                                    container

                                                                    container: ItemContainer

                                                                    containerEvents

                                                                    containerEvents: {}

                                                                    Type declaration

                                                                    • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                    data

                                                                    data: { burn: number; burnMax: number; energy: number }

                                                                    Type declaration

                                                                    • burn: number
                                                                    • burnMax: number
                                                                    • energy: number

                                                                    defaultDrop

                                                                    defaultDrop: number

                                                                    defaultValues

                                                                    defaultValues: { burn: number; burnMax: number; energy: number }

                                                                    Type declaration

                                                                    • burn: number
                                                                    • burnMax: number
                                                                    • energy: number

                                                                    readonlydimension

                                                                    dimension: number

                                                                    energyNode

                                                                    energyNode: EnergyTileNode

                                                                    energyTypes

                                                                    energyTypes: object

                                                                    events

                                                                    events: {}

                                                                    Type declaration

                                                                    • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                    finishingSound

                                                                    finishingSound: number

                                                                    getGuiScreen

                                                                    getGuiScreen: () => Nullable<IWindow>

                                                                    Type declaration

                                                                      • (): Nullable<IWindow>
                                                                      • Returns Nullable<IWindow>

                                                                    isLoaded

                                                                    isLoaded: boolean

                                                                    liquidStorage

                                                                    liquidStorage: Storage

                                                                    networkData

                                                                    networkData: SyncedNetworkData

                                                                    networkEntity

                                                                    networkEntity: NetworkEntity

                                                                    networkEntityType

                                                                    networkEntityType: NetworkEntityType

                                                                    networkEntityTypeName

                                                                    networkEntityTypeName: string

                                                                    noupdate

                                                                    noupdate: boolean

                                                                    optionalonConnectionPlayer

                                                                    onConnectionPlayer?: (client: NetworkClient) => void

                                                                    Type declaration

                                                                      • (client: NetworkClient): void
                                                                      • Parameters

                                                                        • client: NetworkClient

                                                                        Returns void

                                                                    optionalonDisconnectionPlayer

                                                                    onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                    Type declaration

                                                                      • (client: NetworkClient): void
                                                                      • Parameters

                                                                        • client: NetworkClient

                                                                        Returns void

                                                                    region

                                                                    region: WorldRegion

                                                                    Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                    remove

                                                                    remove: boolean

                                                                    sendPacket

                                                                    sendPacket: (name: string, data: object) => {}

                                                                    Type declaration

                                                                      • (name: string, data: object): {}
                                                                      • Parameters

                                                                        • name: string
                                                                        • data: object

                                                                        Returns {}

                                                                      sendResponse

                                                                      sendResponse: (packetName: string, someData: object) => {}

                                                                      Type declaration

                                                                        • (packetName: string, someData: object): {}
                                                                        • Parameters

                                                                          • packetName: string
                                                                          • someData: object

                                                                          Returns {}

                                                                        update

                                                                        update: () => void

                                                                        Type declaration

                                                                          • (): void
                                                                          • Returns void

                                                                        optionalupgrades

                                                                        upgrades?: string[]

                                                                        readonlyuseNetworkItemContainer

                                                                        useNetworkItemContainer: boolean

                                                                        x

                                                                        x: number

                                                                        y

                                                                        y: number

                                                                        z

                                                                        z: number

                                                                        addLiquidTank

                                                                        • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                        • Parameters

                                                                          • name: string
                                                                          • limit: number
                                                                          • optionalliquids: string[]

                                                                          Returns LiquidTank

                                                                        adjustDrop

                                                                        • adjustDrop(item: ItemInstance): ItemInstance
                                                                        • Parameters

                                                                          • item: ItemInstance

                                                                          Returns ItemInstance

                                                                        canExtractEnergy

                                                                        • canExtractEnergy(): boolean
                                                                        • Returns boolean

                                                                        canReceiveEnergy

                                                                        • canReceiveEnergy(): boolean
                                                                        • Returns boolean

                                                                        canRotate

                                                                        • canRotate(side: number): boolean
                                                                        • Parameters

                                                                          • side: number

                                                                          Returns boolean

                                                                        chargeSlot

                                                                        • chargeSlot(slotName: string): void
                                                                        • Parameters

                                                                          • slotName: string

                                                                          Returns void

                                                                        clientLoad

                                                                        • clientLoad(): void
                                                                        • Called when the client copy is created


                                                                          Returns void

                                                                        clientTick

                                                                        • clientTick(): void
                                                                        • Called every tick on client thread


                                                                          Returns void

                                                                        clientUnload

                                                                        • clientUnload(): void
                                                                        • Called on destroying the client copy


                                                                          Returns void

                                                                        consumeFuel

                                                                        • consumeFuel(slotName: string): number
                                                                        • Parameters

                                                                          • slotName: string

                                                                          Returns number

                                                                        created

                                                                        • created(): void
                                                                        • Returns void

                                                                        decreaseSlot

                                                                        • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                        • Parameters

                                                                          • slot: ItemContainerSlot
                                                                          • count: number

                                                                          Returns void

                                                                        destroy

                                                                        • destroy(): boolean
                                                                        • Returns boolean

                                                                        destroyBlock

                                                                        • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                        • Parameters

                                                                          • coords: ItemUseCoordinates
                                                                          • player: number

                                                                          Returns void

                                                                        dischargeSlot

                                                                        • dischargeSlot(slotName: string): void
                                                                        • Parameters

                                                                          • slotName: string

                                                                          Returns void

                                                                        energyReceive

                                                                        • energyReceive(type: string, amount: number, voltage: number): number
                                                                        • Parameters

                                                                          • type: string
                                                                          • amount: number
                                                                          • voltage: number

                                                                          Returns number

                                                                        energyTick

                                                                        • Parameters

                                                                          Returns void

                                                                        getDefaultDrop

                                                                        • getDefaultDrop(): number
                                                                        • Returns number

                                                                        getEnergyStorage

                                                                        • getEnergyStorage(): number
                                                                        • Returns number

                                                                        getExplosionPower

                                                                        • getExplosionPower(): number
                                                                        • Returns number

                                                                        getFacing

                                                                        • getFacing(): number
                                                                        • Returns number

                                                                        getInterruptSound

                                                                        • getInterruptSound(): string
                                                                        • Returns string

                                                                        getMaxPacketSize

                                                                        • getMaxPacketSize(): number
                                                                        • Returns number

                                                                        getOperationSound

                                                                        • getOperationSound(): string
                                                                        • Returns string

                                                                        getRelativeEnergy

                                                                        • getRelativeEnergy(): number
                                                                        • Returns number

                                                                        getScreenByName

                                                                        • getScreenByName(): IWindow
                                                                        • Returns IWindow

                                                                        getScreenName

                                                                        • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                        • Parameters

                                                                          • player: number
                                                                          • coords: ItemUseCoordinates

                                                                          Returns string

                                                                        getStartingSound

                                                                        • getStartingSound(): string
                                                                        • Returns string

                                                                        getTier

                                                                        • getTier(): number
                                                                        • Returns number

                                                                        init

                                                                        • init(): void
                                                                        • @deprecated

                                                                          Returns void

                                                                        isConductor

                                                                        • isConductor(type: string): boolean
                                                                        • Parameters

                                                                          • type: string

                                                                          Returns boolean

                                                                        load

                                                                        • load(): void
                                                                        • @deprecated

                                                                          Returns void

                                                                        onCheckerTick

                                                                        • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                        • Parameters

                                                                          • isInitialized: boolean
                                                                          • isLoaded: boolean
                                                                          • wasLoaded: boolean

                                                                          Returns void

                                                                        onCreate

                                                                        • onCreate(): void
                                                                        • Called when a TileEntity is created


                                                                          Returns void

                                                                        onInit

                                                                        • onInit(): void
                                                                        • Called when a TileEntity is initialised in the world


                                                                          Returns void

                                                                        onItemClick

                                                                        • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                        • Parameters

                                                                          • id: number
                                                                          • count: number
                                                                          • data: number
                                                                          • coords: ItemUseCoordinates
                                                                          • player: number
                                                                          • extra: ItemExtraData

                                                                          Returns boolean

                                                                        onItemUse

                                                                        • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                        • 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

                                                                        • onLoad(): void
                                                                        • Called when a chunk with TileEntity is loaded


                                                                          Returns void

                                                                        onRedstoneUpdate

                                                                        • onRedstoneUpdate(signal: number): void
                                                                        • Occurs when redstone signal on TileEntity block was updated


                                                                          Parameters

                                                                          • signal: number

                                                                            signal power (0-15)

                                                                          Returns void

                                                                        onTick

                                                                        • onTick(): void
                                                                        • Called every tick and should be used for all the updates of the TileEntity


                                                                          Returns void

                                                                        onUnload

                                                                        • onUnload(): void
                                                                        • Called when a chunk with TileEntity is unloaded


                                                                          Returns void

                                                                        preventClick

                                                                        • preventClick(): void
                                                                        • Prevents all actions on click


                                                                          Returns void

                                                                        projectileHit

                                                                        • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                        • Parameters

                                                                          • coords: ItemUseCoordinates
                                                                          • target: ProjectileHitTarget

                                                                          Returns void

                                                                        rebuildGrid

                                                                        • rebuildGrid(): void
                                                                        • Returns void

                                                                        redstone

                                                                        • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                        • @deprecated

                                                                          Parameters

                                                                          • params: { onLoad: boolean; power: number; signal: number }
                                                                            • onLoad: boolean
                                                                            • power: number
                                                                            • signal: number

                                                                          Returns void

                                                                        renderModel

                                                                        • renderModel(): void
                                                                        • Returns void

                                                                        requireMoreLiquid

                                                                        • requireMoreLiquid(liquid: string, amount: number): void
                                                                        • Parameters

                                                                          • liquid: string
                                                                          • amount: number

                                                                          Returns void

                                                                        selfDestroy

                                                                        • selfDestroy(): void
                                                                        • Returns void

                                                                        setActive

                                                                        • setActive(isActive: boolean): void
                                                                        • Parameters

                                                                          • isActive: boolean

                                                                          Returns void

                                                                        setFacing

                                                                        • setFacing(side: number): boolean
                                                                        • Parameters

                                                                          • side: number

                                                                          Returns boolean

                                                                        setLiquidScale

                                                                        • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                        • Parameters

                                                                          • container: any
                                                                          • window: any
                                                                          • content: any
                                                                          • data: { amount: number; liquid: string; scale: string }
                                                                            • amount: number
                                                                            • liquid: string
                                                                            • scale: string

                                                                          Returns void

                                                                        setupContainer

                                                                        • setupContainer(): void
                                                                        • Returns void

                                                                        startPlaySound

                                                                        • startPlaySound(): void
                                                                        • Returns void

                                                                        stopPlaySound

                                                                        • stopPlaySound(): void
                                                                        • Returns void

                                                                        tick

                                                                        • tick(): void
                                                                        • @deprecated

                                                                          Returns void

                                                                        unload

                                                                        • unload(): void
                                                                        • @deprecated

                                                                          Returns void

                                                                        updateLiquidScale

                                                                        • updateLiquidScale(scale: string, liquid: string): void
                                                                        • Parameters

                                                                          • scale: string
                                                                          • liquid: string

                                                                          Returns void

                                                                        abstractGenerator

                                                                        Generator:

                                                                        constructor

                                                                        • Returns Generator

                                                                        __clientMethods

                                                                        __clientMethods: {}

                                                                        Type declaration

                                                                        • [key string]: boolean

                                                                        __containerEvents

                                                                        __containerEvents: {}

                                                                        Type declaration

                                                                        __initialized

                                                                        __initialized: boolean

                                                                        __networkEvents

                                                                        __networkEvents: {}

                                                                        Type declaration

                                                                        audioSource

                                                                        audioSource: AudioSource

                                                                        readonlyblockID

                                                                        blockID: number

                                                                        blockSource

                                                                        blockSource: BlockSource

                                                                        click

                                                                        click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                        Type declaration

                                                                          • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                          • Parameters

                                                                            • id: number
                                                                            • count: number
                                                                            • data: number
                                                                            • coords: ItemUseCoordinates
                                                                            • player: number
                                                                            • extra: ItemExtraData

                                                                            Returns boolean | void

                                                                        client

                                                                        client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                        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
                                                                            • (): void
                                                                            • Returns void

                                                                        • tick: () => void
                                                                            • (): void
                                                                            • Returns void

                                                                        • unload: () => void
                                                                            • (): void
                                                                            • Returns void

                                                                        container

                                                                        container: ItemContainer

                                                                        containerEvents

                                                                        containerEvents: {}

                                                                        Type declaration

                                                                        • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                        data

                                                                        data: { energy: number }

                                                                        Type declaration

                                                                        • energy: number

                                                                        defaultDrop

                                                                        defaultDrop: number

                                                                        defaultValues

                                                                        defaultValues: { energy: number }

                                                                        Type declaration

                                                                        • energy: number

                                                                        readonlydimension

                                                                        dimension: number

                                                                        energyNode

                                                                        energyNode: EnergyTileNode

                                                                        energyTypes

                                                                        energyTypes: object

                                                                        events

                                                                        events: {}

                                                                        Type declaration

                                                                        • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                        finishingSound

                                                                        finishingSound: number

                                                                        getGuiScreen

                                                                        getGuiScreen: () => Nullable<IWindow>

                                                                        Type declaration

                                                                          • (): Nullable<IWindow>
                                                                          • Returns Nullable<IWindow>

                                                                        isLoaded

                                                                        isLoaded: boolean

                                                                        liquidStorage

                                                                        liquidStorage: Storage

                                                                        networkData

                                                                        networkData: SyncedNetworkData

                                                                        networkEntity

                                                                        networkEntity: NetworkEntity

                                                                        networkEntityType

                                                                        networkEntityType: NetworkEntityType

                                                                        networkEntityTypeName

                                                                        networkEntityTypeName: string

                                                                        noupdate

                                                                        noupdate: boolean

                                                                        optionalonConnectionPlayer

                                                                        onConnectionPlayer?: (client: NetworkClient) => void

                                                                        Type declaration

                                                                          • (client: NetworkClient): void
                                                                          • Parameters

                                                                            • client: NetworkClient

                                                                            Returns void

                                                                        optionalonDisconnectionPlayer

                                                                        onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                        Type declaration

                                                                          • (client: NetworkClient): void
                                                                          • Parameters

                                                                            • client: NetworkClient

                                                                            Returns void

                                                                        region

                                                                        region: WorldRegion

                                                                        Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                        remove

                                                                        remove: boolean

                                                                        sendPacket

                                                                        sendPacket: (name: string, data: object) => {}

                                                                        Type declaration

                                                                          • (name: string, data: object): {}
                                                                          • Parameters

                                                                            • name: string
                                                                            • data: object

                                                                            Returns {}

                                                                          sendResponse

                                                                          sendResponse: (packetName: string, someData: object) => {}

                                                                          Type declaration

                                                                            • (packetName: string, someData: object): {}
                                                                            • Parameters

                                                                              • packetName: string
                                                                              • someData: object

                                                                              Returns {}

                                                                            update

                                                                            update: () => void

                                                                            Type declaration

                                                                              • (): void
                                                                              • Returns void

                                                                            optionalupgrades

                                                                            upgrades?: string[]

                                                                            readonlyuseNetworkItemContainer

                                                                            useNetworkItemContainer: boolean

                                                                            x

                                                                            x: number

                                                                            y

                                                                            y: number

                                                                            z

                                                                            z: number

                                                                            addLiquidTank

                                                                            • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                            • Parameters

                                                                              • name: string
                                                                              • limit: number
                                                                              • optionalliquids: string[]

                                                                              Returns LiquidTank

                                                                            adjustDrop

                                                                            • adjustDrop(item: ItemInstance): ItemInstance
                                                                            • Parameters

                                                                              • item: ItemInstance

                                                                              Returns ItemInstance

                                                                            canExtractEnergy

                                                                            • canExtractEnergy(): boolean
                                                                            • Returns boolean

                                                                            canReceiveEnergy

                                                                            • canReceiveEnergy(): boolean
                                                                            • Returns boolean

                                                                            canRotate

                                                                            • canRotate(side: number): boolean
                                                                            • Parameters

                                                                              • side: number

                                                                              Returns boolean

                                                                            chargeSlot

                                                                            • chargeSlot(slotName: string): void
                                                                            • Parameters

                                                                              • slotName: string

                                                                              Returns void

                                                                            clientLoad

                                                                            • clientLoad(): void
                                                                            • Called when the client copy is created


                                                                              Returns void

                                                                            clientTick

                                                                            • clientTick(): void
                                                                            • Called every tick on client thread


                                                                              Returns void

                                                                            clientUnload

                                                                            • clientUnload(): void
                                                                            • Called on destroying the client copy


                                                                              Returns void

                                                                            created

                                                                            • created(): void
                                                                            • Returns void

                                                                            decreaseSlot

                                                                            • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                            • Parameters

                                                                              • slot: ItemContainerSlot
                                                                              • count: number

                                                                              Returns void

                                                                            destroy

                                                                            • destroy(): boolean
                                                                            • Returns boolean

                                                                            destroyBlock

                                                                            • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                            • Parameters

                                                                              • coords: ItemUseCoordinates
                                                                              • player: number

                                                                              Returns void

                                                                            dischargeSlot

                                                                            • dischargeSlot(slotName: string): void
                                                                            • Parameters

                                                                              • slotName: string

                                                                              Returns void

                                                                            energyReceive

                                                                            • energyReceive(type: string, amount: number, voltage: number): number
                                                                            • Parameters

                                                                              • type: string
                                                                              • amount: number
                                                                              • voltage: number

                                                                              Returns number

                                                                            energyTick

                                                                            • Parameters

                                                                              Returns void

                                                                            getDefaultDrop

                                                                            • getDefaultDrop(): number
                                                                            • Returns number

                                                                            getEnergyStorage

                                                                            • getEnergyStorage(): number
                                                                            • Returns number

                                                                            getExplosionPower

                                                                            • getExplosionPower(): number
                                                                            • Returns number

                                                                            getFacing

                                                                            • getFacing(): number
                                                                            • Returns number

                                                                            getInterruptSound

                                                                            • getInterruptSound(): string
                                                                            • Returns string

                                                                            getMaxPacketSize

                                                                            • getMaxPacketSize(): number
                                                                            • Returns number

                                                                            getOperationSound

                                                                            • getOperationSound(): string
                                                                            • Returns string

                                                                            getRelativeEnergy

                                                                            • getRelativeEnergy(): number
                                                                            • Returns number

                                                                            getScreenByName

                                                                            • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                            • Parameters

                                                                              • screenName: string
                                                                              • container: ItemContainer

                                                                              Returns IWindow

                                                                            getScreenName

                                                                            • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                            • Parameters

                                                                              • player: number
                                                                              • coords: ItemUseCoordinates

                                                                              Returns string

                                                                            getStartingSound

                                                                            • getStartingSound(): string
                                                                            • Returns string

                                                                            getTier

                                                                            • getTier(): number
                                                                            • Returns number

                                                                            init

                                                                            • init(): void
                                                                            • @deprecated

                                                                              Returns void

                                                                            isConductor

                                                                            • isConductor(type: string): boolean
                                                                            • Parameters

                                                                              • type: string

                                                                              Returns boolean

                                                                            load

                                                                            • load(): void
                                                                            • @deprecated

                                                                              Returns void

                                                                            onCheckerTick

                                                                            • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                            • Parameters

                                                                              • isInitialized: boolean
                                                                              • isLoaded: boolean
                                                                              • wasLoaded: boolean

                                                                              Returns void

                                                                            onCreate

                                                                            • onCreate(): void
                                                                            • Called when a TileEntity is created


                                                                              Returns void

                                                                            onInit

                                                                            • onInit(): void
                                                                            • Called when a TileEntity is initialised in the world


                                                                              Returns void

                                                                            onItemClick

                                                                            • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                            • Parameters

                                                                              • id: number
                                                                              • count: number
                                                                              • data: number
                                                                              • coords: ItemUseCoordinates
                                                                              • player: number
                                                                              • extra: ItemExtraData

                                                                              Returns boolean

                                                                            onItemUse

                                                                            • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                            • 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

                                                                            • onLoad(): void
                                                                            • Called when a chunk with TileEntity is loaded


                                                                              Returns void

                                                                            onRedstoneUpdate

                                                                            • onRedstoneUpdate(signal: number): void
                                                                            • Occurs when redstone signal on TileEntity block was updated


                                                                              Parameters

                                                                              • signal: number

                                                                                signal power (0-15)

                                                                              Returns void

                                                                            onTick

                                                                            • onTick(): void
                                                                            • Called every tick and should be used for all the updates of the TileEntity


                                                                              Returns void

                                                                            onUnload

                                                                            • onUnload(): void
                                                                            • Called when a chunk with TileEntity is unloaded


                                                                              Returns void

                                                                            preventClick

                                                                            • preventClick(): void
                                                                            • Prevents all actions on click


                                                                              Returns void

                                                                            projectileHit

                                                                            • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                            • Parameters

                                                                              • coords: ItemUseCoordinates
                                                                              • target: ProjectileHitTarget

                                                                              Returns void

                                                                            rebuildGrid

                                                                            • rebuildGrid(): void
                                                                            • Returns void

                                                                            redstone

                                                                            • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                            • @deprecated

                                                                              Parameters

                                                                              • params: { onLoad: boolean; power: number; signal: number }
                                                                                • onLoad: boolean
                                                                                • power: number
                                                                                • signal: number

                                                                              Returns void

                                                                            renderModel

                                                                            • renderModel(): void
                                                                            • Returns void

                                                                            requireMoreLiquid

                                                                            • requireMoreLiquid(liquid: string, amount: number): void
                                                                            • Parameters

                                                                              • liquid: string
                                                                              • amount: number

                                                                              Returns void

                                                                            selfDestroy

                                                                            • selfDestroy(): void
                                                                            • Returns void

                                                                            setActive

                                                                            • setActive(isActive: boolean): void
                                                                            • Parameters

                                                                              • isActive: boolean

                                                                              Returns void

                                                                            setFacing

                                                                            • setFacing(side: number): boolean
                                                                            • Parameters

                                                                              • side: number

                                                                              Returns boolean

                                                                            setLiquidScale

                                                                            • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                            • Parameters

                                                                              • container: any
                                                                              • window: any
                                                                              • content: any
                                                                              • data: { amount: number; liquid: string; scale: string }
                                                                                • amount: number
                                                                                • liquid: string
                                                                                • scale: string

                                                                              Returns void

                                                                            setupContainer

                                                                            • setupContainer(): void
                                                                            • Returns void

                                                                            startPlaySound

                                                                            • startPlaySound(): void
                                                                            • Returns void

                                                                            stopPlaySound

                                                                            • stopPlaySound(): void
                                                                            • Returns void

                                                                            tick

                                                                            • tick(): void
                                                                            • @deprecated

                                                                              Returns void

                                                                            unload

                                                                            • unload(): void
                                                                            • @deprecated

                                                                              Returns void

                                                                            updateLiquidScale

                                                                            • updateLiquidScale(scale: string, liquid: string): void
                                                                            • Parameters

                                                                              • scale: string
                                                                              • liquid: string

                                                                              Returns void

                                                                            GeothermalGenerator

                                                                            GeothermalGenerator:

                                                                            constructor

                                                                            __clientMethods

                                                                            __clientMethods: {}

                                                                            Type declaration

                                                                            • [key string]: boolean

                                                                            __containerEvents

                                                                            __containerEvents: {}

                                                                            Type declaration

                                                                            __initialized

                                                                            __initialized: boolean

                                                                            __networkEvents

                                                                            __networkEvents: {}

                                                                            Type declaration

                                                                            audioSource

                                                                            audioSource: AudioSource

                                                                            readonlyblockID

                                                                            blockID: number

                                                                            blockSource

                                                                            blockSource: BlockSource

                                                                            click

                                                                            click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                            Type declaration

                                                                              • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                              • Parameters

                                                                                • id: number
                                                                                • count: number
                                                                                • data: number
                                                                                • coords: ItemUseCoordinates
                                                                                • player: number
                                                                                • extra: ItemExtraData

                                                                                Returns boolean | void

                                                                            client

                                                                            client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                            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
                                                                                • (): void
                                                                                • Returns void

                                                                            • tick: () => void
                                                                                • (): void
                                                                                • Returns void

                                                                            • unload: () => void
                                                                                • (): void
                                                                                • Returns void

                                                                            container

                                                                            container: ItemContainer

                                                                            containerEvents

                                                                            containerEvents: {}

                                                                            Type declaration

                                                                            • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                            data

                                                                            data: { energy: number }

                                                                            Type declaration

                                                                            • energy: number

                                                                            defaultDrop

                                                                            defaultDrop: number

                                                                            defaultValues

                                                                            defaultValues: { energy: number }

                                                                            Type declaration

                                                                            • energy: number

                                                                            readonlydimension

                                                                            dimension: number

                                                                            energyNode

                                                                            energyNode: EnergyTileNode

                                                                            energyTypes

                                                                            energyTypes: object

                                                                            events

                                                                            events: {}

                                                                            Type declaration

                                                                            • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                            finishingSound

                                                                            finishingSound: number

                                                                            getGuiScreen

                                                                            getGuiScreen: () => Nullable<IWindow>

                                                                            Type declaration

                                                                              • (): Nullable<IWindow>
                                                                              • Returns Nullable<IWindow>

                                                                            isLoaded

                                                                            isLoaded: boolean

                                                                            liquidStorage

                                                                            liquidStorage: Storage

                                                                            liquidTank

                                                                            liquidTank: LiquidTank

                                                                            networkData

                                                                            networkData: SyncedNetworkData

                                                                            networkEntity

                                                                            networkEntity: NetworkEntity

                                                                            networkEntityType

                                                                            networkEntityType: NetworkEntityType

                                                                            networkEntityTypeName

                                                                            networkEntityTypeName: string

                                                                            noupdate

                                                                            noupdate: boolean

                                                                            optionalonConnectionPlayer

                                                                            onConnectionPlayer?: (client: NetworkClient) => void

                                                                            Type declaration

                                                                              • (client: NetworkClient): void
                                                                              • Parameters

                                                                                • client: NetworkClient

                                                                                Returns void

                                                                            optionalonDisconnectionPlayer

                                                                            onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                            Type declaration

                                                                              • (client: NetworkClient): void
                                                                              • Parameters

                                                                                • client: NetworkClient

                                                                                Returns void

                                                                            region

                                                                            region: WorldRegion

                                                                            Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                            remove

                                                                            remove: boolean

                                                                            sendPacket

                                                                            sendPacket: (name: string, data: object) => {}

                                                                            Type declaration

                                                                              • (name: string, data: object): {}
                                                                              • Parameters

                                                                                • name: string
                                                                                • data: object

                                                                                Returns {}

                                                                              sendResponse

                                                                              sendResponse: (packetName: string, someData: object) => {}

                                                                              Type declaration

                                                                                • (packetName: string, someData: object): {}
                                                                                • Parameters

                                                                                  • packetName: string
                                                                                  • someData: object

                                                                                  Returns {}

                                                                                update

                                                                                update: () => void

                                                                                Type declaration

                                                                                  • (): void
                                                                                  • Returns void

                                                                                optionalupgrades

                                                                                upgrades?: string[]

                                                                                readonlyuseNetworkItemContainer

                                                                                useNetworkItemContainer: boolean

                                                                                x

                                                                                x: number

                                                                                y

                                                                                y: number

                                                                                z

                                                                                z: number

                                                                                addLiquidTank

                                                                                • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                • Parameters

                                                                                  • name: string
                                                                                  • limit: number
                                                                                  • optionalliquids: string[]

                                                                                  Returns LiquidTank

                                                                                adjustDrop

                                                                                • adjustDrop(item: ItemInstance): ItemInstance
                                                                                • Parameters

                                                                                  • item: ItemInstance

                                                                                  Returns ItemInstance

                                                                                canExtractEnergy

                                                                                • canExtractEnergy(): boolean
                                                                                • Returns boolean

                                                                                canReceiveEnergy

                                                                                • canReceiveEnergy(): boolean
                                                                                • Returns boolean

                                                                                canRotate

                                                                                • canRotate(side: number): boolean
                                                                                • Parameters

                                                                                  • side: number

                                                                                  Returns boolean

                                                                                chargeSlot

                                                                                • chargeSlot(slotName: string): void
                                                                                • Parameters

                                                                                  • slotName: string

                                                                                  Returns void

                                                                                clientLoad

                                                                                • clientLoad(): void
                                                                                • Called when the client copy is created


                                                                                  Returns void

                                                                                clientTick

                                                                                • clientTick(): void
                                                                                • Called every tick on client thread


                                                                                  Returns void

                                                                                clientUnload

                                                                                • clientUnload(): void
                                                                                • Called on destroying the client copy


                                                                                  Returns void

                                                                                created

                                                                                • created(): void
                                                                                • Returns void

                                                                                decreaseSlot

                                                                                • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                • Parameters

                                                                                  • slot: ItemContainerSlot
                                                                                  • count: number

                                                                                  Returns void

                                                                                destroy

                                                                                • destroy(): boolean
                                                                                • Returns boolean

                                                                                destroyBlock

                                                                                • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                • Parameters

                                                                                  • coords: ItemUseCoordinates
                                                                                  • player: number

                                                                                  Returns void

                                                                                dischargeSlot

                                                                                • dischargeSlot(slotName: string): void
                                                                                • Parameters

                                                                                  • slotName: string

                                                                                  Returns void

                                                                                energyReceive

                                                                                • energyReceive(type: string, amount: number, voltage: number): number
                                                                                • Parameters

                                                                                  • type: string
                                                                                  • amount: number
                                                                                  • voltage: number

                                                                                  Returns number

                                                                                energyTick

                                                                                • Parameters

                                                                                  Returns void

                                                                                getDefaultDrop

                                                                                • getDefaultDrop(): number
                                                                                • Returns number

                                                                                getEnergyStorage

                                                                                • getEnergyStorage(): number
                                                                                • Returns number

                                                                                getExplosionPower

                                                                                • getExplosionPower(): number
                                                                                • Returns number

                                                                                getFacing

                                                                                • getFacing(): number
                                                                                • Returns number

                                                                                getInterruptSound

                                                                                • getInterruptSound(): string
                                                                                • Returns string

                                                                                getMaxPacketSize

                                                                                • getMaxPacketSize(): number
                                                                                • Returns number

                                                                                getOperationSound

                                                                                • getOperationSound(): string
                                                                                • Returns string

                                                                                getRelativeEnergy

                                                                                • getRelativeEnergy(): number
                                                                                • Returns number

                                                                                getScreenByName

                                                                                • getScreenByName(): IWindow
                                                                                • Returns IWindow

                                                                                getScreenName

                                                                                • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                • Parameters

                                                                                  • player: number
                                                                                  • coords: ItemUseCoordinates

                                                                                  Returns string

                                                                                getStartingSound

                                                                                • getStartingSound(): string
                                                                                • Returns string

                                                                                getTier

                                                                                • getTier(): number
                                                                                • Returns number

                                                                                init

                                                                                • init(): void
                                                                                • @deprecated

                                                                                  Returns void

                                                                                isConductor

                                                                                • isConductor(type: string): boolean
                                                                                • Parameters

                                                                                  • type: string

                                                                                  Returns boolean

                                                                                load

                                                                                • load(): void
                                                                                • @deprecated

                                                                                  Returns void

                                                                                onCheckerTick

                                                                                • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                • Parameters

                                                                                  • isInitialized: boolean
                                                                                  • isLoaded: boolean
                                                                                  • wasLoaded: boolean

                                                                                  Returns void

                                                                                onCreate

                                                                                • onCreate(): void
                                                                                • Called when a TileEntity is created


                                                                                  Returns void

                                                                                onInit

                                                                                • onInit(): void
                                                                                • Called when a TileEntity is initialised in the world


                                                                                  Returns void

                                                                                onItemClick

                                                                                • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                • Parameters

                                                                                  • id: number
                                                                                  • count: number
                                                                                  • data: number
                                                                                  • coords: ItemUseCoordinates
                                                                                  • player: number
                                                                                  • extra: ItemExtraData

                                                                                  Returns boolean

                                                                                onItemUse

                                                                                • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                • 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

                                                                                • onLoad(): void
                                                                                • Called when a chunk with TileEntity is loaded


                                                                                  Returns void

                                                                                onRedstoneUpdate

                                                                                • onRedstoneUpdate(signal: number): void
                                                                                • Occurs when redstone signal on TileEntity block was updated


                                                                                  Parameters

                                                                                  • signal: number

                                                                                    signal power (0-15)

                                                                                  Returns void

                                                                                onTick

                                                                                • onTick(): void
                                                                                • Called every tick and should be used for all the updates of the TileEntity


                                                                                  Returns void

                                                                                onUnload

                                                                                • onUnload(): void
                                                                                • Called when a chunk with TileEntity is unloaded


                                                                                  Returns void

                                                                                preventClick

                                                                                • preventClick(): void
                                                                                • Prevents all actions on click


                                                                                  Returns void

                                                                                projectileHit

                                                                                • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                • Parameters

                                                                                  • coords: ItemUseCoordinates
                                                                                  • target: ProjectileHitTarget

                                                                                  Returns void

                                                                                rebuildGrid

                                                                                • rebuildGrid(): void
                                                                                • Returns void

                                                                                redstone

                                                                                • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                • @deprecated

                                                                                  Parameters

                                                                                  • params: { onLoad: boolean; power: number; signal: number }
                                                                                    • onLoad: boolean
                                                                                    • power: number
                                                                                    • signal: number

                                                                                  Returns void

                                                                                renderModel

                                                                                • renderModel(): void
                                                                                • Returns void

                                                                                requireMoreLiquid

                                                                                • requireMoreLiquid(liquid: string, amount: number): void
                                                                                • Parameters

                                                                                  • liquid: string
                                                                                  • amount: number

                                                                                  Returns void

                                                                                selfDestroy

                                                                                • selfDestroy(): void
                                                                                • Returns void

                                                                                setActive

                                                                                • setActive(isActive: boolean): void
                                                                                • Parameters

                                                                                  • isActive: boolean

                                                                                  Returns void

                                                                                setFacing

                                                                                • setFacing(side: number): boolean
                                                                                • Parameters

                                                                                  • side: number

                                                                                  Returns boolean

                                                                                setLiquidScale

                                                                                • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                • Parameters

                                                                                  • container: any
                                                                                  • window: any
                                                                                  • content: any
                                                                                  • data: { amount: number; liquid: string; scale: string }
                                                                                    • amount: number
                                                                                    • liquid: string
                                                                                    • scale: string

                                                                                  Returns void

                                                                                setupContainer

                                                                                • setupContainer(): void
                                                                                • Returns void

                                                                                startPlaySound

                                                                                • startPlaySound(): void
                                                                                • Returns void

                                                                                stopPlaySound

                                                                                • stopPlaySound(): void
                                                                                • Returns void

                                                                                tick

                                                                                • tick(): void
                                                                                • @deprecated

                                                                                  Returns void

                                                                                unload

                                                                                • unload(): void
                                                                                • @deprecated

                                                                                  Returns void

                                                                                updateLiquidScale

                                                                                • updateLiquidScale(scale: string, liquid: string): void
                                                                                • Parameters

                                                                                  • scale: string
                                                                                  • liquid: string

                                                                                  Returns void

                                                                                InductionFurnace

                                                                                InductionFurnace:

                                                                                constructor

                                                                                __clientMethods

                                                                                __clientMethods: {}

                                                                                Type declaration

                                                                                • [key string]: boolean

                                                                                __containerEvents

                                                                                __containerEvents: {}

                                                                                Type declaration

                                                                                __initialized

                                                                                __initialized: boolean

                                                                                __networkEvents

                                                                                __networkEvents: {}

                                                                                Type declaration

                                                                                audioSource

                                                                                audioSource: AudioSource

                                                                                readonlyblockID

                                                                                blockID: number

                                                                                blockSource

                                                                                blockSource: BlockSource

                                                                                click

                                                                                click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                Type declaration

                                                                                  • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                  • Parameters

                                                                                    • id: number
                                                                                    • count: number
                                                                                    • data: number
                                                                                    • coords: ItemUseCoordinates
                                                                                    • player: number
                                                                                    • extra: ItemExtraData

                                                                                    Returns boolean | void

                                                                                client

                                                                                client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                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
                                                                                    • (): void
                                                                                    • Returns void

                                                                                • tick: () => void
                                                                                    • (): void
                                                                                    • Returns void

                                                                                • unload: () => void
                                                                                    • (): void
                                                                                    • Returns void

                                                                                container

                                                                                container: ItemContainer

                                                                                containerEvents

                                                                                containerEvents: {}

                                                                                Type declaration

                                                                                • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                data

                                                                                data: { energy: number; heat: number; progress: number }

                                                                                Type declaration

                                                                                • energy: number
                                                                                • heat: number
                                                                                • progress: number

                                                                                defaultDrop

                                                                                defaultDrop: number

                                                                                optionaldefaultEnergyDemand

                                                                                defaultEnergyDemand?: number

                                                                                defaultEnergyStorage

                                                                                defaultEnergyStorage: number

                                                                                optionaldefaultProcessTime

                                                                                defaultProcessTime?: number

                                                                                defaultTier

                                                                                defaultTier: number

                                                                                defaultValues

                                                                                defaultValues: { energy: number; heat: number; progress: number }

                                                                                Type declaration

                                                                                • energy: number
                                                                                • heat: number
                                                                                • progress: number

                                                                                readonlydimension

                                                                                dimension: number

                                                                                energyDemand

                                                                                energyDemand: number

                                                                                energyNode

                                                                                energyNode: EnergyTileNode

                                                                                energyStorage

                                                                                energyStorage: number

                                                                                energyTypes

                                                                                energyTypes: object

                                                                                events

                                                                                events: {}

                                                                                Type declaration

                                                                                • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                finishingSound

                                                                                finishingSound: number

                                                                                getGuiScreen

                                                                                getGuiScreen: () => Nullable<IWindow>

                                                                                Type declaration

                                                                                  • (): Nullable<IWindow>
                                                                                  • Returns Nullable<IWindow>

                                                                                isHeating

                                                                                isHeating: boolean

                                                                                isLoaded

                                                                                isLoaded: boolean

                                                                                isPowered

                                                                                isPowered: boolean

                                                                                liquidStorage

                                                                                liquidStorage: Storage

                                                                                networkData

                                                                                networkData: SyncedNetworkData

                                                                                networkEntity

                                                                                networkEntity: NetworkEntity

                                                                                networkEntityType

                                                                                networkEntityType: NetworkEntityType

                                                                                networkEntityTypeName

                                                                                networkEntityTypeName: string

                                                                                noupdate

                                                                                noupdate: boolean

                                                                                optionalonConnectionPlayer

                                                                                onConnectionPlayer?: (client: NetworkClient) => void

                                                                                Type declaration

                                                                                  • (client: NetworkClient): void
                                                                                  • Parameters

                                                                                    • client: NetworkClient

                                                                                    Returns void

                                                                                optionalonDisconnectionPlayer

                                                                                onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                Type declaration

                                                                                  • (client: NetworkClient): void
                                                                                  • Parameters

                                                                                    • client: NetworkClient

                                                                                    Returns void

                                                                                optionalprocessTime

                                                                                processTime?: number

                                                                                region

                                                                                region: WorldRegion

                                                                                Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                remove

                                                                                remove: boolean

                                                                                sendPacket

                                                                                sendPacket: (name: string, data: object) => {}

                                                                                Type declaration

                                                                                  • (name: string, data: object): {}
                                                                                  • Parameters

                                                                                    • name: string
                                                                                    • data: object

                                                                                    Returns {}

                                                                                  sendResponse

                                                                                  sendResponse: (packetName: string, someData: object) => {}

                                                                                  Type declaration

                                                                                    • (packetName: string, someData: object): {}
                                                                                    • Parameters

                                                                                      • packetName: string
                                                                                      • someData: object

                                                                                      Returns {}

                                                                                    tier

                                                                                    tier: number

                                                                                    update

                                                                                    update: () => void

                                                                                    Type declaration

                                                                                      • (): void
                                                                                      • Returns void

                                                                                    upgrades

                                                                                    upgrades: string[]

                                                                                    readonlyuseNetworkItemContainer

                                                                                    useNetworkItemContainer: boolean

                                                                                    x

                                                                                    x: number

                                                                                    y

                                                                                    y: number

                                                                                    z

                                                                                    z: number

                                                                                    addLiquidTank

                                                                                    • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                    • Parameters

                                                                                      • name: string
                                                                                      • limit: number
                                                                                      • optionalliquids: string[]

                                                                                      Returns LiquidTank

                                                                                    adjustDrop

                                                                                    • adjustDrop(item: ItemInstance): ItemInstance
                                                                                    • Parameters

                                                                                      • item: ItemInstance

                                                                                      Returns ItemInstance

                                                                                    canExtractEnergy

                                                                                    • canExtractEnergy(side: number, type: string): boolean
                                                                                    • Parameters

                                                                                      • side: number
                                                                                      • type: string

                                                                                      Returns boolean

                                                                                    canReceiveEnergy

                                                                                    • canReceiveEnergy(side: number, type: string): boolean
                                                                                    • Parameters

                                                                                      • side: number
                                                                                      • type: string

                                                                                      Returns boolean

                                                                                    canRotate

                                                                                    • canRotate(side: number): boolean
                                                                                    • Parameters

                                                                                      • side: number

                                                                                      Returns boolean

                                                                                    chargeSlot

                                                                                    • chargeSlot(slotName: string): void
                                                                                    • Parameters

                                                                                      • slotName: string

                                                                                      Returns void

                                                                                    checkResult

                                                                                    • checkResult(result: RecipeData, slot: ItemContainerSlot): boolean
                                                                                    • Parameters

                                                                                      Returns boolean

                                                                                    clientLoad

                                                                                    • clientLoad(): void
                                                                                    • Called when the client copy is created


                                                                                      Returns void

                                                                                    clientTick

                                                                                    • clientTick(): void
                                                                                    • Called every tick on client thread


                                                                                      Returns void

                                                                                    clientUnload

                                                                                    • clientUnload(): void
                                                                                    • Called on destroying the client copy


                                                                                      Returns void

                                                                                    created

                                                                                    • created(): void
                                                                                    • Returns void

                                                                                    decreaseSlot

                                                                                    • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                    • Parameters

                                                                                      • slot: ItemContainerSlot
                                                                                      • count: number

                                                                                      Returns void

                                                                                    destroy

                                                                                    • destroy(): boolean
                                                                                    • Returns boolean

                                                                                    destroyBlock

                                                                                    • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                    • Parameters

                                                                                      • coords: ItemUseCoordinates
                                                                                      • player: number

                                                                                      Returns void

                                                                                    dischargeSlot

                                                                                    • dischargeSlot(slotName: string): void
                                                                                    • Parameters

                                                                                      • slotName: string

                                                                                      Returns void

                                                                                    energyReceive

                                                                                    • energyReceive(type: string, amount: number, voltage: number): number
                                                                                    • Parameters

                                                                                      • type: string
                                                                                      • amount: number
                                                                                      • voltage: number

                                                                                      Returns number

                                                                                    energyTick

                                                                                    • Parameters

                                                                                      Returns void

                                                                                    getDefaultDrop

                                                                                    • getDefaultDrop(): number
                                                                                    • Returns number

                                                                                    getEnergyStorage

                                                                                    • getEnergyStorage(): number
                                                                                    • Returns number

                                                                                    getExplosionPower

                                                                                    • getExplosionPower(): number
                                                                                    • Returns number

                                                                                    getFacing

                                                                                    • getFacing(): number
                                                                                    • Returns number

                                                                                    getInterruptSound

                                                                                    • getInterruptSound(): string
                                                                                    • Returns string

                                                                                    getMaxPacketSize

                                                                                    • getMaxPacketSize(): number
                                                                                    • Returns number

                                                                                    getOperationSound

                                                                                    • getOperationSound(): string
                                                                                    • Returns string

                                                                                    getRecipeResult

                                                                                    • getRecipeResult(id: number, data: number): ItemInstance
                                                                                    • Parameters

                                                                                      • id: number
                                                                                      • data: number

                                                                                      Returns ItemInstance

                                                                                    getRelativeEnergy

                                                                                    • getRelativeEnergy(): number
                                                                                    • Returns number

                                                                                    getScreenByName

                                                                                    • getScreenByName(): IWindow
                                                                                    • Returns IWindow

                                                                                    getScreenName

                                                                                    • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                    • Parameters

                                                                                      • player: number
                                                                                      • coords: ItemUseCoordinates

                                                                                      Returns string

                                                                                    getStartingSound

                                                                                    • getStartingSound(): string
                                                                                    • Returns string

                                                                                    getTier

                                                                                    • getTier(): number
                                                                                    • Returns number

                                                                                    init

                                                                                    • init(): void
                                                                                    • @deprecated

                                                                                      Returns void

                                                                                    isConductor

                                                                                    • isConductor(type: string): boolean
                                                                                    • Parameters

                                                                                      • type: string

                                                                                      Returns boolean

                                                                                    load

                                                                                    • load(): void
                                                                                    • @deprecated

                                                                                      Returns void

                                                                                    onCheckerTick

                                                                                    • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                    • Parameters

                                                                                      • isInitialized: boolean
                                                                                      • isLoaded: boolean
                                                                                      • wasLoaded: boolean

                                                                                      Returns void

                                                                                    onCreate

                                                                                    • onCreate(): void
                                                                                    • Called when a TileEntity is created


                                                                                      Returns void

                                                                                    onInit

                                                                                    • onInit(): void
                                                                                    • Called when a TileEntity is initialised in the world


                                                                                      Returns void

                                                                                    onItemClick

                                                                                    • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                    • Parameters

                                                                                      • id: number
                                                                                      • count: number
                                                                                      • data: number
                                                                                      • coords: ItemUseCoordinates
                                                                                      • player: number
                                                                                      • extra: ItemExtraData

                                                                                      Returns boolean

                                                                                    onItemUse

                                                                                    • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                    • 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

                                                                                    • onLoad(): void
                                                                                    • Called when a chunk with TileEntity is loaded


                                                                                      Returns void

                                                                                    onRedstoneUpdate

                                                                                    • onRedstoneUpdate(signal: number): void
                                                                                    • Occurs when redstone signal on TileEntity block was updated


                                                                                      Parameters

                                                                                      • signal: number

                                                                                        signal power (0-15)

                                                                                      Returns void

                                                                                    onTick

                                                                                    • onTick(): void
                                                                                    • Called every tick and should be used for all the updates of the TileEntity


                                                                                      Returns void

                                                                                    onUnload

                                                                                    • onUnload(): void
                                                                                    • Called when a chunk with TileEntity is unloaded


                                                                                      Returns void

                                                                                    preventClick

                                                                                    • preventClick(): void
                                                                                    • Prevents all actions on click


                                                                                      Returns void

                                                                                    projectileHit

                                                                                    • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                    • Parameters

                                                                                      • coords: ItemUseCoordinates
                                                                                      • target: ProjectileHitTarget

                                                                                      Returns void

                                                                                    putResult

                                                                                    • putResult(result: RecipeData, sourceSlot: ItemContainerSlot, resultSlot: ItemContainerSlot): void
                                                                                    • Parameters

                                                                                      • result: RecipeData
                                                                                      • sourceSlot: ItemContainerSlot
                                                                                      • resultSlot: ItemContainerSlot

                                                                                      Returns void

                                                                                    rebuildGrid

                                                                                    • rebuildGrid(): void
                                                                                    • Returns void

                                                                                    redstone

                                                                                    • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                    • @deprecated

                                                                                      Parameters

                                                                                      • params: { onLoad: boolean; power: number; signal: number }
                                                                                        • onLoad: boolean
                                                                                        • power: number
                                                                                        • signal: number

                                                                                      Returns void

                                                                                    renderModel

                                                                                    • renderModel(): void
                                                                                    • Returns void

                                                                                    requireMoreLiquid

                                                                                    • requireMoreLiquid(liquid: string, amount: number): void
                                                                                    • Parameters

                                                                                      • liquid: string
                                                                                      • amount: number

                                                                                      Returns void

                                                                                    selfDestroy

                                                                                    • selfDestroy(): void
                                                                                    • Returns void

                                                                                    setActive

                                                                                    • setActive(isActive: boolean): void
                                                                                    • Parameters

                                                                                      • isActive: boolean

                                                                                      Returns void

                                                                                    setFacing

                                                                                    • setFacing(side: number): boolean
                                                                                    • Parameters

                                                                                      • side: number

                                                                                      Returns boolean

                                                                                    setLiquidScale

                                                                                    • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                    • Parameters

                                                                                      • container: any
                                                                                      • window: any
                                                                                      • content: any
                                                                                      • data: { amount: number; liquid: string; scale: string }
                                                                                        • amount: number
                                                                                        • liquid: string
                                                                                        • scale: string

                                                                                      Returns void

                                                                                    setupContainer

                                                                                    • setupContainer(): void
                                                                                    • Returns void

                                                                                    startPlaySound

                                                                                    • startPlaySound(): void
                                                                                    • Returns void

                                                                                    stopPlaySound

                                                                                    • stopPlaySound(): void
                                                                                    • Returns void

                                                                                    tick

                                                                                    • tick(): void
                                                                                    • @deprecated

                                                                                      Returns void

                                                                                    unload

                                                                                    • unload(): void
                                                                                    • @deprecated

                                                                                      Returns void

                                                                                    updateLiquidScale

                                                                                    • updateLiquidScale(scale: string, liquid: string): void
                                                                                    • Parameters

                                                                                      • scale: string
                                                                                      • liquid: string

                                                                                      Returns void

                                                                                    useUpgrades

                                                                                    • Returns UpgradeSet

                                                                                    IronFurnace

                                                                                    IronFurnace:

                                                                                    constructor

                                                                                    • Returns IronFurnace

                                                                                    __clientMethods

                                                                                    __clientMethods: {}

                                                                                    Type declaration

                                                                                    • [key string]: boolean

                                                                                    __containerEvents

                                                                                    __containerEvents: {}

                                                                                    Type declaration

                                                                                    __initialized

                                                                                    __initialized: boolean

                                                                                    __networkEvents

                                                                                    __networkEvents: {}

                                                                                    Type declaration

                                                                                    audioSource

                                                                                    audioSource: AudioSource

                                                                                    readonlyblockID

                                                                                    blockID: number

                                                                                    blockSource

                                                                                    blockSource: BlockSource

                                                                                    click

                                                                                    click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                    Type declaration

                                                                                      • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                      • Parameters

                                                                                        • id: number
                                                                                        • count: number
                                                                                        • data: number
                                                                                        • coords: ItemUseCoordinates
                                                                                        • player: number
                                                                                        • extra: ItemExtraData

                                                                                        Returns boolean | void

                                                                                    client

                                                                                    client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                    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
                                                                                        • (): void
                                                                                        • Returns void

                                                                                    • tick: () => void
                                                                                        • (): void
                                                                                        • Returns void

                                                                                    • unload: () => void
                                                                                        • (): void
                                                                                        • Returns void

                                                                                    container

                                                                                    container: ItemContainer

                                                                                    containerEvents

                                                                                    containerEvents: {}

                                                                                    Type declaration

                                                                                    • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                    data

                                                                                    data: {}

                                                                                    Type declaration

                                                                                    • [key string]: any

                                                                                    optionaldefaultDrop

                                                                                    defaultDrop?: number

                                                                                    defaultValues

                                                                                    defaultValues: { burn: number; burnMax: number; progress: number }

                                                                                    Type declaration

                                                                                    • burn: number
                                                                                    • burnMax: number
                                                                                    • progress: number

                                                                                    readonlydimension

                                                                                    dimension: number

                                                                                    events

                                                                                    events: {}

                                                                                    Type declaration

                                                                                    • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                    finishingSound

                                                                                    finishingSound: number

                                                                                    getGuiScreen

                                                                                    getGuiScreen: () => Nullable<IWindow>

                                                                                    Type declaration

                                                                                      • (): Nullable<IWindow>
                                                                                      • Returns Nullable<IWindow>

                                                                                    isLoaded

                                                                                    isLoaded: boolean

                                                                                    liquidStorage

                                                                                    liquidStorage: Storage

                                                                                    networkData

                                                                                    networkData: SyncedNetworkData

                                                                                    networkEntity

                                                                                    networkEntity: NetworkEntity

                                                                                    networkEntityType

                                                                                    networkEntityType: NetworkEntityType

                                                                                    networkEntityTypeName

                                                                                    networkEntityTypeName: string

                                                                                    noupdate

                                                                                    noupdate: boolean

                                                                                    optionalonConnectionPlayer

                                                                                    onConnectionPlayer?: (client: NetworkClient) => void

                                                                                    Type declaration

                                                                                      • (client: NetworkClient): void
                                                                                      • Parameters

                                                                                        • client: NetworkClient

                                                                                        Returns void

                                                                                    optionalonDisconnectionPlayer

                                                                                    onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                    Type declaration

                                                                                      • (client: NetworkClient): void
                                                                                      • Parameters

                                                                                        • client: NetworkClient

                                                                                        Returns void

                                                                                    region

                                                                                    region: WorldRegion

                                                                                    Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                    remove

                                                                                    remove: boolean

                                                                                    sendPacket

                                                                                    sendPacket: (name: string, data: object) => {}

                                                                                    Type declaration

                                                                                      • (name: string, data: object): {}
                                                                                      • Parameters

                                                                                        • name: string
                                                                                        • data: object

                                                                                        Returns {}

                                                                                      sendResponse

                                                                                      sendResponse: (packetName: string, someData: object) => {}

                                                                                      Type declaration

                                                                                        • (packetName: string, someData: object): {}
                                                                                        • Parameters

                                                                                          • packetName: string
                                                                                          • someData: object

                                                                                          Returns {}

                                                                                        update

                                                                                        update: () => void

                                                                                        Type declaration

                                                                                          • (): void
                                                                                          • Returns void

                                                                                        optionalupgrades

                                                                                        upgrades?: string[]

                                                                                        readonlyuseNetworkItemContainer

                                                                                        useNetworkItemContainer: boolean

                                                                                        x

                                                                                        x: number

                                                                                        y

                                                                                        y: number

                                                                                        z

                                                                                        z: number

                                                                                        addLiquidTank

                                                                                        • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                        • Parameters

                                                                                          • name: string
                                                                                          • limit: number
                                                                                          • optionalliquids: string[]

                                                                                          Returns LiquidTank

                                                                                        adjustDrop

                                                                                        • adjustDrop(item: ItemInstance): ItemInstance
                                                                                        • Parameters

                                                                                          • item: ItemInstance

                                                                                          Returns ItemInstance

                                                                                        canRotate

                                                                                        • canRotate(side: number): boolean
                                                                                        • Parameters

                                                                                          • side: number

                                                                                          Returns boolean

                                                                                        clientLoad

                                                                                        • clientLoad(): void
                                                                                        • Called when the client copy is created


                                                                                          Returns void

                                                                                        clientTick

                                                                                        • clientTick(): void
                                                                                        • Called every tick on client thread


                                                                                          Returns void

                                                                                        clientUnload

                                                                                        • clientUnload(): void
                                                                                        • Called on destroying the client copy


                                                                                          Returns void

                                                                                        consumeFuel

                                                                                        • consumeFuel(): number
                                                                                        • Returns number

                                                                                        created

                                                                                        • created(): void
                                                                                        • Returns void

                                                                                        decreaseSlot

                                                                                        • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                        • Parameters

                                                                                          • slot: ItemContainerSlot
                                                                                          • count: number

                                                                                          Returns void

                                                                                        destroy

                                                                                        • destroy(): boolean
                                                                                        • Returns boolean

                                                                                        destroyBlock

                                                                                        • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                        • Parameters

                                                                                          • coords: ItemUseCoordinates
                                                                                          • player: number

                                                                                          Returns void

                                                                                        getDefaultDrop

                                                                                        • getDefaultDrop(): number
                                                                                        • Returns number

                                                                                        getFacing

                                                                                        • getFacing(): number
                                                                                        • Returns number

                                                                                        getInterruptSound

                                                                                        • getInterruptSound(): string
                                                                                        • Returns string

                                                                                        getOperationSound

                                                                                        • getOperationSound(): string
                                                                                        • Returns string

                                                                                        getRecipeResult

                                                                                        • getRecipeResult(id: number, data: number): ItemInstance
                                                                                        • Parameters

                                                                                          • id: number
                                                                                          • data: number

                                                                                          Returns ItemInstance

                                                                                        getScreenByName

                                                                                        • getScreenByName(): IWindow
                                                                                        • Returns IWindow

                                                                                        getScreenName

                                                                                        • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                        • Parameters

                                                                                          • player: number
                                                                                          • coords: ItemUseCoordinates

                                                                                          Returns string

                                                                                        getStartingSound

                                                                                        • getStartingSound(): string
                                                                                        • Returns string

                                                                                        init

                                                                                        • init(): void
                                                                                        • @deprecated

                                                                                          Returns void

                                                                                        load

                                                                                        • load(): void
                                                                                        • @deprecated

                                                                                          Returns void

                                                                                        onCheckerTick

                                                                                        • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                        • Parameters

                                                                                          • isInitialized: boolean
                                                                                          • isLoaded: boolean
                                                                                          • wasLoaded: boolean

                                                                                          Returns void

                                                                                        onCreate

                                                                                        • onCreate(): void
                                                                                        • Called when a TileEntity is created


                                                                                          Returns void

                                                                                        onInit

                                                                                        • onInit(): void
                                                                                        • Called when a TileEntity is initialised in the world


                                                                                          Returns void

                                                                                        onItemClick

                                                                                        • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                        • Parameters

                                                                                          • id: number
                                                                                          • count: number
                                                                                          • data: number
                                                                                          • coords: ItemUseCoordinates
                                                                                          • player: number
                                                                                          • extra: ItemExtraData

                                                                                          Returns boolean

                                                                                        onItemUse

                                                                                        • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                        • 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

                                                                                        • onLoad(): void
                                                                                        • Called when a chunk with TileEntity is loaded


                                                                                          Returns void

                                                                                        onRedstoneUpdate

                                                                                        • onRedstoneUpdate(signal: number): void
                                                                                        • Occurs when redstone signal on TileEntity block was updated


                                                                                          Parameters

                                                                                          • signal: number

                                                                                            signal power (0-15)

                                                                                          Returns void

                                                                                        onTick

                                                                                        • onTick(): void
                                                                                        • Called every tick and should be used for all the updates of the TileEntity


                                                                                          Returns void

                                                                                        onUnload

                                                                                        • onUnload(): void
                                                                                        • Called when a chunk with TileEntity is unloaded


                                                                                          Returns void

                                                                                        preventClick

                                                                                        • preventClick(): void
                                                                                        • Prevents all actions on click


                                                                                          Returns void

                                                                                        projectileHit

                                                                                        • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                        • Parameters

                                                                                          • coords: ItemUseCoordinates
                                                                                          • target: ProjectileHitTarget

                                                                                          Returns void

                                                                                        redstone

                                                                                        • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                        • @deprecated

                                                                                          Parameters

                                                                                          • params: { onLoad: boolean; power: number; signal: number }
                                                                                            • onLoad: boolean
                                                                                            • power: number
                                                                                            • signal: number

                                                                                          Returns void

                                                                                        renderModel

                                                                                        • renderModel(): void
                                                                                        • Returns void

                                                                                        requireMoreLiquid

                                                                                        • requireMoreLiquid(liquid: string, amount: number): void
                                                                                        • Parameters

                                                                                          • liquid: string
                                                                                          • amount: number

                                                                                          Returns void

                                                                                        selfDestroy

                                                                                        • selfDestroy(): void
                                                                                        • Returns void

                                                                                        setActive

                                                                                        • setActive(isActive: boolean): void
                                                                                        • Parameters

                                                                                          • isActive: boolean

                                                                                          Returns void

                                                                                        setFacing

                                                                                        • setFacing(side: number): boolean
                                                                                        • Parameters

                                                                                          • side: number

                                                                                          Returns boolean

                                                                                        setLiquidScale

                                                                                        • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                        • Parameters

                                                                                          • container: any
                                                                                          • window: any
                                                                                          • content: any
                                                                                          • data: { amount: number; liquid: string; scale: string }
                                                                                            • amount: number
                                                                                            • liquid: string
                                                                                            • scale: string

                                                                                          Returns void

                                                                                        setupContainer

                                                                                        • setupContainer(): void
                                                                                        • Returns void

                                                                                        startPlaySound

                                                                                        • startPlaySound(): void
                                                                                        • Returns void

                                                                                        stopPlaySound

                                                                                        • stopPlaySound(): void
                                                                                        • Returns void

                                                                                        tick

                                                                                        • tick(): void
                                                                                        • @deprecated

                                                                                          Returns void

                                                                                        unload

                                                                                        • unload(): void
                                                                                        • @deprecated

                                                                                          Returns void

                                                                                        updateLiquidScale

                                                                                        • updateLiquidScale(scale: string, liquid: string): void
                                                                                        • Parameters

                                                                                          • scale: string
                                                                                          • liquid: string

                                                                                          Returns void

                                                                                        Macerator

                                                                                        Macerator:

                                                                                        constructor

                                                                                        • Returns Macerator

                                                                                        __clientMethods

                                                                                        __clientMethods: {}

                                                                                        Type declaration

                                                                                        • [key string]: boolean

                                                                                        __containerEvents

                                                                                        __containerEvents: {}

                                                                                        Type declaration

                                                                                        __initialized

                                                                                        __initialized: boolean

                                                                                        __networkEvents

                                                                                        __networkEvents: {}

                                                                                        Type declaration

                                                                                        audioSource

                                                                                        audioSource: AudioSource

                                                                                        readonlyblockID

                                                                                        blockID: number

                                                                                        blockSource

                                                                                        blockSource: BlockSource

                                                                                        click

                                                                                        click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                        Type declaration

                                                                                          • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                          • Parameters

                                                                                            • id: number
                                                                                            • count: number
                                                                                            • data: number
                                                                                            • coords: ItemUseCoordinates
                                                                                            • player: number
                                                                                            • extra: ItemExtraData

                                                                                            Returns boolean | void

                                                                                        client

                                                                                        client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                        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
                                                                                            • (): void
                                                                                            • Returns void

                                                                                        • tick: () => void
                                                                                            • (): void
                                                                                            • Returns void

                                                                                        • unload: () => void
                                                                                            • (): void
                                                                                            • Returns void

                                                                                        container

                                                                                        container: ItemContainer

                                                                                        containerEvents

                                                                                        containerEvents: {}

                                                                                        Type declaration

                                                                                        • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                        data

                                                                                        data: { energy: number; progress: number }

                                                                                        Type declaration

                                                                                        • energy: number
                                                                                        • progress: number

                                                                                        defaultDrop

                                                                                        defaultDrop: number

                                                                                        defaultEnergyDemand

                                                                                        defaultEnergyDemand: number

                                                                                        defaultEnergyStorage

                                                                                        defaultEnergyStorage: number

                                                                                        defaultProcessTime

                                                                                        defaultProcessTime: number

                                                                                        defaultTier

                                                                                        defaultTier: number

                                                                                        defaultValues

                                                                                        defaultValues: { energy: number; progress: number }

                                                                                        Type declaration

                                                                                        • energy: number
                                                                                        • progress: number

                                                                                        readonlydimension

                                                                                        dimension: number

                                                                                        optionalenergyDemand

                                                                                        energyDemand?: number

                                                                                        energyNode

                                                                                        energyNode: EnergyTileNode

                                                                                        energyStorage

                                                                                        energyStorage: number

                                                                                        energyTypes

                                                                                        energyTypes: object

                                                                                        events

                                                                                        events: {}

                                                                                        Type declaration

                                                                                        • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                        finishingSound

                                                                                        finishingSound: number

                                                                                        getGuiScreen

                                                                                        getGuiScreen: () => Nullable<IWindow>

                                                                                        Type declaration

                                                                                          • (): Nullable<IWindow>
                                                                                          • Returns Nullable<IWindow>

                                                                                        isLoaded

                                                                                        isLoaded: boolean

                                                                                        liquidStorage

                                                                                        liquidStorage: Storage

                                                                                        networkData

                                                                                        networkData: SyncedNetworkData

                                                                                        networkEntity

                                                                                        networkEntity: NetworkEntity

                                                                                        networkEntityType

                                                                                        networkEntityType: NetworkEntityType

                                                                                        networkEntityTypeName

                                                                                        networkEntityTypeName: string

                                                                                        noupdate

                                                                                        noupdate: boolean

                                                                                        optionalonConnectionPlayer

                                                                                        onConnectionPlayer?: (client: NetworkClient) => void

                                                                                        Type declaration

                                                                                          • (client: NetworkClient): void
                                                                                          • Parameters

                                                                                            • client: NetworkClient

                                                                                            Returns void

                                                                                        optionalonDisconnectionPlayer

                                                                                        onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                        Type declaration

                                                                                          • (client: NetworkClient): void
                                                                                          • Parameters

                                                                                            • client: NetworkClient

                                                                                            Returns void

                                                                                        optionalprocessTime

                                                                                        processTime?: number

                                                                                        region

                                                                                        region: WorldRegion

                                                                                        Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                        remove

                                                                                        remove: boolean

                                                                                        sendPacket

                                                                                        sendPacket: (name: string, data: object) => {}

                                                                                        Type declaration

                                                                                          • (name: string, data: object): {}
                                                                                          • Parameters

                                                                                            • name: string
                                                                                            • data: object

                                                                                            Returns {}

                                                                                          sendResponse

                                                                                          sendResponse: (packetName: string, someData: object) => {}

                                                                                          Type declaration

                                                                                            • (packetName: string, someData: object): {}
                                                                                            • Parameters

                                                                                              • packetName: string
                                                                                              • someData: object

                                                                                              Returns {}

                                                                                            tier

                                                                                            tier: number

                                                                                            update

                                                                                            update: () => void

                                                                                            Type declaration

                                                                                              • (): void
                                                                                              • Returns void

                                                                                            upgrades

                                                                                            upgrades: string[]

                                                                                            readonlyuseNetworkItemContainer

                                                                                            useNetworkItemContainer: boolean

                                                                                            x

                                                                                            x: number

                                                                                            y

                                                                                            y: number

                                                                                            z

                                                                                            z: number

                                                                                            addLiquidTank

                                                                                            • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                            • Parameters

                                                                                              • name: string
                                                                                              • limit: number
                                                                                              • optionalliquids: string[]

                                                                                              Returns LiquidTank

                                                                                            adjustDrop

                                                                                            • adjustDrop(item: ItemInstance): ItemInstance
                                                                                            • Parameters

                                                                                              • item: ItemInstance

                                                                                              Returns ItemInstance

                                                                                            canExtractEnergy

                                                                                            • canExtractEnergy(side: number, type: string): boolean
                                                                                            • Parameters

                                                                                              • side: number
                                                                                              • type: string

                                                                                              Returns boolean

                                                                                            canReceiveEnergy

                                                                                            • canReceiveEnergy(side: number, type: string): boolean
                                                                                            • Parameters

                                                                                              • side: number
                                                                                              • type: string

                                                                                              Returns boolean

                                                                                            canRotate

                                                                                            • canRotate(side: number): boolean
                                                                                            • Parameters

                                                                                              • side: number

                                                                                              Returns boolean

                                                                                            chargeSlot

                                                                                            • chargeSlot(slotName: string): void
                                                                                            • Parameters

                                                                                              • slotName: string

                                                                                              Returns void

                                                                                            clientLoad

                                                                                            • clientLoad(): void
                                                                                            • Called when the client copy is created


                                                                                              Returns void

                                                                                            clientTick

                                                                                            • clientTick(): void
                                                                                            • Called every tick on client thread


                                                                                              Returns void

                                                                                            clientUnload

                                                                                            • clientUnload(): void
                                                                                            • Called on destroying the client copy


                                                                                              Returns void

                                                                                            created

                                                                                            • created(): void
                                                                                            • Returns void

                                                                                            decreaseSlot

                                                                                            • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                            • Parameters

                                                                                              • slot: ItemContainerSlot
                                                                                              • count: number

                                                                                              Returns void

                                                                                            destroy

                                                                                            • destroy(): boolean
                                                                                            • Returns boolean

                                                                                            destroyBlock

                                                                                            • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                            • Parameters

                                                                                              • coords: ItemUseCoordinates
                                                                                              • player: number

                                                                                              Returns void

                                                                                            dischargeSlot

                                                                                            • dischargeSlot(slotName: string): void
                                                                                            • Parameters

                                                                                              • slotName: string

                                                                                              Returns void

                                                                                            energyReceive

                                                                                            • energyReceive(type: string, amount: number, voltage: number): number
                                                                                            • Parameters

                                                                                              • type: string
                                                                                              • amount: number
                                                                                              • voltage: number

                                                                                              Returns number

                                                                                            energyTick

                                                                                            • Parameters

                                                                                              Returns void

                                                                                            getDefaultDrop

                                                                                            • getDefaultDrop(): number
                                                                                            • Returns number

                                                                                            getEnergyStorage

                                                                                            • getEnergyStorage(): number
                                                                                            • Returns number

                                                                                            getExplosionPower

                                                                                            • getExplosionPower(): number
                                                                                            • Returns number

                                                                                            getFacing

                                                                                            • getFacing(): number
                                                                                            • Returns number

                                                                                            getInterruptSound

                                                                                            • getInterruptSound(): string
                                                                                            • Returns string

                                                                                            getMaxPacketSize

                                                                                            • getMaxPacketSize(): number
                                                                                            • Returns number

                                                                                            getOperationSound

                                                                                            • getOperationSound(): string
                                                                                            • Returns string

                                                                                            getRecipeResult

                                                                                            • getRecipeResult(id: number, data: number): RecipeData
                                                                                            • Parameters

                                                                                              • id: number
                                                                                              • data: number

                                                                                              Returns RecipeData

                                                                                            getRelativeEnergy

                                                                                            • getRelativeEnergy(): number
                                                                                            • Returns number

                                                                                            getScreenByName

                                                                                            • getScreenByName(): IWindow
                                                                                            • Returns IWindow

                                                                                            getScreenName

                                                                                            • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                            • Parameters

                                                                                              • player: number
                                                                                              • coords: ItemUseCoordinates

                                                                                              Returns string

                                                                                            getStartingSound

                                                                                            • getStartingSound(): string
                                                                                            • Returns string

                                                                                            getTier

                                                                                            • getTier(): number
                                                                                            • Returns number

                                                                                            init

                                                                                            • init(): void
                                                                                            • @deprecated

                                                                                              Returns void

                                                                                            isConductor

                                                                                            • isConductor(type: string): boolean
                                                                                            • Parameters

                                                                                              • type: string

                                                                                              Returns boolean

                                                                                            load

                                                                                            • load(): void
                                                                                            • @deprecated

                                                                                              Returns void

                                                                                            onCheckerTick

                                                                                            • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                            • Parameters

                                                                                              • isInitialized: boolean
                                                                                              • isLoaded: boolean
                                                                                              • wasLoaded: boolean

                                                                                              Returns void

                                                                                            onCreate

                                                                                            • onCreate(): void
                                                                                            • Called when a TileEntity is created


                                                                                              Returns void

                                                                                            onInit

                                                                                            • onInit(): void
                                                                                            • Called when a TileEntity is initialised in the world


                                                                                              Returns void

                                                                                            onItemClick

                                                                                            • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                            • Parameters

                                                                                              • id: number
                                                                                              • count: number
                                                                                              • data: number
                                                                                              • coords: ItemUseCoordinates
                                                                                              • player: number
                                                                                              • extra: ItemExtraData

                                                                                              Returns boolean

                                                                                            onItemUse

                                                                                            • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                            • 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

                                                                                            • onLoad(): void
                                                                                            • Called when a chunk with TileEntity is loaded


                                                                                              Returns void

                                                                                            onRedstoneUpdate

                                                                                            • onRedstoneUpdate(signal: number): void
                                                                                            • Occurs when redstone signal on TileEntity block was updated


                                                                                              Parameters

                                                                                              • signal: number

                                                                                                signal power (0-15)

                                                                                              Returns void

                                                                                            onTick

                                                                                            • onTick(): void
                                                                                            • Called every tick and should be used for all the updates of the TileEntity


                                                                                              Returns void

                                                                                            onUnload

                                                                                            • onUnload(): void
                                                                                            • Called when a chunk with TileEntity is unloaded


                                                                                              Returns void

                                                                                            preventClick

                                                                                            • preventClick(): void
                                                                                            • Prevents all actions on click


                                                                                              Returns void

                                                                                            projectileHit

                                                                                            • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                            • Parameters

                                                                                              • coords: ItemUseCoordinates
                                                                                              • target: ProjectileHitTarget

                                                                                              Returns void

                                                                                            rebuildGrid

                                                                                            • rebuildGrid(): void
                                                                                            • Returns void

                                                                                            redstone

                                                                                            • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                            • @deprecated

                                                                                              Parameters

                                                                                              • params: { onLoad: boolean; power: number; signal: number }
                                                                                                • onLoad: boolean
                                                                                                • power: number
                                                                                                • signal: number

                                                                                              Returns void

                                                                                            renderModel

                                                                                            • renderModel(): void
                                                                                            • Returns void

                                                                                            requireMoreLiquid

                                                                                            • requireMoreLiquid(liquid: string, amount: number): void
                                                                                            • Parameters

                                                                                              • liquid: string
                                                                                              • amount: number

                                                                                              Returns void

                                                                                            selfDestroy

                                                                                            • selfDestroy(): void
                                                                                            • Returns void

                                                                                            setActive

                                                                                            • setActive(isActive: boolean): void
                                                                                            • Parameters

                                                                                              • isActive: boolean

                                                                                              Returns void

                                                                                            setFacing

                                                                                            • setFacing(side: number): boolean
                                                                                            • Parameters

                                                                                              • side: number

                                                                                              Returns boolean

                                                                                            setLiquidScale

                                                                                            • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                            • Parameters

                                                                                              • container: any
                                                                                              • window: any
                                                                                              • content: any
                                                                                              • data: { amount: number; liquid: string; scale: string }
                                                                                                • amount: number
                                                                                                • liquid: string
                                                                                                • scale: string

                                                                                              Returns void

                                                                                            setupContainer

                                                                                            • setupContainer(): void
                                                                                            • Returns void

                                                                                            startPlaySound

                                                                                            • startPlaySound(): void
                                                                                            • Returns void

                                                                                            stopPlaySound

                                                                                            • stopPlaySound(): void
                                                                                            • Returns void

                                                                                            tick

                                                                                            • tick(): void
                                                                                            • @deprecated

                                                                                              Returns void

                                                                                            unload

                                                                                            • unload(): void
                                                                                            • @deprecated

                                                                                              Returns void

                                                                                            updateLiquidScale

                                                                                            • updateLiquidScale(scale: string, liquid: string): void
                                                                                            • Parameters

                                                                                              • scale: string
                                                                                              • liquid: string

                                                                                              Returns void

                                                                                            useUpgrades

                                                                                            • Returns UpgradeSet

                                                                                            abstractMachineBase

                                                                                            MachineBase:

                                                                                            constructor

                                                                                            • Returns MachineBase

                                                                                            __clientMethods

                                                                                            __clientMethods: {}

                                                                                            Type declaration

                                                                                            • [key string]: boolean

                                                                                            __containerEvents

                                                                                            __containerEvents: {}

                                                                                            Type declaration

                                                                                            __initialized

                                                                                            __initialized: boolean

                                                                                            __networkEvents

                                                                                            __networkEvents: {}

                                                                                            Type declaration

                                                                                            audioSource

                                                                                            audioSource: AudioSource

                                                                                            readonlyblockID

                                                                                            blockID: number

                                                                                            blockSource

                                                                                            blockSource: BlockSource

                                                                                            click

                                                                                            click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                            Type declaration

                                                                                              • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                              • Parameters

                                                                                                • id: number
                                                                                                • count: number
                                                                                                • data: number
                                                                                                • coords: ItemUseCoordinates
                                                                                                • player: number
                                                                                                • extra: ItemExtraData

                                                                                                Returns boolean | void

                                                                                            client

                                                                                            client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                            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
                                                                                                • (): void
                                                                                                • Returns void

                                                                                            • tick: () => void
                                                                                                • (): void
                                                                                                • Returns void

                                                                                            • unload: () => void
                                                                                                • (): void
                                                                                                • Returns void

                                                                                            container

                                                                                            container: ItemContainer

                                                                                            containerEvents

                                                                                            containerEvents: {}

                                                                                            Type declaration

                                                                                            • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                            data

                                                                                            data: {}

                                                                                            Type declaration

                                                                                            • [key string]: any

                                                                                            optionaldefaultDrop

                                                                                            defaultDrop?: number

                                                                                            defaultValues

                                                                                            defaultValues: {}

                                                                                            Type declaration

                                                                                              readonlydimension

                                                                                              dimension: number

                                                                                              events

                                                                                              events: {}

                                                                                              Type declaration

                                                                                              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                              finishingSound

                                                                                              finishingSound: number

                                                                                              getGuiScreen

                                                                                              getGuiScreen: () => Nullable<IWindow>

                                                                                              Type declaration

                                                                                                • (): Nullable<IWindow>
                                                                                                • Returns Nullable<IWindow>

                                                                                              isLoaded

                                                                                              isLoaded: boolean

                                                                                              liquidStorage

                                                                                              liquidStorage: Storage

                                                                                              networkData

                                                                                              networkData: SyncedNetworkData

                                                                                              networkEntity

                                                                                              networkEntity: NetworkEntity

                                                                                              networkEntityType

                                                                                              networkEntityType: NetworkEntityType

                                                                                              networkEntityTypeName

                                                                                              networkEntityTypeName: string

                                                                                              noupdate

                                                                                              noupdate: boolean

                                                                                              optionalonConnectionPlayer

                                                                                              onConnectionPlayer?: (client: NetworkClient) => void

                                                                                              Type declaration

                                                                                                • (client: NetworkClient): void
                                                                                                • Parameters

                                                                                                  • client: NetworkClient

                                                                                                  Returns void

                                                                                              optionalonDisconnectionPlayer

                                                                                              onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                              Type declaration

                                                                                                • (client: NetworkClient): void
                                                                                                • Parameters

                                                                                                  • client: NetworkClient

                                                                                                  Returns void

                                                                                              region

                                                                                              region: WorldRegion

                                                                                              Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                              remove

                                                                                              remove: boolean

                                                                                              sendPacket

                                                                                              sendPacket: (name: string, data: object) => {}

                                                                                              Type declaration

                                                                                                • (name: string, data: object): {}
                                                                                                • Parameters

                                                                                                  • name: string
                                                                                                  • data: object

                                                                                                  Returns {}

                                                                                                sendResponse

                                                                                                sendResponse: (packetName: string, someData: object) => {}

                                                                                                Type declaration

                                                                                                  • (packetName: string, someData: object): {}
                                                                                                  • Parameters

                                                                                                    • packetName: string
                                                                                                    • someData: object

                                                                                                    Returns {}

                                                                                                  update

                                                                                                  update: () => void

                                                                                                  Type declaration

                                                                                                    • (): void
                                                                                                    • Returns void

                                                                                                  optionalupgrades

                                                                                                  upgrades?: string[]

                                                                                                  readonlyuseNetworkItemContainer

                                                                                                  useNetworkItemContainer: boolean

                                                                                                  x

                                                                                                  x: number

                                                                                                  y

                                                                                                  y: number

                                                                                                  z

                                                                                                  z: number

                                                                                                  addLiquidTank

                                                                                                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                  • Parameters

                                                                                                    • name: string
                                                                                                    • limit: number
                                                                                                    • optionalliquids: string[]

                                                                                                    Returns LiquidTank

                                                                                                  adjustDrop

                                                                                                  • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                  • Parameters

                                                                                                    • item: ItemInstance

                                                                                                    Returns ItemInstance

                                                                                                  canRotate

                                                                                                  • canRotate(side: number): boolean
                                                                                                  • Parameters

                                                                                                    • side: number

                                                                                                    Returns boolean

                                                                                                  clientLoad

                                                                                                  • clientLoad(): void
                                                                                                  • Called when the client copy is created


                                                                                                    Returns void

                                                                                                  clientTick

                                                                                                  • clientTick(): void
                                                                                                  • Called every tick on client thread


                                                                                                    Returns void

                                                                                                  clientUnload

                                                                                                  • clientUnload(): void
                                                                                                  • Called on destroying the client copy


                                                                                                    Returns void

                                                                                                  created

                                                                                                  • created(): void
                                                                                                  • Returns void

                                                                                                  decreaseSlot

                                                                                                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                  • Parameters

                                                                                                    • slot: ItemContainerSlot
                                                                                                    • count: number

                                                                                                    Returns void

                                                                                                  destroy

                                                                                                  • destroy(): boolean
                                                                                                  • Returns boolean

                                                                                                  destroyBlock

                                                                                                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                  • Parameters

                                                                                                    • coords: ItemUseCoordinates
                                                                                                    • player: number

                                                                                                    Returns void

                                                                                                  getDefaultDrop

                                                                                                  • getDefaultDrop(): number
                                                                                                  • Returns number

                                                                                                  getFacing

                                                                                                  • getFacing(): number
                                                                                                  • Returns number

                                                                                                  getInterruptSound

                                                                                                  • getInterruptSound(): string
                                                                                                  • Returns string

                                                                                                  getOperationSound

                                                                                                  • getOperationSound(): string
                                                                                                  • Returns string

                                                                                                  getScreenByName

                                                                                                  • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                  • Parameters

                                                                                                    • screenName: string
                                                                                                    • container: ItemContainer

                                                                                                    Returns IWindow

                                                                                                  getScreenName

                                                                                                  • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                  • Parameters

                                                                                                    • player: number
                                                                                                    • coords: ItemUseCoordinates

                                                                                                    Returns string

                                                                                                  getStartingSound

                                                                                                  • getStartingSound(): string
                                                                                                  • Returns string

                                                                                                  init

                                                                                                  • init(): void
                                                                                                  • @deprecated

                                                                                                    Returns void

                                                                                                  load

                                                                                                  • load(): void
                                                                                                  • @deprecated

                                                                                                    Returns void

                                                                                                  onCheckerTick

                                                                                                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                  • Parameters

                                                                                                    • isInitialized: boolean
                                                                                                    • isLoaded: boolean
                                                                                                    • wasLoaded: boolean

                                                                                                    Returns void

                                                                                                  onCreate

                                                                                                  • onCreate(): void
                                                                                                  • Called when a TileEntity is created


                                                                                                    Returns void

                                                                                                  onInit

                                                                                                  • onInit(): void
                                                                                                  • Called when a TileEntity is initialised in the world


                                                                                                    Returns void

                                                                                                  onItemClick

                                                                                                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                  • Parameters

                                                                                                    • id: number
                                                                                                    • count: number
                                                                                                    • data: number
                                                                                                    • coords: ItemUseCoordinates
                                                                                                    • player: number
                                                                                                    • extra: ItemExtraData

                                                                                                    Returns boolean

                                                                                                  onItemUse

                                                                                                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                  • 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

                                                                                                  • onLoad(): void
                                                                                                  • Called when a chunk with TileEntity is loaded


                                                                                                    Returns void

                                                                                                  onRedstoneUpdate

                                                                                                  • onRedstoneUpdate(signal: number): void
                                                                                                  • Occurs when redstone signal on TileEntity block was updated


                                                                                                    Parameters

                                                                                                    • signal: number

                                                                                                      signal power (0-15)

                                                                                                    Returns void

                                                                                                  onTick

                                                                                                  • onTick(): void
                                                                                                  • Called every tick and should be used for all the updates of the TileEntity


                                                                                                    Returns void

                                                                                                  onUnload

                                                                                                  • onUnload(): void
                                                                                                  • Called when a chunk with TileEntity is unloaded


                                                                                                    Returns void

                                                                                                  preventClick

                                                                                                  • preventClick(): void
                                                                                                  • Prevents all actions on click


                                                                                                    Returns void

                                                                                                  projectileHit

                                                                                                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                  • Parameters

                                                                                                    • coords: ItemUseCoordinates
                                                                                                    • target: ProjectileHitTarget

                                                                                                    Returns void

                                                                                                  redstone

                                                                                                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                  • @deprecated

                                                                                                    Parameters

                                                                                                    • params: { onLoad: boolean; power: number; signal: number }
                                                                                                      • onLoad: boolean
                                                                                                      • power: number
                                                                                                      • signal: number

                                                                                                    Returns void

                                                                                                  renderModel

                                                                                                  • renderModel(): void
                                                                                                  • Returns void

                                                                                                  requireMoreLiquid

                                                                                                  • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                  • Parameters

                                                                                                    • liquid: string
                                                                                                    • amount: number

                                                                                                    Returns void

                                                                                                  selfDestroy

                                                                                                  • selfDestroy(): void
                                                                                                  • Returns void

                                                                                                  setActive

                                                                                                  • setActive(isActive: boolean): void
                                                                                                  • Parameters

                                                                                                    • isActive: boolean

                                                                                                    Returns void

                                                                                                  setFacing

                                                                                                  • setFacing(side: number): boolean
                                                                                                  • Parameters

                                                                                                    • side: number

                                                                                                    Returns boolean

                                                                                                  setLiquidScale

                                                                                                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                  • Parameters

                                                                                                    • container: any
                                                                                                    • window: any
                                                                                                    • content: any
                                                                                                    • data: { amount: number; liquid: string; scale: string }
                                                                                                      • amount: number
                                                                                                      • liquid: string
                                                                                                      • scale: string

                                                                                                    Returns void

                                                                                                  setupContainer

                                                                                                  • setupContainer(): void
                                                                                                  • Returns void

                                                                                                  startPlaySound

                                                                                                  • startPlaySound(): void
                                                                                                  • Returns void

                                                                                                  stopPlaySound

                                                                                                  • stopPlaySound(): void
                                                                                                  • Returns void

                                                                                                  tick

                                                                                                  • tick(): void
                                                                                                  • @deprecated

                                                                                                    Returns void

                                                                                                  unload

                                                                                                  • unload(): void
                                                                                                  • @deprecated

                                                                                                    Returns void

                                                                                                  updateLiquidScale

                                                                                                  • updateLiquidScale(scale: string, liquid: string): void
                                                                                                  • Parameters

                                                                                                    • scale: string
                                                                                                    • liquid: string

                                                                                                    Returns void

                                                                                                  MassFabricator

                                                                                                  MassFabricator:

                                                                                                  constructor

                                                                                                  __clientMethods

                                                                                                  __clientMethods: {}

                                                                                                  Type declaration

                                                                                                  • [key string]: boolean

                                                                                                  __containerEvents

                                                                                                  __containerEvents: {}

                                                                                                  Type declaration

                                                                                                  __initialized

                                                                                                  __initialized: boolean

                                                                                                  __networkEvents

                                                                                                  __networkEvents: {}

                                                                                                  Type declaration

                                                                                                  audioSource

                                                                                                  audioSource: AudioSource

                                                                                                  readonlyblockID

                                                                                                  blockID: number

                                                                                                  blockSource

                                                                                                  blockSource: BlockSource

                                                                                                  click

                                                                                                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                  Type declaration

                                                                                                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                    • Parameters

                                                                                                      • id: number
                                                                                                      • count: number
                                                                                                      • data: number
                                                                                                      • coords: ItemUseCoordinates
                                                                                                      • player: number
                                                                                                      • extra: ItemExtraData

                                                                                                      Returns boolean | void

                                                                                                  client

                                                                                                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                  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
                                                                                                      • (): void
                                                                                                      • Returns void

                                                                                                  • tick: () => void
                                                                                                      • (): void
                                                                                                      • Returns void

                                                                                                  • unload: () => void
                                                                                                      • (): void
                                                                                                      • Returns void

                                                                                                  container

                                                                                                  container: ItemContainer

                                                                                                  containerEvents

                                                                                                  containerEvents: {}

                                                                                                  Type declaration

                                                                                                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                  data

                                                                                                  data: { catalyser: number; energy: number; isEnabled: boolean; progress: number }

                                                                                                  Type declaration

                                                                                                  • catalyser: number
                                                                                                  • energy: number
                                                                                                  • isEnabled: boolean
                                                                                                  • progress: number

                                                                                                  defaultDrop

                                                                                                  defaultDrop: number

                                                                                                  defaultValues

                                                                                                  defaultValues: { catalyser: number; energy: number; isEnabled: boolean; progress: number }

                                                                                                  Type declaration

                                                                                                  • catalyser: number
                                                                                                  • energy: number
                                                                                                  • isEnabled: boolean
                                                                                                  • progress: number

                                                                                                  readonlydimension

                                                                                                  dimension: number

                                                                                                  energyNode

                                                                                                  energyNode: EnergyTileNode

                                                                                                  energyTypes

                                                                                                  energyTypes: object

                                                                                                  events

                                                                                                  events: {}

                                                                                                  Type declaration

                                                                                                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                  finishingSound

                                                                                                  finishingSound: number

                                                                                                  getGuiScreen

                                                                                                  getGuiScreen: () => Nullable<IWindow>

                                                                                                  Type declaration

                                                                                                    • (): Nullable<IWindow>
                                                                                                    • Returns Nullable<IWindow>

                                                                                                  isLoaded

                                                                                                  isLoaded: boolean

                                                                                                  liquidStorage

                                                                                                  liquidStorage: Storage

                                                                                                  networkData

                                                                                                  networkData: SyncedNetworkData

                                                                                                  networkEntity

                                                                                                  networkEntity: NetworkEntity

                                                                                                  networkEntityType

                                                                                                  networkEntityType: NetworkEntityType

                                                                                                  networkEntityTypeName

                                                                                                  networkEntityTypeName: string

                                                                                                  noupdate

                                                                                                  noupdate: boolean

                                                                                                  optionalonConnectionPlayer

                                                                                                  onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                  Type declaration

                                                                                                    • (client: NetworkClient): void
                                                                                                    • Parameters

                                                                                                      • client: NetworkClient

                                                                                                      Returns void

                                                                                                  optionalonDisconnectionPlayer

                                                                                                  onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                  Type declaration

                                                                                                    • (client: NetworkClient): void
                                                                                                    • Parameters

                                                                                                      • client: NetworkClient

                                                                                                      Returns void

                                                                                                  region

                                                                                                  region: WorldRegion

                                                                                                  Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                  remove

                                                                                                  remove: boolean

                                                                                                  sendPacket

                                                                                                  sendPacket: (name: string, data: object) => {}

                                                                                                  Type declaration

                                                                                                    • (name: string, data: object): {}
                                                                                                    • Parameters

                                                                                                      • name: string
                                                                                                      • data: object

                                                                                                      Returns {}

                                                                                                    sendResponse

                                                                                                    sendResponse: (packetName: string, someData: object) => {}

                                                                                                    Type declaration

                                                                                                      • (packetName: string, someData: object): {}
                                                                                                      • Parameters

                                                                                                        • packetName: string
                                                                                                        • someData: object

                                                                                                        Returns {}

                                                                                                      update

                                                                                                      update: () => void

                                                                                                      Type declaration

                                                                                                        • (): void
                                                                                                        • Returns void

                                                                                                      optionalupgrades

                                                                                                      upgrades?: string[]

                                                                                                      readonlyuseNetworkItemContainer

                                                                                                      useNetworkItemContainer: boolean

                                                                                                      x

                                                                                                      x: number

                                                                                                      y

                                                                                                      y: number

                                                                                                      z

                                                                                                      z: number

                                                                                                      addLiquidTank

                                                                                                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                      • Parameters

                                                                                                        • name: string
                                                                                                        • limit: number
                                                                                                        • optionalliquids: string[]

                                                                                                        Returns LiquidTank

                                                                                                      adjustDrop

                                                                                                      • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                      • Parameters

                                                                                                        • item: ItemInstance

                                                                                                        Returns ItemInstance

                                                                                                      canExtractEnergy

                                                                                                      • canExtractEnergy(side: number, type: string): boolean
                                                                                                      • Parameters

                                                                                                        • side: number
                                                                                                        • type: string

                                                                                                        Returns boolean

                                                                                                      canReceiveEnergy

                                                                                                      • canReceiveEnergy(side: number, type: string): boolean
                                                                                                      • Parameters

                                                                                                        • side: number
                                                                                                        • type: string

                                                                                                        Returns boolean

                                                                                                      canRotate

                                                                                                      • canRotate(side: number): boolean
                                                                                                      • Parameters

                                                                                                        • side: number

                                                                                                        Returns boolean

                                                                                                      chargeSlot

                                                                                                      • chargeSlot(slotName: string): void
                                                                                                      • Parameters

                                                                                                        • slotName: string

                                                                                                        Returns void

                                                                                                      clientLoad

                                                                                                      • clientLoad(): void
                                                                                                      • Called when the client copy is created


                                                                                                        Returns void

                                                                                                      clientTick

                                                                                                      • clientTick(): void
                                                                                                      • Called every tick on client thread


                                                                                                        Returns void

                                                                                                      clientUnload

                                                                                                      • clientUnload(): void
                                                                                                      • Called on destroying the client copy


                                                                                                        Returns void

                                                                                                      created

                                                                                                      • created(): void
                                                                                                      • Returns void

                                                                                                      decreaseSlot

                                                                                                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                      • Parameters

                                                                                                        • slot: ItemContainerSlot
                                                                                                        • count: number

                                                                                                        Returns void

                                                                                                      destroy

                                                                                                      • destroy(): boolean
                                                                                                      • Returns boolean

                                                                                                      destroyBlock

                                                                                                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                      • Parameters

                                                                                                        • coords: ItemUseCoordinates
                                                                                                        • player: number

                                                                                                        Returns void

                                                                                                      dischargeSlot

                                                                                                      • dischargeSlot(slotName: string): void
                                                                                                      • Parameters

                                                                                                        • slotName: string

                                                                                                        Returns void

                                                                                                      energyReceive

                                                                                                      • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                      • Parameters

                                                                                                        • type: string
                                                                                                        • amount: number
                                                                                                        • voltage: number

                                                                                                        Returns number

                                                                                                      energyTick

                                                                                                      • Parameters

                                                                                                        Returns void

                                                                                                      getDefaultDrop

                                                                                                      • getDefaultDrop(): number
                                                                                                      • Returns number

                                                                                                      getEnergyStorage

                                                                                                      • getEnergyStorage(): number
                                                                                                      • Returns number

                                                                                                      getExplosionPower

                                                                                                      • getExplosionPower(): number
                                                                                                      • Returns number

                                                                                                      getFacing

                                                                                                      • getFacing(): number
                                                                                                      • Returns number

                                                                                                      getInterruptSound

                                                                                                      • getInterruptSound(): string
                                                                                                      • Returns string

                                                                                                      getMaxPacketSize

                                                                                                      • getMaxPacketSize(): number
                                                                                                      • Returns number

                                                                                                      getOperationSound

                                                                                                      • getOperationSound(): string
                                                                                                      • Returns string

                                                                                                      getRelativeEnergy

                                                                                                      • getRelativeEnergy(): number
                                                                                                      • Returns number

                                                                                                      getScreenByName

                                                                                                      • getScreenByName(): IWindow
                                                                                                      • Returns IWindow

                                                                                                      getScreenName

                                                                                                      • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                      • Parameters

                                                                                                        • player: number
                                                                                                        • coords: ItemUseCoordinates

                                                                                                        Returns string

                                                                                                      getStartingSound

                                                                                                      • getStartingSound(): string
                                                                                                      • Returns string

                                                                                                      getTier

                                                                                                      • getTier(): number
                                                                                                      • Returns number

                                                                                                      init

                                                                                                      • init(): void
                                                                                                      • @deprecated

                                                                                                        Returns void

                                                                                                      isConductor

                                                                                                      • isConductor(type: string): boolean
                                                                                                      • Parameters

                                                                                                        • type: string

                                                                                                        Returns boolean

                                                                                                      load

                                                                                                      • load(): void
                                                                                                      • @deprecated

                                                                                                        Returns void

                                                                                                      onCheckerTick

                                                                                                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                      • Parameters

                                                                                                        • isInitialized: boolean
                                                                                                        • isLoaded: boolean
                                                                                                        • wasLoaded: boolean

                                                                                                        Returns void

                                                                                                      onCreate

                                                                                                      • onCreate(): void
                                                                                                      • Called when a TileEntity is created


                                                                                                        Returns void

                                                                                                      onInit

                                                                                                      • onInit(): void
                                                                                                      • Called when a TileEntity is initialised in the world


                                                                                                        Returns void

                                                                                                      onItemClick

                                                                                                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                      • Parameters

                                                                                                        • id: number
                                                                                                        • count: number
                                                                                                        • data: number
                                                                                                        • coords: ItemUseCoordinates
                                                                                                        • player: number
                                                                                                        • extra: ItemExtraData

                                                                                                        Returns boolean

                                                                                                      onItemUse

                                                                                                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                      • 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

                                                                                                      • onLoad(): void
                                                                                                      • Called when a chunk with TileEntity is loaded


                                                                                                        Returns void

                                                                                                      onRedstoneUpdate

                                                                                                      • onRedstoneUpdate(signal: number): void
                                                                                                      • Occurs when redstone signal on TileEntity block was updated


                                                                                                        Parameters

                                                                                                        • signal: number

                                                                                                          signal power (0-15)

                                                                                                        Returns void

                                                                                                      onTick

                                                                                                      • onTick(): void
                                                                                                      • Called every tick and should be used for all the updates of the TileEntity


                                                                                                        Returns void

                                                                                                      onUnload

                                                                                                      • onUnload(): void
                                                                                                      • Called when a chunk with TileEntity is unloaded


                                                                                                        Returns void

                                                                                                      preventClick

                                                                                                      • preventClick(): void
                                                                                                      • Prevents all actions on click


                                                                                                        Returns void

                                                                                                      projectileHit

                                                                                                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                      • Parameters

                                                                                                        • coords: ItemUseCoordinates
                                                                                                        • target: ProjectileHitTarget

                                                                                                        Returns void

                                                                                                      rebuildGrid

                                                                                                      • rebuildGrid(): void
                                                                                                      • Returns void

                                                                                                      redstone

                                                                                                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                      • @deprecated

                                                                                                        Parameters

                                                                                                        • params: { onLoad: boolean; power: number; signal: number }
                                                                                                          • onLoad: boolean
                                                                                                          • power: number
                                                                                                          • signal: number

                                                                                                        Returns void

                                                                                                      renderModel

                                                                                                      • renderModel(): void
                                                                                                      • Returns void

                                                                                                      requireMoreLiquid

                                                                                                      • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                      • Parameters

                                                                                                        • liquid: string
                                                                                                        • amount: number

                                                                                                        Returns void

                                                                                                      selfDestroy

                                                                                                      • selfDestroy(): void
                                                                                                      • Returns void

                                                                                                      setActive

                                                                                                      • setActive(isActive: boolean): void
                                                                                                      • Parameters

                                                                                                        • isActive: boolean

                                                                                                        Returns void

                                                                                                      setFacing

                                                                                                      • setFacing(side: number): boolean
                                                                                                      • Parameters

                                                                                                        • side: number

                                                                                                        Returns boolean

                                                                                                      setLiquidScale

                                                                                                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                      • Parameters

                                                                                                        • container: any
                                                                                                        • window: any
                                                                                                        • content: any
                                                                                                        • data: { amount: number; liquid: string; scale: string }
                                                                                                          • amount: number
                                                                                                          • liquid: string
                                                                                                          • scale: string

                                                                                                        Returns void

                                                                                                      setupContainer

                                                                                                      • setupContainer(): void
                                                                                                      • Returns void

                                                                                                      startPlaySound

                                                                                                      • startPlaySound(): void
                                                                                                      • Returns void

                                                                                                      stopPlaySound

                                                                                                      • stopPlaySound(): void
                                                                                                      • Returns void

                                                                                                      tick

                                                                                                      • tick(): void
                                                                                                      • @deprecated

                                                                                                        Returns void

                                                                                                      unload

                                                                                                      • unload(): void
                                                                                                      • @deprecated

                                                                                                        Returns void

                                                                                                      updateLiquidScale

                                                                                                      • updateLiquidScale(scale: string, liquid: string): void
                                                                                                      • Parameters

                                                                                                        • scale: string
                                                                                                        • liquid: string

                                                                                                        Returns void

                                                                                                      MetalFormer

                                                                                                      MetalFormer:

                                                                                                      constructor

                                                                                                      • Returns MetalFormer

                                                                                                      __clientMethods

                                                                                                      __clientMethods: {}

                                                                                                      Type declaration

                                                                                                      • [key string]: boolean

                                                                                                      __containerEvents

                                                                                                      __containerEvents: {}

                                                                                                      Type declaration

                                                                                                      __initialized

                                                                                                      __initialized: boolean

                                                                                                      __networkEvents

                                                                                                      __networkEvents: {}

                                                                                                      Type declaration

                                                                                                      audioSource

                                                                                                      audioSource: AudioSource

                                                                                                      readonlyblockID

                                                                                                      blockID: number

                                                                                                      blockSource

                                                                                                      blockSource: BlockSource

                                                                                                      click

                                                                                                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                      Type declaration

                                                                                                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                        • Parameters

                                                                                                          • id: number
                                                                                                          • count: number
                                                                                                          • data: number
                                                                                                          • coords: ItemUseCoordinates
                                                                                                          • player: number
                                                                                                          • extra: ItemExtraData

                                                                                                          Returns boolean | void

                                                                                                      client

                                                                                                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                      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
                                                                                                          • (): void
                                                                                                          • Returns void

                                                                                                      • tick: () => void
                                                                                                          • (): void
                                                                                                          • Returns void

                                                                                                      • unload: () => void
                                                                                                          • (): void
                                                                                                          • Returns void

                                                                                                      container

                                                                                                      container: ItemContainer

                                                                                                      containerEvents

                                                                                                      containerEvents: {}

                                                                                                      Type declaration

                                                                                                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                      data

                                                                                                      data: { energy: number; mode: number; progress: number }

                                                                                                      Type declaration

                                                                                                      • energy: number
                                                                                                      • mode: number
                                                                                                      • progress: number

                                                                                                      defaultDrop

                                                                                                      defaultDrop: number

                                                                                                      defaultEnergyDemand

                                                                                                      defaultEnergyDemand: number

                                                                                                      defaultEnergyStorage

                                                                                                      defaultEnergyStorage: number

                                                                                                      defaultProcessTime

                                                                                                      defaultProcessTime: number

                                                                                                      defaultTier

                                                                                                      defaultTier: number

                                                                                                      defaultValues

                                                                                                      defaultValues: { energy: number; mode: number; progress: number }

                                                                                                      Type declaration

                                                                                                      • energy: number
                                                                                                      • mode: number
                                                                                                      • progress: number

                                                                                                      readonlydimension

                                                                                                      dimension: number

                                                                                                      optionalenergyDemand

                                                                                                      energyDemand?: number

                                                                                                      energyNode

                                                                                                      energyNode: EnergyTileNode

                                                                                                      energyStorage

                                                                                                      energyStorage: number

                                                                                                      energyTypes

                                                                                                      energyTypes: object

                                                                                                      events

                                                                                                      events: {}

                                                                                                      Type declaration

                                                                                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                      finishingSound

                                                                                                      finishingSound: number

                                                                                                      getGuiScreen

                                                                                                      getGuiScreen: () => Nullable<IWindow>

                                                                                                      Type declaration

                                                                                                        • (): Nullable<IWindow>
                                                                                                        • Returns Nullable<IWindow>

                                                                                                      isLoaded

                                                                                                      isLoaded: boolean

                                                                                                      liquidStorage

                                                                                                      liquidStorage: Storage

                                                                                                      networkData

                                                                                                      networkData: SyncedNetworkData

                                                                                                      networkEntity

                                                                                                      networkEntity: NetworkEntity

                                                                                                      networkEntityType

                                                                                                      networkEntityType: NetworkEntityType

                                                                                                      networkEntityTypeName

                                                                                                      networkEntityTypeName: string

                                                                                                      noupdate

                                                                                                      noupdate: boolean

                                                                                                      optionalonConnectionPlayer

                                                                                                      onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                      Type declaration

                                                                                                        • (client: NetworkClient): void
                                                                                                        • Parameters

                                                                                                          • client: NetworkClient

                                                                                                          Returns void

                                                                                                      optionalonDisconnectionPlayer

                                                                                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                      Type declaration

                                                                                                        • (client: NetworkClient): void
                                                                                                        • Parameters

                                                                                                          • client: NetworkClient

                                                                                                          Returns void

                                                                                                      optionalprocessTime

                                                                                                      processTime?: number

                                                                                                      region

                                                                                                      region: WorldRegion

                                                                                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                      remove

                                                                                                      remove: boolean

                                                                                                      sendPacket

                                                                                                      sendPacket: (name: string, data: object) => {}

                                                                                                      Type declaration

                                                                                                        • (name: string, data: object): {}
                                                                                                        • Parameters

                                                                                                          • name: string
                                                                                                          • data: object

                                                                                                          Returns {}

                                                                                                        sendResponse

                                                                                                        sendResponse: (packetName: string, someData: object) => {}

                                                                                                        Type declaration

                                                                                                          • (packetName: string, someData: object): {}
                                                                                                          • Parameters

                                                                                                            • packetName: string
                                                                                                            • someData: object

                                                                                                            Returns {}

                                                                                                          tier

                                                                                                          tier: number

                                                                                                          update

                                                                                                          update: () => void

                                                                                                          Type declaration

                                                                                                            • (): void
                                                                                                            • Returns void

                                                                                                          upgrades

                                                                                                          upgrades: [overclocker, transformer, energyStorage, itemEjector, itemPulling]

                                                                                                          readonlyuseNetworkItemContainer

                                                                                                          useNetworkItemContainer: boolean

                                                                                                          x

                                                                                                          x: number

                                                                                                          y

                                                                                                          y: number

                                                                                                          z

                                                                                                          z: number

                                                                                                          addLiquidTank

                                                                                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                          • Parameters

                                                                                                            • name: string
                                                                                                            • limit: number
                                                                                                            • optionalliquids: string[]

                                                                                                            Returns LiquidTank

                                                                                                          adjustDrop

                                                                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                          • Parameters

                                                                                                            • item: ItemInstance

                                                                                                            Returns ItemInstance

                                                                                                          canExtractEnergy

                                                                                                          • canExtractEnergy(side: number, type: string): boolean
                                                                                                          • Parameters

                                                                                                            • side: number
                                                                                                            • type: string

                                                                                                            Returns boolean

                                                                                                          canReceiveEnergy

                                                                                                          • canReceiveEnergy(side: number, type: string): boolean
                                                                                                          • Parameters

                                                                                                            • side: number
                                                                                                            • type: string

                                                                                                            Returns boolean

                                                                                                          canRotate

                                                                                                          • canRotate(side: number): boolean
                                                                                                          • Parameters

                                                                                                            • side: number

                                                                                                            Returns boolean

                                                                                                          chargeSlot

                                                                                                          • chargeSlot(slotName: string): void
                                                                                                          • Parameters

                                                                                                            • slotName: string

                                                                                                            Returns void

                                                                                                          clientLoad

                                                                                                          • clientLoad(): void
                                                                                                          • Called when the client copy is created


                                                                                                            Returns void

                                                                                                          clientTick

                                                                                                          • clientTick(): void
                                                                                                          • Called every tick on client thread


                                                                                                            Returns void

                                                                                                          clientUnload

                                                                                                          • clientUnload(): void
                                                                                                          • Called on destroying the client copy


                                                                                                            Returns void

                                                                                                          created

                                                                                                          • created(): void
                                                                                                          • Returns void

                                                                                                          decreaseSlot

                                                                                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                          • Parameters

                                                                                                            • slot: ItemContainerSlot
                                                                                                            • count: number

                                                                                                            Returns void

                                                                                                          destroy

                                                                                                          • destroy(): boolean
                                                                                                          • Returns boolean

                                                                                                          destroyBlock

                                                                                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                          • Parameters

                                                                                                            • coords: ItemUseCoordinates
                                                                                                            • player: number

                                                                                                            Returns void

                                                                                                          dischargeSlot

                                                                                                          • dischargeSlot(slotName: string): void
                                                                                                          • Parameters

                                                                                                            • slotName: string

                                                                                                            Returns void

                                                                                                          energyReceive

                                                                                                          • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                          • Parameters

                                                                                                            • type: string
                                                                                                            • amount: number
                                                                                                            • voltage: number

                                                                                                            Returns number

                                                                                                          energyTick

                                                                                                          • Parameters

                                                                                                            Returns void

                                                                                                          getDefaultDrop

                                                                                                          • getDefaultDrop(): number
                                                                                                          • Returns number

                                                                                                          getEnergyStorage

                                                                                                          • getEnergyStorage(): number
                                                                                                          • Returns number

                                                                                                          getExplosionPower

                                                                                                          • getExplosionPower(): number
                                                                                                          • Returns number

                                                                                                          getFacing

                                                                                                          • getFacing(): number
                                                                                                          • Returns number

                                                                                                          getInterruptSound

                                                                                                          • getInterruptSound(): string
                                                                                                          • Returns string

                                                                                                          getMaxPacketSize

                                                                                                          • getMaxPacketSize(): number
                                                                                                          • Returns number

                                                                                                          getOperationSound

                                                                                                          • getOperationSound(): string
                                                                                                          • Returns string

                                                                                                          getRecipeResult

                                                                                                          • Parameters

                                                                                                            • id: number

                                                                                                            Returns RecipeData

                                                                                                          getRelativeEnergy

                                                                                                          • getRelativeEnergy(): number
                                                                                                          • Returns number

                                                                                                          getScreenByName

                                                                                                          • getScreenByName(): IWindow
                                                                                                          • Returns IWindow

                                                                                                          getScreenName

                                                                                                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                          • Parameters

                                                                                                            • player: number
                                                                                                            • coords: ItemUseCoordinates

                                                                                                            Returns string

                                                                                                          getStartingSound

                                                                                                          • getStartingSound(): string
                                                                                                          • Returns string

                                                                                                          getTier

                                                                                                          • getTier(): number
                                                                                                          • Returns number

                                                                                                          init

                                                                                                          • init(): void
                                                                                                          • @deprecated

                                                                                                            Returns void

                                                                                                          isConductor

                                                                                                          • isConductor(type: string): boolean
                                                                                                          • Parameters

                                                                                                            • type: string

                                                                                                            Returns boolean

                                                                                                          load

                                                                                                          • load(): void
                                                                                                          • @deprecated

                                                                                                            Returns void

                                                                                                          onCheckerTick

                                                                                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                          • Parameters

                                                                                                            • isInitialized: boolean
                                                                                                            • isLoaded: boolean
                                                                                                            • wasLoaded: boolean

                                                                                                            Returns void

                                                                                                          onCreate

                                                                                                          • onCreate(): void
                                                                                                          • Called when a TileEntity is created


                                                                                                            Returns void

                                                                                                          onInit

                                                                                                          • onInit(): void
                                                                                                          • Called when a TileEntity is initialised in the world


                                                                                                            Returns void

                                                                                                          onItemClick

                                                                                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                          • Parameters

                                                                                                            • id: number
                                                                                                            • count: number
                                                                                                            • data: number
                                                                                                            • coords: ItemUseCoordinates
                                                                                                            • player: number
                                                                                                            • extra: ItemExtraData

                                                                                                            Returns boolean

                                                                                                          onItemUse

                                                                                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                          • 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

                                                                                                          • onLoad(): void
                                                                                                          • Called when a chunk with TileEntity is loaded


                                                                                                            Returns void

                                                                                                          onRedstoneUpdate

                                                                                                          • onRedstoneUpdate(signal: number): void
                                                                                                          • Occurs when redstone signal on TileEntity block was updated


                                                                                                            Parameters

                                                                                                            • signal: number

                                                                                                              signal power (0-15)

                                                                                                            Returns void

                                                                                                          onTick

                                                                                                          • onTick(): void
                                                                                                          • Called every tick and should be used for all the updates of the TileEntity


                                                                                                            Returns void

                                                                                                          onUnload

                                                                                                          • onUnload(): void
                                                                                                          • Called when a chunk with TileEntity is unloaded


                                                                                                            Returns void

                                                                                                          preventClick

                                                                                                          • preventClick(): void
                                                                                                          • Prevents all actions on click


                                                                                                            Returns void

                                                                                                          projectileHit

                                                                                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                          • Parameters

                                                                                                            • coords: ItemUseCoordinates
                                                                                                            • target: ProjectileHitTarget

                                                                                                            Returns void

                                                                                                          rebuildGrid

                                                                                                          • rebuildGrid(): void
                                                                                                          • Returns void

                                                                                                          redstone

                                                                                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                          • @deprecated

                                                                                                            Parameters

                                                                                                            • params: { onLoad: boolean; power: number; signal: number }
                                                                                                              • onLoad: boolean
                                                                                                              • power: number
                                                                                                              • signal: number

                                                                                                            Returns void

                                                                                                          renderModel

                                                                                                          • renderModel(): void
                                                                                                          • Returns void

                                                                                                          requireMoreLiquid

                                                                                                          • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                          • Parameters

                                                                                                            • liquid: string
                                                                                                            • amount: number

                                                                                                            Returns void

                                                                                                          selfDestroy

                                                                                                          • selfDestroy(): void
                                                                                                          • Returns void

                                                                                                          setActive

                                                                                                          • setActive(isActive: boolean): void
                                                                                                          • Parameters

                                                                                                            • isActive: boolean

                                                                                                            Returns void

                                                                                                          setFacing

                                                                                                          • setFacing(side: number): boolean
                                                                                                          • Parameters

                                                                                                            • side: number

                                                                                                            Returns boolean

                                                                                                          setLiquidScale

                                                                                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                          • Parameters

                                                                                                            • container: any
                                                                                                            • window: any
                                                                                                            • content: any
                                                                                                            • data: { amount: number; liquid: string; scale: string }
                                                                                                              • amount: number
                                                                                                              • liquid: string
                                                                                                              • scale: string

                                                                                                            Returns void

                                                                                                          setModeIcon

                                                                                                          • setModeIcon(container: ItemContainer, window: any, content: any, data: { mode: number }): void
                                                                                                          • Parameters

                                                                                                            • container: ItemContainer
                                                                                                            • window: any
                                                                                                            • content: any
                                                                                                            • data: { mode: number }
                                                                                                              • mode: number

                                                                                                            Returns void

                                                                                                          setupContainer

                                                                                                          • setupContainer(): void
                                                                                                          • Returns void

                                                                                                          startPlaySound

                                                                                                          • startPlaySound(): void
                                                                                                          • Returns void

                                                                                                          stopPlaySound

                                                                                                          • stopPlaySound(): void
                                                                                                          • Returns void

                                                                                                          switchMode

                                                                                                          • switchMode(): void
                                                                                                          • Returns void

                                                                                                          tick

                                                                                                          • tick(): void
                                                                                                          • @deprecated

                                                                                                            Returns void

                                                                                                          unload

                                                                                                          • unload(): void
                                                                                                          • @deprecated

                                                                                                            Returns void

                                                                                                          updateLiquidScale

                                                                                                          • updateLiquidScale(scale: string, liquid: string): void
                                                                                                          • Parameters

                                                                                                            • scale: string
                                                                                                            • liquid: string

                                                                                                            Returns void

                                                                                                          useUpgrades

                                                                                                          • Returns UpgradeSet

                                                                                                          Miner

                                                                                                          Miner:

                                                                                                          constructor

                                                                                                          • Returns Miner

                                                                                                          __clientMethods

                                                                                                          __clientMethods: {}

                                                                                                          Type declaration

                                                                                                          • [key string]: boolean

                                                                                                          __containerEvents

                                                                                                          __containerEvents: {}

                                                                                                          Type declaration

                                                                                                          __initialized

                                                                                                          __initialized: boolean

                                                                                                          __networkEvents

                                                                                                          __networkEvents: {}

                                                                                                          Type declaration

                                                                                                          audioSource

                                                                                                          audioSource: AudioSource

                                                                                                          readonlyblockID

                                                                                                          blockID: number

                                                                                                          blockSource

                                                                                                          blockSource: BlockSource

                                                                                                          click

                                                                                                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                          Type declaration

                                                                                                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                            • Parameters

                                                                                                              • id: number
                                                                                                              • count: number
                                                                                                              • data: number
                                                                                                              • coords: ItemUseCoordinates
                                                                                                              • player: number
                                                                                                              • extra: ItemExtraData

                                                                                                              Returns boolean | void

                                                                                                          client

                                                                                                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                          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
                                                                                                              • (): void
                                                                                                              • Returns void

                                                                                                          • tick: () => void
                                                                                                              • (): void
                                                                                                              • Returns void

                                                                                                          • unload: () => void
                                                                                                              • (): void
                                                                                                              • Returns void

                                                                                                          container

                                                                                                          container: ItemContainer

                                                                                                          containerEvents

                                                                                                          containerEvents: {}

                                                                                                          Type declaration

                                                                                                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                          data

                                                                                                          data: { energy: number; progress: number; scanR: number; scanY: number; x: number; y: number; z: number }

                                                                                                          Type declaration

                                                                                                          • energy: number
                                                                                                          • progress: number
                                                                                                          • scanR: number
                                                                                                          • scanY: number
                                                                                                          • x: number
                                                                                                          • y: number
                                                                                                          • z: number

                                                                                                          defaultDrop

                                                                                                          defaultDrop: number

                                                                                                          defaultValues

                                                                                                          defaultValues: { energy: number; progress: number; scanR: number; scanY: number; x: number; y: number; z: number }

                                                                                                          Type declaration

                                                                                                          • energy: number
                                                                                                          • progress: number
                                                                                                          • scanR: number
                                                                                                          • scanY: number
                                                                                                          • x: number
                                                                                                          • y: number
                                                                                                          • z: number

                                                                                                          readonlydimension

                                                                                                          dimension: number

                                                                                                          energyNode

                                                                                                          energyNode: EnergyTileNode

                                                                                                          energyTypes

                                                                                                          energyTypes: object

                                                                                                          events

                                                                                                          events: {}

                                                                                                          Type declaration

                                                                                                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                          finishingSound

                                                                                                          finishingSound: number

                                                                                                          getGuiScreen

                                                                                                          getGuiScreen: () => Nullable<IWindow>

                                                                                                          Type declaration

                                                                                                            • (): Nullable<IWindow>
                                                                                                            • Returns Nullable<IWindow>

                                                                                                          isLoaded

                                                                                                          isLoaded: boolean

                                                                                                          liquidStorage

                                                                                                          liquidStorage: Storage

                                                                                                          networkData

                                                                                                          networkData: SyncedNetworkData

                                                                                                          networkEntity

                                                                                                          networkEntity: NetworkEntity

                                                                                                          networkEntityType

                                                                                                          networkEntityType: NetworkEntityType

                                                                                                          networkEntityTypeName

                                                                                                          networkEntityTypeName: string

                                                                                                          noupdate

                                                                                                          noupdate: boolean

                                                                                                          optionalonConnectionPlayer

                                                                                                          onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                          Type declaration

                                                                                                            • (client: NetworkClient): void
                                                                                                            • Parameters

                                                                                                              • client: NetworkClient

                                                                                                              Returns void

                                                                                                          optionalonDisconnectionPlayer

                                                                                                          onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                          Type declaration

                                                                                                            • (client: NetworkClient): void
                                                                                                            • Parameters

                                                                                                              • client: NetworkClient

                                                                                                              Returns void

                                                                                                          region

                                                                                                          region: WorldRegion

                                                                                                          Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                          remove

                                                                                                          remove: boolean

                                                                                                          sendPacket

                                                                                                          sendPacket: (name: string, data: object) => {}

                                                                                                          Type declaration

                                                                                                            • (name: string, data: object): {}
                                                                                                            • Parameters

                                                                                                              • name: string
                                                                                                              • data: object

                                                                                                              Returns {}

                                                                                                            sendResponse

                                                                                                            sendResponse: (packetName: string, someData: object) => {}

                                                                                                            Type declaration

                                                                                                              • (packetName: string, someData: object): {}
                                                                                                              • Parameters

                                                                                                                • packetName: string
                                                                                                                • someData: object

                                                                                                                Returns {}

                                                                                                              update

                                                                                                              update: () => void

                                                                                                              Type declaration

                                                                                                                • (): void
                                                                                                                • Returns void

                                                                                                              optionalupgrades

                                                                                                              upgrades?: string[]

                                                                                                              readonlyuseNetworkItemContainer

                                                                                                              useNetworkItemContainer: boolean

                                                                                                              x

                                                                                                              x: number

                                                                                                              y

                                                                                                              y: number

                                                                                                              z

                                                                                                              z: number

                                                                                                              addLiquidTank

                                                                                                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                              • Parameters

                                                                                                                • name: string
                                                                                                                • limit: number
                                                                                                                • optionalliquids: string[]

                                                                                                                Returns LiquidTank

                                                                                                              adjustDrop

                                                                                                              • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                              • Parameters

                                                                                                                • item: ItemInstance

                                                                                                                Returns ItemInstance

                                                                                                              canBeDestroyed

                                                                                                              • canBeDestroyed(blockID: number, level: number): boolean
                                                                                                              • Parameters

                                                                                                                • blockID: number
                                                                                                                • level: number

                                                                                                                Returns boolean

                                                                                                              canExtractEnergy

                                                                                                              • canExtractEnergy(side: number, type: string): boolean
                                                                                                              • Parameters

                                                                                                                • side: number
                                                                                                                • type: string

                                                                                                                Returns boolean

                                                                                                              canReceiveEnergy

                                                                                                              • canReceiveEnergy(side: number, type: string): boolean
                                                                                                              • Parameters

                                                                                                                • side: number
                                                                                                                • type: string

                                                                                                                Returns boolean

                                                                                                              canRotate

                                                                                                              • canRotate(side: number): boolean
                                                                                                              • Parameters

                                                                                                                • side: number

                                                                                                                Returns boolean

                                                                                                              chargeSlot

                                                                                                              • chargeSlot(slotName: string): void
                                                                                                              • Parameters

                                                                                                                • slotName: string

                                                                                                                Returns void

                                                                                                              clientLoad

                                                                                                              • clientLoad(): void
                                                                                                              • Called when the client copy is created


                                                                                                                Returns void

                                                                                                              clientTick

                                                                                                              • clientTick(): void
                                                                                                              • Called every tick on client thread


                                                                                                                Returns void

                                                                                                              clientUnload

                                                                                                              • clientUnload(): void
                                                                                                              • Called on destroying the client copy


                                                                                                                Returns void

                                                                                                              created

                                                                                                              • created(): void
                                                                                                              • Returns void

                                                                                                              decreaseSlot

                                                                                                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                              • Parameters

                                                                                                                • slot: ItemContainerSlot
                                                                                                                • count: number

                                                                                                                Returns void

                                                                                                              destroy

                                                                                                              • destroy(): boolean
                                                                                                              • Returns boolean

                                                                                                              destroyBlock

                                                                                                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                              • Parameters

                                                                                                                • coords: ItemUseCoordinates
                                                                                                                • player: number

                                                                                                                Returns void

                                                                                                              dischargeSlot

                                                                                                              • dischargeSlot(slotName: string): void
                                                                                                              • Parameters

                                                                                                                • slotName: string

                                                                                                                Returns void

                                                                                                              drop

                                                                                                              • drop(items: ItemInstance[]): void
                                                                                                              • Parameters

                                                                                                                • items: ItemInstance[]

                                                                                                                Returns void

                                                                                                              energyReceive

                                                                                                              • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                              • Parameters

                                                                                                                • type: string
                                                                                                                • amount: number
                                                                                                                • voltage: number

                                                                                                                Returns number

                                                                                                              energyTick

                                                                                                              • Parameters

                                                                                                                Returns void

                                                                                                              findOre

                                                                                                              • findOre(level: number): boolean
                                                                                                              • Parameters

                                                                                                                • level: number

                                                                                                                Returns boolean

                                                                                                              findPath

                                                                                                              • findPath(x: number, y: number, z: number, sprc: number, level: number): Vector
                                                                                                              • Parameters

                                                                                                                • x: number
                                                                                                                • y: number
                                                                                                                • z: number
                                                                                                                • sprc: number
                                                                                                                • level: number

                                                                                                                Returns Vector

                                                                                                              getDefaultDrop

                                                                                                              • getDefaultDrop(): number
                                                                                                              • Returns number

                                                                                                              getEnergyStorage

                                                                                                              • getEnergyStorage(): number
                                                                                                              • Returns number

                                                                                                              getExplosionPower

                                                                                                              • getExplosionPower(): number
                                                                                                              • Returns number

                                                                                                              getFacing

                                                                                                              • getFacing(): number
                                                                                                              • Returns number

                                                                                                              getInterruptSound

                                                                                                              • getInterruptSound(): string
                                                                                                              • Returns string

                                                                                                              getMaxPacketSize

                                                                                                              • getMaxPacketSize(): number
                                                                                                              • Returns number

                                                                                                              getMiningValues

                                                                                                              • getMiningValues(tool: number): { energy: number; time: number }
                                                                                                              • Parameters

                                                                                                                • tool: number

                                                                                                                Returns { energy: number; time: number }

                                                                                                                • energy: number
                                                                                                                • time: number

                                                                                                              getOperationSound

                                                                                                              • getOperationSound(): string
                                                                                                              • Returns string

                                                                                                              getRelativeEnergy

                                                                                                              • getRelativeEnergy(): number
                                                                                                              • Returns number

                                                                                                              getScreenByName

                                                                                                              • getScreenByName(): IWindow
                                                                                                              • Returns IWindow

                                                                                                              getScreenName

                                                                                                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                              • Parameters

                                                                                                                • player: number
                                                                                                                • coords: ItemUseCoordinates

                                                                                                                Returns string

                                                                                                              getStartingSound

                                                                                                              • getStartingSound(): string
                                                                                                              • Returns string

                                                                                                              getTier

                                                                                                              • getTier(): number
                                                                                                              • Returns number

                                                                                                              init

                                                                                                              • init(): void
                                                                                                              • @deprecated

                                                                                                                Returns void

                                                                                                              isConductor

                                                                                                              • isConductor(type: string): boolean
                                                                                                              • Parameters

                                                                                                                • type: string

                                                                                                                Returns boolean

                                                                                                              isEmptyBlock

                                                                                                              • isEmptyBlock(block: Tile): boolean
                                                                                                              • Parameters

                                                                                                                • block: Tile

                                                                                                                Returns boolean

                                                                                                              load

                                                                                                              • load(): void
                                                                                                              • @deprecated

                                                                                                                Returns void

                                                                                                              mineBlock

                                                                                                              • mineBlock(x: number, y: number, z: number, block: Tile, item: ItemContainerSlot): void
                                                                                                              • Parameters

                                                                                                                • x: number
                                                                                                                • y: number
                                                                                                                • z: number
                                                                                                                • block: Tile
                                                                                                                • item: ItemContainerSlot

                                                                                                                Returns void

                                                                                                              onCheckerTick

                                                                                                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                              • Parameters

                                                                                                                • isInitialized: boolean
                                                                                                                • isLoaded: boolean
                                                                                                                • wasLoaded: boolean

                                                                                                                Returns void

                                                                                                              onCreate

                                                                                                              • onCreate(): void
                                                                                                              • Called when a TileEntity is created


                                                                                                                Returns void

                                                                                                              onInit

                                                                                                              • onInit(): void
                                                                                                              • Called when a TileEntity is initialised in the world


                                                                                                                Returns void

                                                                                                              onItemClick

                                                                                                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                              • Parameters

                                                                                                                • id: number
                                                                                                                • count: number
                                                                                                                • data: number
                                                                                                                • coords: ItemUseCoordinates
                                                                                                                • player: number
                                                                                                                • extra: ItemExtraData

                                                                                                                Returns boolean

                                                                                                              onItemUse

                                                                                                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                              • 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

                                                                                                              • onLoad(): void
                                                                                                              • Called when a chunk with TileEntity is loaded


                                                                                                                Returns void

                                                                                                              onRedstoneUpdate

                                                                                                              • onRedstoneUpdate(signal: number): void
                                                                                                              • Occurs when redstone signal on TileEntity block was updated


                                                                                                                Parameters

                                                                                                                • signal: number

                                                                                                                  signal power (0-15)

                                                                                                                Returns void

                                                                                                              onTick

                                                                                                              • onTick(): void
                                                                                                              • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                Returns void

                                                                                                              onUnload

                                                                                                              • onUnload(): void
                                                                                                              • Called when a chunk with TileEntity is unloaded


                                                                                                                Returns void

                                                                                                              preventClick

                                                                                                              • preventClick(): void
                                                                                                              • Prevents all actions on click


                                                                                                                Returns void

                                                                                                              projectileHit

                                                                                                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                              • Parameters

                                                                                                                • coords: ItemUseCoordinates
                                                                                                                • target: ProjectileHitTarget

                                                                                                                Returns void

                                                                                                              rebuildGrid

                                                                                                              • rebuildGrid(): void
                                                                                                              • Returns void

                                                                                                              redstone

                                                                                                              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                              • @deprecated

                                                                                                                Parameters

                                                                                                                • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                  • onLoad: boolean
                                                                                                                  • power: number
                                                                                                                  • signal: number

                                                                                                                Returns void

                                                                                                              renderModel

                                                                                                              • renderModel(): void
                                                                                                              • Returns void

                                                                                                              requireMoreLiquid

                                                                                                              • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                              • Parameters

                                                                                                                • liquid: string
                                                                                                                • amount: number

                                                                                                                Returns void

                                                                                                              selfDestroy

                                                                                                              • selfDestroy(): void
                                                                                                              • Returns void

                                                                                                              setActive

                                                                                                              • setActive(isActive: boolean): void
                                                                                                              • Parameters

                                                                                                                • isActive: boolean

                                                                                                                Returns void

                                                                                                              setFacing

                                                                                                              • setFacing(side: number): boolean
                                                                                                              • Parameters

                                                                                                                • side: number

                                                                                                                Returns boolean

                                                                                                              setLiquidScale

                                                                                                              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                              • Parameters

                                                                                                                • container: any
                                                                                                                • window: any
                                                                                                                • content: any
                                                                                                                • data: { amount: number; liquid: string; scale: string }
                                                                                                                  • amount: number
                                                                                                                  • liquid: string
                                                                                                                  • scale: string

                                                                                                                Returns void

                                                                                                              setPipe

                                                                                                              • setPipe(y: number): void
                                                                                                              • Parameters

                                                                                                                • y: number

                                                                                                                Returns void

                                                                                                              setupContainer

                                                                                                              • setupContainer(): void
                                                                                                              • Returns void

                                                                                                              startPlaySound

                                                                                                              • startPlaySound(): void
                                                                                                              • Returns void

                                                                                                              stopPlaySound

                                                                                                              • stopPlaySound(): void
                                                                                                              • Returns void

                                                                                                              tick

                                                                                                              • tick(): void
                                                                                                              • @deprecated

                                                                                                                Returns void

                                                                                                              unload

                                                                                                              • unload(): void
                                                                                                              • @deprecated

                                                                                                                Returns void

                                                                                                              updateLiquidScale

                                                                                                              • updateLiquidScale(scale: string, liquid: string): void
                                                                                                              • Parameters

                                                                                                                • scale: string
                                                                                                                • liquid: string

                                                                                                                Returns void

                                                                                                              NuclearReactor

                                                                                                              NuclearReactor:

                                                                                                              constructor

                                                                                                              __clientMethods

                                                                                                              __clientMethods: {}

                                                                                                              Type declaration

                                                                                                              • [key string]: boolean

                                                                                                              __containerEvents

                                                                                                              __containerEvents: {}

                                                                                                              Type declaration

                                                                                                              __initialized

                                                                                                              __initialized: boolean

                                                                                                              __networkEvents

                                                                                                              __networkEvents: {}

                                                                                                              Type declaration

                                                                                                              audioSource

                                                                                                              audioSource: AudioSource

                                                                                                              audioSourceGeiger

                                                                                                              audioSourceGeiger: AudioSource

                                                                                                              readonlyblockID

                                                                                                              blockID: number

                                                                                                              blockSource

                                                                                                              blockSource: BlockSource

                                                                                                              chambers

                                                                                                              chambers: ReactorChamber[]

                                                                                                              click

                                                                                                              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                              Type declaration

                                                                                                                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                • Parameters

                                                                                                                  • id: number
                                                                                                                  • count: number
                                                                                                                  • data: number
                                                                                                                  • coords: ItemUseCoordinates
                                                                                                                  • player: number
                                                                                                                  • extra: ItemExtraData

                                                                                                                  Returns boolean | void

                                                                                                              client

                                                                                                              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                              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
                                                                                                                  • (): void
                                                                                                                  • Returns void

                                                                                                              • tick: () => void
                                                                                                                  • (): void
                                                                                                                  • Returns void

                                                                                                              • unload: () => void
                                                                                                                  • (): void
                                                                                                                  • Returns void

                                                                                                              container

                                                                                                              container: ItemContainer

                                                                                                              containerEvents

                                                                                                              containerEvents: {}

                                                                                                              Type declaration

                                                                                                              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                              data

                                                                                                              data: { energy: number; heat: number; hem: number; isEnabled: boolean; maxHeat: number; output: number; signal: number }

                                                                                                              Type declaration

                                                                                                              • energy: number
                                                                                                              • heat: number
                                                                                                              • hem: number
                                                                                                              • isEnabled: boolean
                                                                                                              • maxHeat: number
                                                                                                              • output: number
                                                                                                              • signal: number

                                                                                                              defaultDrop

                                                                                                              defaultDrop: number

                                                                                                              defaultValues

                                                                                                              defaultValues: { energy: number; heat: number; hem: number; isEnabled: boolean; maxHeat: number; output: number; signal: number }

                                                                                                              Type declaration

                                                                                                              • energy: number
                                                                                                              • heat: number
                                                                                                              • hem: number
                                                                                                              • isEnabled: boolean
                                                                                                              • maxHeat: number
                                                                                                              • output: number
                                                                                                              • signal: number

                                                                                                              readonlydimension

                                                                                                              dimension: number

                                                                                                              energyNode

                                                                                                              energyNode: EnergyTileNode

                                                                                                              energyTypes

                                                                                                              energyTypes: object

                                                                                                              events

                                                                                                              events: {}

                                                                                                              Type declaration

                                                                                                              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                              finishingSound

                                                                                                              finishingSound: number

                                                                                                              getGuiScreen

                                                                                                              getGuiScreen: () => Nullable<IWindow>

                                                                                                              Type declaration

                                                                                                                • (): Nullable<IWindow>
                                                                                                                • Returns Nullable<IWindow>

                                                                                                              isLoaded

                                                                                                              isLoaded: boolean

                                                                                                              liquidStorage

                                                                                                              liquidStorage: Storage

                                                                                                              networkData

                                                                                                              networkData: SyncedNetworkData

                                                                                                              networkEntity

                                                                                                              networkEntity: NetworkEntity

                                                                                                              networkEntityType

                                                                                                              networkEntityType: NetworkEntityType

                                                                                                              networkEntityTypeName

                                                                                                              networkEntityTypeName: string

                                                                                                              noupdate

                                                                                                              noupdate: boolean

                                                                                                              optionalonConnectionPlayer

                                                                                                              onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                              Type declaration

                                                                                                                • (client: NetworkClient): void
                                                                                                                • Parameters

                                                                                                                  • client: NetworkClient

                                                                                                                  Returns void

                                                                                                              optionalonDisconnectionPlayer

                                                                                                              onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                              Type declaration

                                                                                                                • (client: NetworkClient): void
                                                                                                                • Parameters

                                                                                                                  • client: NetworkClient

                                                                                                                  Returns void

                                                                                                              region

                                                                                                              region: WorldRegion

                                                                                                              Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                              remove

                                                                                                              remove: boolean

                                                                                                              sendPacket

                                                                                                              sendPacket: (name: string, data: object) => {}

                                                                                                              Type declaration

                                                                                                                • (name: string, data: object): {}
                                                                                                                • Parameters

                                                                                                                  • name: string
                                                                                                                  • data: object

                                                                                                                  Returns {}

                                                                                                                sendResponse

                                                                                                                sendResponse: (packetName: string, someData: object) => {}

                                                                                                                Type declaration

                                                                                                                  • (packetName: string, someData: object): {}
                                                                                                                  • Parameters

                                                                                                                    • packetName: string
                                                                                                                    • someData: object

                                                                                                                    Returns {}

                                                                                                                  update

                                                                                                                  update: () => void

                                                                                                                  Type declaration

                                                                                                                    • (): void
                                                                                                                    • Returns void

                                                                                                                  optionalupgrades

                                                                                                                  upgrades?: string[]

                                                                                                                  readonlyuseNetworkItemContainer

                                                                                                                  useNetworkItemContainer: boolean

                                                                                                                  x

                                                                                                                  x: number

                                                                                                                  y

                                                                                                                  y: number

                                                                                                                  z

                                                                                                                  z: number

                                                                                                                  addChamber

                                                                                                                  addEmitHeat

                                                                                                                  • addEmitHeat(heat: number): void
                                                                                                                  • Parameters

                                                                                                                    • heat: number

                                                                                                                    Returns void

                                                                                                                  addHeat

                                                                                                                  • addHeat(amount: number): number
                                                                                                                  • Parameters

                                                                                                                    • amount: number

                                                                                                                    Returns number

                                                                                                                  addLiquidTank

                                                                                                                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                  • Parameters

                                                                                                                    • name: string
                                                                                                                    • limit: number
                                                                                                                    • optionalliquids: string[]

                                                                                                                    Returns LiquidTank

                                                                                                                  addOutput

                                                                                                                  • addOutput(energy: number): number
                                                                                                                  • Parameters

                                                                                                                    • energy: number

                                                                                                                    Returns number

                                                                                                                  adjustDrop

                                                                                                                  • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                  • Parameters

                                                                                                                    • item: ItemInstance

                                                                                                                    Returns ItemInstance

                                                                                                                  calculateHeatEffects

                                                                                                                  • calculateHeatEffects(): boolean
                                                                                                                  • Returns boolean

                                                                                                                  canExtractEnergy

                                                                                                                  • canExtractEnergy(): boolean
                                                                                                                  • Returns boolean

                                                                                                                  canReceiveEnergy

                                                                                                                  • canReceiveEnergy(): boolean
                                                                                                                  • Returns boolean

                                                                                                                  canRotate

                                                                                                                  • canRotate(side: number): boolean
                                                                                                                  • Parameters

                                                                                                                    • side: number

                                                                                                                    Returns boolean

                                                                                                                  chargeSlot

                                                                                                                  • chargeSlot(slotName: string): void
                                                                                                                  • Parameters

                                                                                                                    • slotName: string

                                                                                                                    Returns void

                                                                                                                  clientLoad

                                                                                                                  • clientLoad(): void
                                                                                                                  • Called when the client copy is created


                                                                                                                    Returns void

                                                                                                                  clientTick

                                                                                                                  • clientTick(): void
                                                                                                                  • Called every tick on client thread


                                                                                                                    Returns void

                                                                                                                  clientUnload

                                                                                                                  • clientUnload(): void
                                                                                                                  • Called on destroying the client copy


                                                                                                                    Returns void

                                                                                                                  created

                                                                                                                  • created(): void
                                                                                                                  • Returns void

                                                                                                                  decreaseSlot

                                                                                                                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                  • Parameters

                                                                                                                    • slot: ItemContainerSlot
                                                                                                                    • count: number

                                                                                                                    Returns void

                                                                                                                  destroy

                                                                                                                  • destroy(): boolean
                                                                                                                  • Returns boolean

                                                                                                                  destroyBlock

                                                                                                                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                  • Parameters

                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                    • player: number

                                                                                                                    Returns void

                                                                                                                  dischargeSlot

                                                                                                                  • dischargeSlot(slotName: string): void
                                                                                                                  • Parameters

                                                                                                                    • slotName: string

                                                                                                                    Returns void

                                                                                                                  energyReceive

                                                                                                                  • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                  • Parameters

                                                                                                                    • type: string
                                                                                                                    • amount: number
                                                                                                                    • voltage: number

                                                                                                                    Returns number

                                                                                                                  energyTick

                                                                                                                  • Parameters

                                                                                                                    Returns void

                                                                                                                  explode

                                                                                                                  • explode(): void
                                                                                                                  • Returns void

                                                                                                                  getDefaultDrop

                                                                                                                  • getDefaultDrop(): number
                                                                                                                  • Returns number

                                                                                                                  getEnergyOutput

                                                                                                                  • getEnergyOutput(): number
                                                                                                                  • Returns number

                                                                                                                  getEnergyStorage

                                                                                                                  • getEnergyStorage(): number
                                                                                                                  • Returns number

                                                                                                                  getExplosionPower

                                                                                                                  • getExplosionPower(): number
                                                                                                                  • Returns number

                                                                                                                  getFacing

                                                                                                                  • getFacing(): number
                                                                                                                  • Returns number

                                                                                                                  getHeat

                                                                                                                  • getHeat(): number
                                                                                                                  • Returns number

                                                                                                                  getHeatEffectModifier

                                                                                                                  • getHeatEffectModifier(): number
                                                                                                                  • Returns number

                                                                                                                  getInterruptSound

                                                                                                                  • getInterruptSound(): string
                                                                                                                  • Returns string

                                                                                                                  getItemAt

                                                                                                                  • getItemAt(x: number, y: number): ItemContainerSlot
                                                                                                                  • Parameters

                                                                                                                    • x: number
                                                                                                                    • y: number

                                                                                                                    Returns ItemContainerSlot

                                                                                                                  getMaxHeat

                                                                                                                  • getMaxHeat(): number
                                                                                                                  • Returns number

                                                                                                                  getMaxPacketSize

                                                                                                                  • getMaxPacketSize(): number
                                                                                                                  • Returns number

                                                                                                                  getOperationSound

                                                                                                                  • getOperationSound(): string
                                                                                                                  • Returns string

                                                                                                                  getOutput

                                                                                                                  • getOutput(): number
                                                                                                                  • Returns number

                                                                                                                  getRandCoord

                                                                                                                  • getRandCoord(rad: number): Vector
                                                                                                                  • Parameters

                                                                                                                    • rad: number

                                                                                                                    Returns Vector

                                                                                                                  getReactorSize

                                                                                                                  • getReactorSize(): number
                                                                                                                  • Returns number

                                                                                                                  getRelativeEnergy

                                                                                                                  • getRelativeEnergy(): number
                                                                                                                  • Returns number

                                                                                                                  getScreenByName

                                                                                                                  • getScreenByName(): IWindow
                                                                                                                  • Returns IWindow

                                                                                                                  getScreenName

                                                                                                                  • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                  • Parameters

                                                                                                                    • player: number
                                                                                                                    • coords: ItemUseCoordinates

                                                                                                                    Returns string

                                                                                                                  getSlotName

                                                                                                                  • getSlotName(x: number, y: number): string
                                                                                                                  • Parameters

                                                                                                                    • x: number
                                                                                                                    • y: number

                                                                                                                    Returns string

                                                                                                                  getStartingSound

                                                                                                                  • getStartingSound(): string
                                                                                                                  • Returns string

                                                                                                                  getTier

                                                                                                                  • getTier(): number
                                                                                                                  • Returns number

                                                                                                                  init

                                                                                                                  • init(): void
                                                                                                                  • @deprecated

                                                                                                                    Returns void

                                                                                                                  isConductor

                                                                                                                  • isConductor(type: string): boolean
                                                                                                                  • Parameters

                                                                                                                    • type: string

                                                                                                                    Returns boolean

                                                                                                                  isFluidCooled

                                                                                                                  • isFluidCooled(): boolean
                                                                                                                  • Returns boolean

                                                                                                                  load

                                                                                                                  • load(): void
                                                                                                                  • @deprecated

                                                                                                                    Returns void

                                                                                                                  onCheckerTick

                                                                                                                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                  • Parameters

                                                                                                                    • isInitialized: boolean
                                                                                                                    • isLoaded: boolean
                                                                                                                    • wasLoaded: boolean

                                                                                                                    Returns void

                                                                                                                  onCreate

                                                                                                                  • onCreate(): void
                                                                                                                  • Called when a TileEntity is created


                                                                                                                    Returns void

                                                                                                                  onInit

                                                                                                                  • onInit(): void
                                                                                                                  • Called when a TileEntity is initialised in the world


                                                                                                                    Returns void

                                                                                                                  onItemClick

                                                                                                                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                  • Parameters

                                                                                                                    • id: number
                                                                                                                    • count: number
                                                                                                                    • data: number
                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                    • player: number
                                                                                                                    • extra: ItemExtraData

                                                                                                                    Returns boolean

                                                                                                                  onItemUse

                                                                                                                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                  • 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

                                                                                                                  • onLoad(): void
                                                                                                                  • Called when a chunk with TileEntity is loaded


                                                                                                                    Returns void

                                                                                                                  onRedstoneUpdate

                                                                                                                  • onRedstoneUpdate(signal: number): void
                                                                                                                  • Occurs when redstone signal on TileEntity block was updated


                                                                                                                    Parameters

                                                                                                                    • signal: number

                                                                                                                      signal power (0-15)

                                                                                                                    Returns void

                                                                                                                  onTick

                                                                                                                  • onTick(): void
                                                                                                                  • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                    Returns void

                                                                                                                  onUnload

                                                                                                                  • onUnload(): void
                                                                                                                  • Called when a chunk with TileEntity is unloaded


                                                                                                                    Returns void

                                                                                                                  preventClick

                                                                                                                  • preventClick(): void
                                                                                                                  • Prevents all actions on click


                                                                                                                    Returns void

                                                                                                                  processChambers

                                                                                                                  • processChambers(): void
                                                                                                                  • Returns void

                                                                                                                  projectileHit

                                                                                                                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                  • Parameters

                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                    • target: ProjectileHitTarget

                                                                                                                    Returns void

                                                                                                                  rebuildGrid

                                                                                                                  • rebuildGrid(): void
                                                                                                                  • Returns void

                                                                                                                  redstone

                                                                                                                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                  • @deprecated

                                                                                                                    Parameters

                                                                                                                    • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                      • onLoad: boolean
                                                                                                                      • power: number
                                                                                                                      • signal: number

                                                                                                                    Returns void

                                                                                                                  removeChamber

                                                                                                                  renderModel

                                                                                                                  • renderModel(): void
                                                                                                                  • Returns void

                                                                                                                  requireMoreLiquid

                                                                                                                  • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                  • Parameters

                                                                                                                    • liquid: string
                                                                                                                    • amount: number

                                                                                                                    Returns void

                                                                                                                  selfDestroy

                                                                                                                  • selfDestroy(): void
                                                                                                                  • Returns void

                                                                                                                  setActive

                                                                                                                  • setActive(isActive: boolean): void
                                                                                                                  • Parameters

                                                                                                                    • isActive: boolean

                                                                                                                    Returns void

                                                                                                                  setFacing

                                                                                                                  • setFacing(side: number): boolean
                                                                                                                  • Parameters

                                                                                                                    • side: number

                                                                                                                    Returns boolean

                                                                                                                  setFieldSize

                                                                                                                  • setFieldSize(container: ItemContainer, window: any, content: any, data: { size: number }): void
                                                                                                                  • Parameters

                                                                                                                    • container: ItemContainer
                                                                                                                    • window: any
                                                                                                                    • content: any
                                                                                                                    • data: { size: number }
                                                                                                                      • size: number

                                                                                                                    Returns void

                                                                                                                  setHeat

                                                                                                                  • setHeat(heat: number): void
                                                                                                                  • Parameters

                                                                                                                    • heat: number

                                                                                                                    Returns void

                                                                                                                  setHeatEffectModifier

                                                                                                                  • setHeatEffectModifier(value: number): void
                                                                                                                  • Parameters

                                                                                                                    • value: number

                                                                                                                    Returns void

                                                                                                                  setItemAt

                                                                                                                  • setItemAt(x: number, y: number, id: number, count: number, data: number, extra?: ItemExtraData): void
                                                                                                                  • Parameters

                                                                                                                    • x: number
                                                                                                                    • y: number
                                                                                                                    • id: number
                                                                                                                    • count: number
                                                                                                                    • data: number
                                                                                                                    • optionalextra: ItemExtraData

                                                                                                                    Returns void

                                                                                                                  setLiquidScale

                                                                                                                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                  • Parameters

                                                                                                                    • container: any
                                                                                                                    • window: any
                                                                                                                    • content: any
                                                                                                                    • data: { amount: number; liquid: string; scale: string }
                                                                                                                      • amount: number
                                                                                                                      • liquid: string
                                                                                                                      • scale: string

                                                                                                                    Returns void

                                                                                                                  setMaxHeat

                                                                                                                  • setMaxHeat(newMaxHeat: number): void
                                                                                                                  • Parameters

                                                                                                                    • newMaxHeat: number

                                                                                                                    Returns void

                                                                                                                  setupContainer

                                                                                                                  • setupContainer(): void
                                                                                                                  • Returns void

                                                                                                                  startPlaySound

                                                                                                                  • startPlaySound(): void
                                                                                                                  • Returns void

                                                                                                                  stopPlaySound

                                                                                                                  • stopPlaySound(): void
                                                                                                                  • Returns void

                                                                                                                  tick

                                                                                                                  • tick(): void
                                                                                                                  • @deprecated

                                                                                                                    Returns void

                                                                                                                  unload

                                                                                                                  • unload(): void
                                                                                                                  • @deprecated

                                                                                                                    Returns void

                                                                                                                  updateLiquidScale

                                                                                                                  • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                  • Parameters

                                                                                                                    • scale: string
                                                                                                                    • liquid: string

                                                                                                                    Returns void

                                                                                                                  updateSignal

                                                                                                                  • updateSignal(): void
                                                                                                                  • Returns void

                                                                                                                  OreWasher

                                                                                                                  OreWasher:

                                                                                                                  constructor

                                                                                                                  • Returns OreWasher

                                                                                                                  __clientMethods

                                                                                                                  __clientMethods: {}

                                                                                                                  Type declaration

                                                                                                                  • [key string]: boolean

                                                                                                                  __containerEvents

                                                                                                                  __containerEvents: {}

                                                                                                                  Type declaration

                                                                                                                  __initialized

                                                                                                                  __initialized: boolean

                                                                                                                  __networkEvents

                                                                                                                  __networkEvents: {}

                                                                                                                  Type declaration

                                                                                                                  audioSource

                                                                                                                  audioSource: AudioSource

                                                                                                                  readonlyblockID

                                                                                                                  blockID: number

                                                                                                                  blockSource

                                                                                                                  blockSource: BlockSource

                                                                                                                  click

                                                                                                                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                  Type declaration

                                                                                                                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                    • Parameters

                                                                                                                      • id: number
                                                                                                                      • count: number
                                                                                                                      • data: number
                                                                                                                      • coords: ItemUseCoordinates
                                                                                                                      • player: number
                                                                                                                      • extra: ItemExtraData

                                                                                                                      Returns boolean | void

                                                                                                                  client

                                                                                                                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                  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
                                                                                                                      • (): void
                                                                                                                      • Returns void

                                                                                                                  • tick: () => void
                                                                                                                      • (): void
                                                                                                                      • Returns void

                                                                                                                  • unload: () => void
                                                                                                                      • (): void
                                                                                                                      • Returns void

                                                                                                                  container

                                                                                                                  container: ItemContainer

                                                                                                                  containerEvents

                                                                                                                  containerEvents: {}

                                                                                                                  Type declaration

                                                                                                                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                  data

                                                                                                                  data: { energy: number; progress: number }

                                                                                                                  Type declaration

                                                                                                                  • energy: number
                                                                                                                  • progress: number

                                                                                                                  defaultDrop

                                                                                                                  defaultDrop: number

                                                                                                                  defaultEnergyDemand

                                                                                                                  defaultEnergyDemand: number

                                                                                                                  defaultEnergyStorage

                                                                                                                  defaultEnergyStorage: number

                                                                                                                  defaultProcessTime

                                                                                                                  defaultProcessTime: number

                                                                                                                  defaultTier

                                                                                                                  defaultTier: number

                                                                                                                  defaultValues

                                                                                                                  defaultValues: { energy: number; progress: number }

                                                                                                                  Type declaration

                                                                                                                  • energy: number
                                                                                                                  • progress: number

                                                                                                                  readonlydimension

                                                                                                                  dimension: number

                                                                                                                  optionalenergyDemand

                                                                                                                  energyDemand?: number

                                                                                                                  energyNode

                                                                                                                  energyNode: EnergyTileNode

                                                                                                                  energyStorage

                                                                                                                  energyStorage: number

                                                                                                                  energyTypes

                                                                                                                  energyTypes: object

                                                                                                                  events

                                                                                                                  events: {}

                                                                                                                  Type declaration

                                                                                                                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                  finishingSound

                                                                                                                  finishingSound: number

                                                                                                                  getGuiScreen

                                                                                                                  getGuiScreen: () => Nullable<IWindow>

                                                                                                                  Type declaration

                                                                                                                    • (): Nullable<IWindow>
                                                                                                                    • Returns Nullable<IWindow>

                                                                                                                  isLoaded

                                                                                                                  isLoaded: boolean

                                                                                                                  liquidStorage

                                                                                                                  liquidStorage: Storage

                                                                                                                  liquidTank

                                                                                                                  liquidTank: LiquidTank

                                                                                                                  networkData

                                                                                                                  networkData: SyncedNetworkData

                                                                                                                  networkEntity

                                                                                                                  networkEntity: NetworkEntity

                                                                                                                  networkEntityType

                                                                                                                  networkEntityType: NetworkEntityType

                                                                                                                  networkEntityTypeName

                                                                                                                  networkEntityTypeName: string

                                                                                                                  noupdate

                                                                                                                  noupdate: boolean

                                                                                                                  optionalonConnectionPlayer

                                                                                                                  onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                  Type declaration

                                                                                                                    • (client: NetworkClient): void
                                                                                                                    • Parameters

                                                                                                                      • client: NetworkClient

                                                                                                                      Returns void

                                                                                                                  optionalonDisconnectionPlayer

                                                                                                                  onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                  Type declaration

                                                                                                                    • (client: NetworkClient): void
                                                                                                                    • Parameters

                                                                                                                      • client: NetworkClient

                                                                                                                      Returns void

                                                                                                                  optionalprocessTime

                                                                                                                  processTime?: number

                                                                                                                  region

                                                                                                                  region: WorldRegion

                                                                                                                  Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                  remove

                                                                                                                  remove: boolean

                                                                                                                  sendPacket

                                                                                                                  sendPacket: (name: string, data: object) => {}

                                                                                                                  Type declaration

                                                                                                                    • (name: string, data: object): {}
                                                                                                                    • Parameters

                                                                                                                      • name: string
                                                                                                                      • data: object

                                                                                                                      Returns {}

                                                                                                                    sendResponse

                                                                                                                    sendResponse: (packetName: string, someData: object) => {}

                                                                                                                    Type declaration

                                                                                                                      • (packetName: string, someData: object): {}
                                                                                                                      • Parameters

                                                                                                                        • packetName: string
                                                                                                                        • someData: object

                                                                                                                        Returns {}

                                                                                                                      tier

                                                                                                                      tier: number

                                                                                                                      update

                                                                                                                      update: () => void

                                                                                                                      Type declaration

                                                                                                                        • (): void
                                                                                                                        • Returns void

                                                                                                                      upgrades

                                                                                                                      upgrades: string[]

                                                                                                                      readonlyuseNetworkItemContainer

                                                                                                                      useNetworkItemContainer: boolean

                                                                                                                      x

                                                                                                                      x: number

                                                                                                                      y

                                                                                                                      y: number

                                                                                                                      z

                                                                                                                      z: number

                                                                                                                      addLiquidTank

                                                                                                                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                      • Parameters

                                                                                                                        • name: string
                                                                                                                        • limit: number
                                                                                                                        • optionalliquids: string[]

                                                                                                                        Returns LiquidTank

                                                                                                                      adjustDrop

                                                                                                                      • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                      • Parameters

                                                                                                                        • item: ItemInstance

                                                                                                                        Returns ItemInstance

                                                                                                                      canExtractEnergy

                                                                                                                      • canExtractEnergy(side: number, type: string): boolean
                                                                                                                      • Parameters

                                                                                                                        • side: number
                                                                                                                        • type: string

                                                                                                                        Returns boolean

                                                                                                                      canReceiveEnergy

                                                                                                                      • canReceiveEnergy(side: number, type: string): boolean
                                                                                                                      • Parameters

                                                                                                                        • side: number
                                                                                                                        • type: string

                                                                                                                        Returns boolean

                                                                                                                      canRotate

                                                                                                                      • canRotate(side: number): boolean
                                                                                                                      • Parameters

                                                                                                                        • side: number

                                                                                                                        Returns boolean

                                                                                                                      chargeSlot

                                                                                                                      • chargeSlot(slotName: string): void
                                                                                                                      • Parameters

                                                                                                                        • slotName: string

                                                                                                                        Returns void

                                                                                                                      checkResult

                                                                                                                      • checkResult(result: number[]): boolean
                                                                                                                      • Parameters

                                                                                                                        • result: number[]

                                                                                                                        Returns boolean

                                                                                                                      clientLoad

                                                                                                                      • clientLoad(): void
                                                                                                                      • Called when the client copy is created


                                                                                                                        Returns void

                                                                                                                      clientTick

                                                                                                                      • clientTick(): void
                                                                                                                      • Called every tick on client thread


                                                                                                                        Returns void

                                                                                                                      clientUnload

                                                                                                                      • clientUnload(): void
                                                                                                                      • Called on destroying the client copy


                                                                                                                        Returns void

                                                                                                                      created

                                                                                                                      • created(): void
                                                                                                                      • Returns void

                                                                                                                      decreaseSlot

                                                                                                                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                      • Parameters

                                                                                                                        • slot: ItemContainerSlot
                                                                                                                        • count: number

                                                                                                                        Returns void

                                                                                                                      destroy

                                                                                                                      • destroy(): boolean
                                                                                                                      • Returns boolean

                                                                                                                      destroyBlock

                                                                                                                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                      • Parameters

                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                        • player: number

                                                                                                                        Returns void

                                                                                                                      dischargeSlot

                                                                                                                      • dischargeSlot(slotName: string): void
                                                                                                                      • Parameters

                                                                                                                        • slotName: string

                                                                                                                        Returns void

                                                                                                                      energyReceive

                                                                                                                      • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                      • Parameters

                                                                                                                        • type: string
                                                                                                                        • amount: number
                                                                                                                        • voltage: number

                                                                                                                        Returns number

                                                                                                                      energyTick

                                                                                                                      • Parameters

                                                                                                                        Returns void

                                                                                                                      getDefaultDrop

                                                                                                                      • getDefaultDrop(): number
                                                                                                                      • Returns number

                                                                                                                      getEnergyStorage

                                                                                                                      • getEnergyStorage(): number
                                                                                                                      • Returns number

                                                                                                                      getExplosionPower

                                                                                                                      • getExplosionPower(): number
                                                                                                                      • Returns number

                                                                                                                      getFacing

                                                                                                                      • getFacing(): number
                                                                                                                      • Returns number

                                                                                                                      getInterruptSound

                                                                                                                      • getInterruptSound(): string
                                                                                                                      • Returns string

                                                                                                                      getMaxPacketSize

                                                                                                                      • getMaxPacketSize(): number
                                                                                                                      • Returns number

                                                                                                                      getOperationSound

                                                                                                                      • getOperationSound(): string
                                                                                                                      • Returns string

                                                                                                                      getRecipeResult

                                                                                                                      • getRecipeResult(id: number): number[]
                                                                                                                      • Parameters

                                                                                                                        • id: number

                                                                                                                        Returns number[]

                                                                                                                      getRelativeEnergy

                                                                                                                      • getRelativeEnergy(): number
                                                                                                                      • Returns number

                                                                                                                      getScreenByName

                                                                                                                      • getScreenByName(): IWindow
                                                                                                                      • Returns IWindow

                                                                                                                      getScreenName

                                                                                                                      • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                      • Parameters

                                                                                                                        • player: number
                                                                                                                        • coords: ItemUseCoordinates

                                                                                                                        Returns string

                                                                                                                      getStartingSound

                                                                                                                      • getStartingSound(): string
                                                                                                                      • Returns string

                                                                                                                      getTier

                                                                                                                      • getTier(): number
                                                                                                                      • Returns number

                                                                                                                      init

                                                                                                                      • init(): void
                                                                                                                      • @deprecated

                                                                                                                        Returns void

                                                                                                                      isConductor

                                                                                                                      • isConductor(type: string): boolean
                                                                                                                      • Parameters

                                                                                                                        • type: string

                                                                                                                        Returns boolean

                                                                                                                      load

                                                                                                                      • load(): void
                                                                                                                      • @deprecated

                                                                                                                        Returns void

                                                                                                                      onCheckerTick

                                                                                                                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                      • Parameters

                                                                                                                        • isInitialized: boolean
                                                                                                                        • isLoaded: boolean
                                                                                                                        • wasLoaded: boolean

                                                                                                                        Returns void

                                                                                                                      onCreate

                                                                                                                      • onCreate(): void
                                                                                                                      • Called when a TileEntity is created


                                                                                                                        Returns void

                                                                                                                      onInit

                                                                                                                      • onInit(): void
                                                                                                                      • Called when a TileEntity is initialised in the world


                                                                                                                        Returns void

                                                                                                                      onItemClick

                                                                                                                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                      • Parameters

                                                                                                                        • id: number
                                                                                                                        • count: number
                                                                                                                        • data: number
                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                        • player: number
                                                                                                                        • extra: ItemExtraData

                                                                                                                        Returns boolean

                                                                                                                      onItemUse

                                                                                                                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                      • 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

                                                                                                                      • onLoad(): void
                                                                                                                      • Called when a chunk with TileEntity is loaded


                                                                                                                        Returns void

                                                                                                                      onRedstoneUpdate

                                                                                                                      • onRedstoneUpdate(signal: number): void
                                                                                                                      • Occurs when redstone signal on TileEntity block was updated


                                                                                                                        Parameters

                                                                                                                        • signal: number

                                                                                                                          signal power (0-15)

                                                                                                                        Returns void

                                                                                                                      onTick

                                                                                                                      • onTick(): void
                                                                                                                      • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                        Returns void

                                                                                                                      onUnload

                                                                                                                      • onUnload(): void
                                                                                                                      • Called when a chunk with TileEntity is unloaded


                                                                                                                        Returns void

                                                                                                                      preventClick

                                                                                                                      • preventClick(): void
                                                                                                                      • Prevents all actions on click


                                                                                                                        Returns void

                                                                                                                      projectileHit

                                                                                                                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                      • Parameters

                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                        • target: ProjectileHitTarget

                                                                                                                        Returns void

                                                                                                                      putResult

                                                                                                                      • putResult(result: number[]): void
                                                                                                                      • Parameters

                                                                                                                        • result: number[]

                                                                                                                        Returns void

                                                                                                                      rebuildGrid

                                                                                                                      • rebuildGrid(): void
                                                                                                                      • Returns void

                                                                                                                      redstone

                                                                                                                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                      • @deprecated

                                                                                                                        Parameters

                                                                                                                        • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                          • onLoad: boolean
                                                                                                                          • power: number
                                                                                                                          • signal: number

                                                                                                                        Returns void

                                                                                                                      renderModel

                                                                                                                      • renderModel(): void
                                                                                                                      • Returns void

                                                                                                                      requireMoreLiquid

                                                                                                                      • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                      • Parameters

                                                                                                                        • liquid: string
                                                                                                                        • amount: number

                                                                                                                        Returns void

                                                                                                                      selfDestroy

                                                                                                                      • selfDestroy(): void
                                                                                                                      • Returns void

                                                                                                                      setActive

                                                                                                                      • setActive(isActive: boolean): void
                                                                                                                      • Parameters

                                                                                                                        • isActive: boolean

                                                                                                                        Returns void

                                                                                                                      setFacing

                                                                                                                      • setFacing(side: number): boolean
                                                                                                                      • Parameters

                                                                                                                        • side: number

                                                                                                                        Returns boolean

                                                                                                                      setLiquidScale

                                                                                                                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                      • Parameters

                                                                                                                        • container: any
                                                                                                                        • window: any
                                                                                                                        • content: any
                                                                                                                        • data: { amount: number; liquid: string; scale: string }
                                                                                                                          • amount: number
                                                                                                                          • liquid: string
                                                                                                                          • scale: string

                                                                                                                        Returns void

                                                                                                                      setupContainer

                                                                                                                      • setupContainer(): void
                                                                                                                      • Returns void

                                                                                                                      startPlaySound

                                                                                                                      • startPlaySound(): void
                                                                                                                      • Returns void

                                                                                                                      stopPlaySound

                                                                                                                      • stopPlaySound(): void
                                                                                                                      • Returns void

                                                                                                                      tick

                                                                                                                      • tick(): void
                                                                                                                      • @deprecated

                                                                                                                        Returns void

                                                                                                                      unload

                                                                                                                      • unload(): void
                                                                                                                      • @deprecated

                                                                                                                        Returns void

                                                                                                                      updateLiquidScale

                                                                                                                      • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                      • Parameters

                                                                                                                        • scale: string
                                                                                                                        • liquid: string

                                                                                                                        Returns void

                                                                                                                      useUpgrades

                                                                                                                      • Returns UpgradeSet

                                                                                                                      abstractProcessingMachine

                                                                                                                      ProcessingMachine:

                                                                                                                      constructor

                                                                                                                      __clientMethods

                                                                                                                      __clientMethods: {}

                                                                                                                      Type declaration

                                                                                                                      • [key string]: boolean

                                                                                                                      __containerEvents

                                                                                                                      __containerEvents: {}

                                                                                                                      Type declaration

                                                                                                                      __initialized

                                                                                                                      __initialized: boolean

                                                                                                                      __networkEvents

                                                                                                                      __networkEvents: {}

                                                                                                                      Type declaration

                                                                                                                      audioSource

                                                                                                                      audioSource: AudioSource

                                                                                                                      readonlyblockID

                                                                                                                      blockID: number

                                                                                                                      blockSource

                                                                                                                      blockSource: BlockSource

                                                                                                                      click

                                                                                                                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                      Type declaration

                                                                                                                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                        • Parameters

                                                                                                                          • id: number
                                                                                                                          • count: number
                                                                                                                          • data: number
                                                                                                                          • coords: ItemUseCoordinates
                                                                                                                          • player: number
                                                                                                                          • extra: ItemExtraData

                                                                                                                          Returns boolean | void

                                                                                                                      client

                                                                                                                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                      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
                                                                                                                          • (): void
                                                                                                                          • Returns void

                                                                                                                      • tick: () => void
                                                                                                                          • (): void
                                                                                                                          • Returns void

                                                                                                                      • unload: () => void
                                                                                                                          • (): void
                                                                                                                          • Returns void

                                                                                                                      container

                                                                                                                      container: ItemContainer

                                                                                                                      containerEvents

                                                                                                                      containerEvents: {}

                                                                                                                      Type declaration

                                                                                                                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                      data

                                                                                                                      data: { energy: number; progress: number }

                                                                                                                      Type declaration

                                                                                                                      • energy: number
                                                                                                                      • progress: number

                                                                                                                      defaultDrop

                                                                                                                      defaultDrop: number

                                                                                                                      optionaldefaultEnergyDemand

                                                                                                                      defaultEnergyDemand?: number

                                                                                                                      defaultEnergyStorage

                                                                                                                      defaultEnergyStorage: number

                                                                                                                      optionaldefaultProcessTime

                                                                                                                      defaultProcessTime?: number

                                                                                                                      defaultTier

                                                                                                                      defaultTier: number

                                                                                                                      defaultValues

                                                                                                                      defaultValues: { energy: number; progress: number }

                                                                                                                      Type declaration

                                                                                                                      • energy: number
                                                                                                                      • progress: number

                                                                                                                      readonlydimension

                                                                                                                      dimension: number

                                                                                                                      optionalenergyDemand

                                                                                                                      energyDemand?: number

                                                                                                                      energyNode

                                                                                                                      energyNode: EnergyTileNode

                                                                                                                      energyStorage

                                                                                                                      energyStorage: number

                                                                                                                      energyTypes

                                                                                                                      energyTypes: object

                                                                                                                      events

                                                                                                                      events: {}

                                                                                                                      Type declaration

                                                                                                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                      finishingSound

                                                                                                                      finishingSound: number

                                                                                                                      getGuiScreen

                                                                                                                      getGuiScreen: () => Nullable<IWindow>

                                                                                                                      Type declaration

                                                                                                                        • (): Nullable<IWindow>
                                                                                                                        • Returns Nullable<IWindow>

                                                                                                                      isLoaded

                                                                                                                      isLoaded: boolean

                                                                                                                      liquidStorage

                                                                                                                      liquidStorage: Storage

                                                                                                                      networkData

                                                                                                                      networkData: SyncedNetworkData

                                                                                                                      networkEntity

                                                                                                                      networkEntity: NetworkEntity

                                                                                                                      networkEntityType

                                                                                                                      networkEntityType: NetworkEntityType

                                                                                                                      networkEntityTypeName

                                                                                                                      networkEntityTypeName: string

                                                                                                                      noupdate

                                                                                                                      noupdate: boolean

                                                                                                                      optionalonConnectionPlayer

                                                                                                                      onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                      Type declaration

                                                                                                                        • (client: NetworkClient): void
                                                                                                                        • Parameters

                                                                                                                          • client: NetworkClient

                                                                                                                          Returns void

                                                                                                                      optionalonDisconnectionPlayer

                                                                                                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                      Type declaration

                                                                                                                        • (client: NetworkClient): void
                                                                                                                        • Parameters

                                                                                                                          • client: NetworkClient

                                                                                                                          Returns void

                                                                                                                      optionalprocessTime

                                                                                                                      processTime?: number

                                                                                                                      region

                                                                                                                      region: WorldRegion

                                                                                                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                      remove

                                                                                                                      remove: boolean

                                                                                                                      sendPacket

                                                                                                                      sendPacket: (name: string, data: object) => {}

                                                                                                                      Type declaration

                                                                                                                        • (name: string, data: object): {}
                                                                                                                        • Parameters

                                                                                                                          • name: string
                                                                                                                          • data: object

                                                                                                                          Returns {}

                                                                                                                        sendResponse

                                                                                                                        sendResponse: (packetName: string, someData: object) => {}

                                                                                                                        Type declaration

                                                                                                                          • (packetName: string, someData: object): {}
                                                                                                                          • Parameters

                                                                                                                            • packetName: string
                                                                                                                            • someData: object

                                                                                                                            Returns {}

                                                                                                                          tier

                                                                                                                          tier: number

                                                                                                                          update

                                                                                                                          update: () => void

                                                                                                                          Type declaration

                                                                                                                            • (): void
                                                                                                                            • Returns void

                                                                                                                          optionalupgrades

                                                                                                                          upgrades?: string[]

                                                                                                                          readonlyuseNetworkItemContainer

                                                                                                                          useNetworkItemContainer: boolean

                                                                                                                          x

                                                                                                                          x: number

                                                                                                                          y

                                                                                                                          y: number

                                                                                                                          z

                                                                                                                          z: number

                                                                                                                          addLiquidTank

                                                                                                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                          • Parameters

                                                                                                                            • name: string
                                                                                                                            • limit: number
                                                                                                                            • optionalliquids: string[]

                                                                                                                            Returns LiquidTank

                                                                                                                          adjustDrop

                                                                                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                          • Parameters

                                                                                                                            • item: ItemInstance

                                                                                                                            Returns ItemInstance

                                                                                                                          canExtractEnergy

                                                                                                                          • canExtractEnergy(side: number, type: string): boolean
                                                                                                                          • Parameters

                                                                                                                            • side: number
                                                                                                                            • type: string

                                                                                                                            Returns boolean

                                                                                                                          canReceiveEnergy

                                                                                                                          • canReceiveEnergy(side: number, type: string): boolean
                                                                                                                          • Parameters

                                                                                                                            • side: number
                                                                                                                            • type: string

                                                                                                                            Returns boolean

                                                                                                                          canRotate

                                                                                                                          • canRotate(side: number): boolean
                                                                                                                          • Parameters

                                                                                                                            • side: number

                                                                                                                            Returns boolean

                                                                                                                          chargeSlot

                                                                                                                          • chargeSlot(slotName: string): void
                                                                                                                          • Parameters

                                                                                                                            • slotName: string

                                                                                                                            Returns void

                                                                                                                          clientLoad

                                                                                                                          • clientLoad(): void
                                                                                                                          • Called when the client copy is created


                                                                                                                            Returns void

                                                                                                                          clientTick

                                                                                                                          • clientTick(): void
                                                                                                                          • Called every tick on client thread


                                                                                                                            Returns void

                                                                                                                          clientUnload

                                                                                                                          • clientUnload(): void
                                                                                                                          • Called on destroying the client copy


                                                                                                                            Returns void

                                                                                                                          created

                                                                                                                          • created(): void
                                                                                                                          • Returns void

                                                                                                                          decreaseSlot

                                                                                                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                          • Parameters

                                                                                                                            • slot: ItemContainerSlot
                                                                                                                            • count: number

                                                                                                                            Returns void

                                                                                                                          destroy

                                                                                                                          • destroy(): boolean
                                                                                                                          • Returns boolean

                                                                                                                          destroyBlock

                                                                                                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                          • Parameters

                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                            • player: number

                                                                                                                            Returns void

                                                                                                                          dischargeSlot

                                                                                                                          • dischargeSlot(slotName: string): void
                                                                                                                          • Parameters

                                                                                                                            • slotName: string

                                                                                                                            Returns void

                                                                                                                          energyReceive

                                                                                                                          • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                          • Parameters

                                                                                                                            • type: string
                                                                                                                            • amount: number
                                                                                                                            • voltage: number

                                                                                                                            Returns number

                                                                                                                          energyTick

                                                                                                                          • Parameters

                                                                                                                            Returns void

                                                                                                                          getDefaultDrop

                                                                                                                          • getDefaultDrop(): number
                                                                                                                          • Returns number

                                                                                                                          getEnergyStorage

                                                                                                                          • getEnergyStorage(): number
                                                                                                                          • Returns number

                                                                                                                          getExplosionPower

                                                                                                                          • getExplosionPower(): number
                                                                                                                          • Returns number

                                                                                                                          getFacing

                                                                                                                          • getFacing(): number
                                                                                                                          • Returns number

                                                                                                                          getInterruptSound

                                                                                                                          • getInterruptSound(): string
                                                                                                                          • Returns string

                                                                                                                          getMaxPacketSize

                                                                                                                          • getMaxPacketSize(): number
                                                                                                                          • Returns number

                                                                                                                          getOperationSound

                                                                                                                          • getOperationSound(): string
                                                                                                                          • Returns string

                                                                                                                          getRecipeResult

                                                                                                                          • getRecipeResult(id: number, data: number): any
                                                                                                                          • Parameters

                                                                                                                            • id: number
                                                                                                                            • data: number

                                                                                                                            Returns any

                                                                                                                          getRelativeEnergy

                                                                                                                          • getRelativeEnergy(): number
                                                                                                                          • Returns number

                                                                                                                          getScreenByName

                                                                                                                          • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                          • Parameters

                                                                                                                            • screenName: string
                                                                                                                            • container: ItemContainer

                                                                                                                            Returns IWindow

                                                                                                                          getScreenName

                                                                                                                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                          • Parameters

                                                                                                                            • player: number
                                                                                                                            • coords: ItemUseCoordinates

                                                                                                                            Returns string

                                                                                                                          getStartingSound

                                                                                                                          • getStartingSound(): string
                                                                                                                          • Returns string

                                                                                                                          getTier

                                                                                                                          • getTier(): number
                                                                                                                          • Returns number

                                                                                                                          init

                                                                                                                          • init(): void
                                                                                                                          • @deprecated

                                                                                                                            Returns void

                                                                                                                          isConductor

                                                                                                                          • isConductor(type: string): boolean
                                                                                                                          • Parameters

                                                                                                                            • type: string

                                                                                                                            Returns boolean

                                                                                                                          load

                                                                                                                          • load(): void
                                                                                                                          • @deprecated

                                                                                                                            Returns void

                                                                                                                          onCheckerTick

                                                                                                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                          • Parameters

                                                                                                                            • isInitialized: boolean
                                                                                                                            • isLoaded: boolean
                                                                                                                            • wasLoaded: boolean

                                                                                                                            Returns void

                                                                                                                          onCreate

                                                                                                                          • onCreate(): void
                                                                                                                          • Called when a TileEntity is created


                                                                                                                            Returns void

                                                                                                                          onInit

                                                                                                                          • onInit(): void
                                                                                                                          • Called when a TileEntity is initialised in the world


                                                                                                                            Returns void

                                                                                                                          onItemClick

                                                                                                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                          • Parameters

                                                                                                                            • id: number
                                                                                                                            • count: number
                                                                                                                            • data: number
                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                            • player: number
                                                                                                                            • extra: ItemExtraData

                                                                                                                            Returns boolean

                                                                                                                          onItemUse

                                                                                                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                          • 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

                                                                                                                          • onLoad(): void
                                                                                                                          • Called when a chunk with TileEntity is loaded


                                                                                                                            Returns void

                                                                                                                          onRedstoneUpdate

                                                                                                                          • onRedstoneUpdate(signal: number): void
                                                                                                                          • Occurs when redstone signal on TileEntity block was updated


                                                                                                                            Parameters

                                                                                                                            • signal: number

                                                                                                                              signal power (0-15)

                                                                                                                            Returns void

                                                                                                                          onTick

                                                                                                                          • onTick(): void
                                                                                                                          • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                            Returns void

                                                                                                                          onUnload

                                                                                                                          • onUnload(): void
                                                                                                                          • Called when a chunk with TileEntity is unloaded


                                                                                                                            Returns void

                                                                                                                          preventClick

                                                                                                                          • preventClick(): void
                                                                                                                          • Prevents all actions on click


                                                                                                                            Returns void

                                                                                                                          projectileHit

                                                                                                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                          • Parameters

                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                            • target: ProjectileHitTarget

                                                                                                                            Returns void

                                                                                                                          rebuildGrid

                                                                                                                          • rebuildGrid(): void
                                                                                                                          • Returns void

                                                                                                                          redstone

                                                                                                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                          • @deprecated

                                                                                                                            Parameters

                                                                                                                            • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                              • onLoad: boolean
                                                                                                                              • power: number
                                                                                                                              • signal: number

                                                                                                                            Returns void

                                                                                                                          renderModel

                                                                                                                          • renderModel(): void
                                                                                                                          • Returns void

                                                                                                                          requireMoreLiquid

                                                                                                                          • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                          • Parameters

                                                                                                                            • liquid: string
                                                                                                                            • amount: number

                                                                                                                            Returns void

                                                                                                                          selfDestroy

                                                                                                                          • selfDestroy(): void
                                                                                                                          • Returns void

                                                                                                                          setActive

                                                                                                                          • setActive(isActive: boolean): void
                                                                                                                          • Parameters

                                                                                                                            • isActive: boolean

                                                                                                                            Returns void

                                                                                                                          setFacing

                                                                                                                          • setFacing(side: number): boolean
                                                                                                                          • Parameters

                                                                                                                            • side: number

                                                                                                                            Returns boolean

                                                                                                                          setLiquidScale

                                                                                                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                          • Parameters

                                                                                                                            • container: any
                                                                                                                            • window: any
                                                                                                                            • content: any
                                                                                                                            • data: { amount: number; liquid: string; scale: string }
                                                                                                                              • amount: number
                                                                                                                              • liquid: string
                                                                                                                              • scale: string

                                                                                                                            Returns void

                                                                                                                          setupContainer

                                                                                                                          • setupContainer(): void
                                                                                                                          • Returns void

                                                                                                                          startPlaySound

                                                                                                                          • startPlaySound(): void
                                                                                                                          • Returns void

                                                                                                                          stopPlaySound

                                                                                                                          • stopPlaySound(): void
                                                                                                                          • Returns void

                                                                                                                          tick

                                                                                                                          • tick(): void
                                                                                                                          • @deprecated

                                                                                                                            Returns void

                                                                                                                          unload

                                                                                                                          • unload(): void
                                                                                                                          • @deprecated

                                                                                                                            Returns void

                                                                                                                          updateLiquidScale

                                                                                                                          • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                          • Parameters

                                                                                                                            • scale: string
                                                                                                                            • liquid: string

                                                                                                                            Returns void

                                                                                                                          useUpgrades

                                                                                                                          Pump

                                                                                                                          Pump:

                                                                                                                          constructor

                                                                                                                          • Returns Pump

                                                                                                                          __clientMethods

                                                                                                                          __clientMethods: {}

                                                                                                                          Type declaration

                                                                                                                          • [key string]: boolean

                                                                                                                          __containerEvents

                                                                                                                          __containerEvents: {}

                                                                                                                          Type declaration

                                                                                                                          __initialized

                                                                                                                          __initialized: boolean

                                                                                                                          __networkEvents

                                                                                                                          __networkEvents: {}

                                                                                                                          Type declaration

                                                                                                                          audioSource

                                                                                                                          audioSource: AudioSource

                                                                                                                          readonlyblockID

                                                                                                                          blockID: number

                                                                                                                          blockSource

                                                                                                                          blockSource: BlockSource

                                                                                                                          click

                                                                                                                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                          Type declaration

                                                                                                                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                            • Parameters

                                                                                                                              • id: number
                                                                                                                              • count: number
                                                                                                                              • data: number
                                                                                                                              • coords: ItemUseCoordinates
                                                                                                                              • player: number
                                                                                                                              • extra: ItemExtraData

                                                                                                                              Returns boolean | void

                                                                                                                          client

                                                                                                                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                          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
                                                                                                                              • (): void
                                                                                                                              • Returns void

                                                                                                                          • tick: () => void
                                                                                                                              • (): void
                                                                                                                              • Returns void

                                                                                                                          • unload: () => void
                                                                                                                              • (): void
                                                                                                                              • Returns void

                                                                                                                          container

                                                                                                                          container: ItemContainer

                                                                                                                          containerEvents

                                                                                                                          containerEvents: {}

                                                                                                                          Type declaration

                                                                                                                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                          data

                                                                                                                          data: { coords: any; energy: number; progress: number }

                                                                                                                          Type declaration

                                                                                                                          • coords: any
                                                                                                                          • energy: number
                                                                                                                          • progress: number

                                                                                                                          defaultDrop

                                                                                                                          defaultDrop: number

                                                                                                                          defaultEnergyDemand

                                                                                                                          defaultEnergyDemand: number

                                                                                                                          defaultEnergyStorage

                                                                                                                          defaultEnergyStorage: number

                                                                                                                          defaultProcessTime

                                                                                                                          defaultProcessTime: number

                                                                                                                          defaultTier

                                                                                                                          defaultTier: number

                                                                                                                          defaultValues

                                                                                                                          defaultValues: { coords: any; energy: number; progress: number }

                                                                                                                          Type declaration

                                                                                                                          • coords: any
                                                                                                                          • energy: number
                                                                                                                          • progress: number

                                                                                                                          readonlydimension

                                                                                                                          dimension: number

                                                                                                                          energyDemand

                                                                                                                          energyDemand: number

                                                                                                                          energyNode

                                                                                                                          energyNode: EnergyTileNode

                                                                                                                          energyStorage

                                                                                                                          energyStorage: number

                                                                                                                          energyTypes

                                                                                                                          energyTypes: object

                                                                                                                          events

                                                                                                                          events: {}

                                                                                                                          Type declaration

                                                                                                                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                          finishingSound

                                                                                                                          finishingSound: number

                                                                                                                          getGuiScreen

                                                                                                                          getGuiScreen: () => Nullable<IWindow>

                                                                                                                          Type declaration

                                                                                                                            • (): Nullable<IWindow>
                                                                                                                            • Returns Nullable<IWindow>

                                                                                                                          isLoaded

                                                                                                                          isLoaded: boolean

                                                                                                                          liquidStorage

                                                                                                                          liquidStorage: Storage

                                                                                                                          liquidTank

                                                                                                                          liquidTank: LiquidTank

                                                                                                                          networkData

                                                                                                                          networkData: SyncedNetworkData

                                                                                                                          networkEntity

                                                                                                                          networkEntity: NetworkEntity

                                                                                                                          networkEntityType

                                                                                                                          networkEntityType: NetworkEntityType

                                                                                                                          networkEntityTypeName

                                                                                                                          networkEntityTypeName: string

                                                                                                                          noupdate

                                                                                                                          noupdate: boolean

                                                                                                                          optionalonConnectionPlayer

                                                                                                                          onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                          Type declaration

                                                                                                                            • (client: NetworkClient): void
                                                                                                                            • Parameters

                                                                                                                              • client: NetworkClient

                                                                                                                              Returns void

                                                                                                                          optionalonDisconnectionPlayer

                                                                                                                          onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                          Type declaration

                                                                                                                            • (client: NetworkClient): void
                                                                                                                            • Parameters

                                                                                                                              • client: NetworkClient

                                                                                                                              Returns void

                                                                                                                          processTime

                                                                                                                          processTime: number

                                                                                                                          region

                                                                                                                          region: WorldRegion

                                                                                                                          Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                          remove

                                                                                                                          remove: boolean

                                                                                                                          sendPacket

                                                                                                                          sendPacket: (name: string, data: object) => {}

                                                                                                                          Type declaration

                                                                                                                            • (name: string, data: object): {}
                                                                                                                            • Parameters

                                                                                                                              • name: string
                                                                                                                              • data: object

                                                                                                                              Returns {}

                                                                                                                            sendResponse

                                                                                                                            sendResponse: (packetName: string, someData: object) => {}

                                                                                                                            Type declaration

                                                                                                                              • (packetName: string, someData: object): {}
                                                                                                                              • Parameters

                                                                                                                                • packetName: string
                                                                                                                                • someData: object

                                                                                                                                Returns {}

                                                                                                                              tier

                                                                                                                              tier: number

                                                                                                                              update

                                                                                                                              update: () => void

                                                                                                                              Type declaration

                                                                                                                                • (): void
                                                                                                                                • Returns void

                                                                                                                              upgrades

                                                                                                                              upgrades: string[]

                                                                                                                              readonlyuseNetworkItemContainer

                                                                                                                              useNetworkItemContainer: boolean

                                                                                                                              x

                                                                                                                              x: number

                                                                                                                              y

                                                                                                                              y: number

                                                                                                                              z

                                                                                                                              z: number

                                                                                                                              addLiquidTank

                                                                                                                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                              • Parameters

                                                                                                                                • name: string
                                                                                                                                • limit: number
                                                                                                                                • optionalliquids: string[]

                                                                                                                                Returns LiquidTank

                                                                                                                              adjustDrop

                                                                                                                              • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                              • Parameters

                                                                                                                                • item: ItemInstance

                                                                                                                                Returns ItemInstance

                                                                                                                              canExtractEnergy

                                                                                                                              • canExtractEnergy(side: number, type: string): boolean
                                                                                                                              • Parameters

                                                                                                                                • side: number
                                                                                                                                • type: string

                                                                                                                                Returns boolean

                                                                                                                              canReceiveEnergy

                                                                                                                              • canReceiveEnergy(side: number, type: string): boolean
                                                                                                                              • Parameters

                                                                                                                                • side: number
                                                                                                                                • type: string

                                                                                                                                Returns boolean

                                                                                                                              canRotate

                                                                                                                              • canRotate(side: number): boolean
                                                                                                                              • Parameters

                                                                                                                                • side: number

                                                                                                                                Returns boolean

                                                                                                                              chargeSlot

                                                                                                                              • chargeSlot(slotName: string): void
                                                                                                                              • Parameters

                                                                                                                                • slotName: string

                                                                                                                                Returns void

                                                                                                                              clientLoad

                                                                                                                              • clientLoad(): void
                                                                                                                              • Called when the client copy is created


                                                                                                                                Returns void

                                                                                                                              clientTick

                                                                                                                              • clientTick(): void
                                                                                                                              • Called every tick on client thread


                                                                                                                                Returns void

                                                                                                                              clientUnload

                                                                                                                              • clientUnload(): void
                                                                                                                              • Called on destroying the client copy


                                                                                                                                Returns void

                                                                                                                              created

                                                                                                                              • created(): void
                                                                                                                              • Returns void

                                                                                                                              decreaseSlot

                                                                                                                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                              • Parameters

                                                                                                                                • slot: ItemContainerSlot
                                                                                                                                • count: number

                                                                                                                                Returns void

                                                                                                                              destroy

                                                                                                                              • destroy(): boolean
                                                                                                                              • Returns boolean

                                                                                                                              destroyBlock

                                                                                                                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                              • Parameters

                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                • player: number

                                                                                                                                Returns void

                                                                                                                              dischargeSlot

                                                                                                                              • dischargeSlot(slotName: string): void
                                                                                                                              • Parameters

                                                                                                                                • slotName: string

                                                                                                                                Returns void

                                                                                                                              energyReceive

                                                                                                                              • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                              • Parameters

                                                                                                                                • type: string
                                                                                                                                • amount: number
                                                                                                                                • voltage: number

                                                                                                                                Returns number

                                                                                                                              energyTick

                                                                                                                              • Parameters

                                                                                                                                Returns void

                                                                                                                              extractLiquid

                                                                                                                              • extractLiquid(): void
                                                                                                                              • Returns void

                                                                                                                              getDefaultDrop

                                                                                                                              • getDefaultDrop(): number
                                                                                                                              • Returns number

                                                                                                                              getEnergyStorage

                                                                                                                              • getEnergyStorage(): number
                                                                                                                              • Returns number

                                                                                                                              getExplosionPower

                                                                                                                              • getExplosionPower(): number
                                                                                                                              • Returns number

                                                                                                                              getFacing

                                                                                                                              • getFacing(): number
                                                                                                                              • Returns number

                                                                                                                              getInterruptSound

                                                                                                                              • getInterruptSound(): string
                                                                                                                              • Returns string

                                                                                                                              getLiquidType

                                                                                                                              • getLiquidType(liquid: string, block: Tile): string
                                                                                                                              • Parameters

                                                                                                                                • liquid: string
                                                                                                                                • block: Tile

                                                                                                                                Returns string

                                                                                                                              getMaxPacketSize

                                                                                                                              • getMaxPacketSize(): number
                                                                                                                              • Returns number

                                                                                                                              getOperationSound

                                                                                                                              • getOperationSound(): string
                                                                                                                              • Returns string

                                                                                                                              getRelativeEnergy

                                                                                                                              • getRelativeEnergy(): number
                                                                                                                              • Returns number

                                                                                                                              getScreenByName

                                                                                                                              • getScreenByName(): IWindow
                                                                                                                              • Returns IWindow

                                                                                                                              getScreenName

                                                                                                                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                              • Parameters

                                                                                                                                • player: number
                                                                                                                                • coords: ItemUseCoordinates

                                                                                                                                Returns string

                                                                                                                              getStartingSound

                                                                                                                              • getStartingSound(): string
                                                                                                                              • Returns string

                                                                                                                              getTier

                                                                                                                              • getTier(): number
                                                                                                                              • Returns number

                                                                                                                              init

                                                                                                                              • init(): void
                                                                                                                              • @deprecated

                                                                                                                                Returns void

                                                                                                                              isConductor

                                                                                                                              • isConductor(type: string): boolean
                                                                                                                              • Parameters

                                                                                                                                • type: string

                                                                                                                                Returns boolean

                                                                                                                              load

                                                                                                                              • load(): void
                                                                                                                              • @deprecated

                                                                                                                                Returns void

                                                                                                                              onCheckerTick

                                                                                                                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                              • Parameters

                                                                                                                                • isInitialized: boolean
                                                                                                                                • isLoaded: boolean
                                                                                                                                • wasLoaded: boolean

                                                                                                                                Returns void

                                                                                                                              onCreate

                                                                                                                              • onCreate(): void
                                                                                                                              • Called when a TileEntity is created


                                                                                                                                Returns void

                                                                                                                              onInit

                                                                                                                              • onInit(): void
                                                                                                                              • Called when a TileEntity is initialised in the world


                                                                                                                                Returns void

                                                                                                                              onItemClick

                                                                                                                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                              • Parameters

                                                                                                                                • id: number
                                                                                                                                • count: number
                                                                                                                                • data: number
                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                • player: number
                                                                                                                                • extra: ItemExtraData

                                                                                                                                Returns boolean

                                                                                                                              onItemUse

                                                                                                                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                              • 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

                                                                                                                              • onLoad(): void
                                                                                                                              • Called when a chunk with TileEntity is loaded


                                                                                                                                Returns void

                                                                                                                              onRedstoneUpdate

                                                                                                                              • onRedstoneUpdate(signal: number): void
                                                                                                                              • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                Parameters

                                                                                                                                • signal: number

                                                                                                                                  signal power (0-15)

                                                                                                                                Returns void

                                                                                                                              onTick

                                                                                                                              • onTick(): void
                                                                                                                              • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                Returns void

                                                                                                                              onUnload

                                                                                                                              • onUnload(): void
                                                                                                                              • Called when a chunk with TileEntity is unloaded


                                                                                                                                Returns void

                                                                                                                              preventClick

                                                                                                                              • preventClick(): void
                                                                                                                              • Prevents all actions on click


                                                                                                                                Returns void

                                                                                                                              projectileHit

                                                                                                                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                              • Parameters

                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                • target: ProjectileHitTarget

                                                                                                                                Returns void

                                                                                                                              rebuildGrid

                                                                                                                              • rebuildGrid(): void
                                                                                                                              • Returns void

                                                                                                                              recursiveSearch

                                                                                                                              • recursiveSearch(liquid: string, x: number, y: number, z: number, map: {}): Vector
                                                                                                                              • Parameters

                                                                                                                                • liquid: string
                                                                                                                                • x: number
                                                                                                                                • y: number
                                                                                                                                • z: number
                                                                                                                                • map: {}

                                                                                                                                  Returns Vector

                                                                                                                                redstone

                                                                                                                                • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                • @deprecated

                                                                                                                                  Parameters

                                                                                                                                  • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                    • onLoad: boolean
                                                                                                                                    • power: number
                                                                                                                                    • signal: number

                                                                                                                                  Returns void

                                                                                                                                renderModel

                                                                                                                                • renderModel(): void
                                                                                                                                • Returns void

                                                                                                                                requireMoreLiquid

                                                                                                                                • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                • Parameters

                                                                                                                                  • liquid: string
                                                                                                                                  • amount: number

                                                                                                                                  Returns void

                                                                                                                                selfDestroy

                                                                                                                                • selfDestroy(): void
                                                                                                                                • Returns void

                                                                                                                                setActive

                                                                                                                                • setActive(isActive: boolean): void
                                                                                                                                • Parameters

                                                                                                                                  • isActive: boolean

                                                                                                                                  Returns void

                                                                                                                                setFacing

                                                                                                                                • setFacing(side: number): boolean
                                                                                                                                • Parameters

                                                                                                                                  • side: number

                                                                                                                                  Returns boolean

                                                                                                                                setLiquidScale

                                                                                                                                • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                • Parameters

                                                                                                                                  • container: any
                                                                                                                                  • window: any
                                                                                                                                  • content: any
                                                                                                                                  • data: { amount: number; liquid: string; scale: string }
                                                                                                                                    • amount: number
                                                                                                                                    • liquid: string
                                                                                                                                    • scale: string

                                                                                                                                  Returns void

                                                                                                                                setupContainer

                                                                                                                                • setupContainer(): void
                                                                                                                                • Returns void

                                                                                                                                startPlaySound

                                                                                                                                • startPlaySound(): void
                                                                                                                                • Returns void

                                                                                                                                stopPlaySound

                                                                                                                                • stopPlaySound(): void
                                                                                                                                • Returns void

                                                                                                                                tick

                                                                                                                                • tick(): void
                                                                                                                                • @deprecated

                                                                                                                                  Returns void

                                                                                                                                unload

                                                                                                                                • unload(): void
                                                                                                                                • @deprecated

                                                                                                                                  Returns void

                                                                                                                                updateLiquidScale

                                                                                                                                • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                • Parameters

                                                                                                                                  • scale: string
                                                                                                                                  • liquid: string

                                                                                                                                  Returns void

                                                                                                                                useUpgrades

                                                                                                                                • useUpgrades(): void
                                                                                                                                • Returns void

                                                                                                                                RTGenerator

                                                                                                                                RTGenerator:

                                                                                                                                constructor

                                                                                                                                • Returns RTGenerator

                                                                                                                                __clientMethods

                                                                                                                                __clientMethods: {}

                                                                                                                                Type declaration

                                                                                                                                • [key string]: boolean

                                                                                                                                __containerEvents

                                                                                                                                __containerEvents: {}

                                                                                                                                Type declaration

                                                                                                                                __initialized

                                                                                                                                __initialized: boolean

                                                                                                                                __networkEvents

                                                                                                                                __networkEvents: {}

                                                                                                                                Type declaration

                                                                                                                                audioSource

                                                                                                                                audioSource: AudioSource

                                                                                                                                readonlyblockID

                                                                                                                                blockID: number

                                                                                                                                blockSource

                                                                                                                                blockSource: BlockSource

                                                                                                                                click

                                                                                                                                click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                Type declaration

                                                                                                                                  • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                  • Parameters

                                                                                                                                    • id: number
                                                                                                                                    • count: number
                                                                                                                                    • data: number
                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                    • player: number
                                                                                                                                    • extra: ItemExtraData

                                                                                                                                    Returns boolean | void

                                                                                                                                client

                                                                                                                                client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                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
                                                                                                                                    • (): void
                                                                                                                                    • Returns void

                                                                                                                                • tick: () => void
                                                                                                                                    • (): void
                                                                                                                                    • Returns void

                                                                                                                                • unload: () => void
                                                                                                                                    • (): void
                                                                                                                                    • Returns void

                                                                                                                                container

                                                                                                                                container: ItemContainer

                                                                                                                                containerEvents

                                                                                                                                containerEvents: {}

                                                                                                                                Type declaration

                                                                                                                                • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                data

                                                                                                                                data: { energy: number }

                                                                                                                                Type declaration

                                                                                                                                • energy: number

                                                                                                                                defaultDrop

                                                                                                                                defaultDrop: number

                                                                                                                                defaultValues

                                                                                                                                defaultValues: { energy: number }

                                                                                                                                Type declaration

                                                                                                                                • energy: number

                                                                                                                                readonlydimension

                                                                                                                                dimension: number

                                                                                                                                energyNode

                                                                                                                                energyNode: EnergyTileNode

                                                                                                                                energyTypes

                                                                                                                                energyTypes: object

                                                                                                                                events

                                                                                                                                events: {}

                                                                                                                                Type declaration

                                                                                                                                • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                finishingSound

                                                                                                                                finishingSound: number

                                                                                                                                getGuiScreen

                                                                                                                                getGuiScreen: () => Nullable<IWindow>

                                                                                                                                Type declaration

                                                                                                                                  • (): Nullable<IWindow>
                                                                                                                                  • Returns Nullable<IWindow>

                                                                                                                                isLoaded

                                                                                                                                isLoaded: boolean

                                                                                                                                liquidStorage

                                                                                                                                liquidStorage: Storage

                                                                                                                                networkData

                                                                                                                                networkData: SyncedNetworkData

                                                                                                                                networkEntity

                                                                                                                                networkEntity: NetworkEntity

                                                                                                                                networkEntityType

                                                                                                                                networkEntityType: NetworkEntityType

                                                                                                                                networkEntityTypeName

                                                                                                                                networkEntityTypeName: string

                                                                                                                                noupdate

                                                                                                                                noupdate: boolean

                                                                                                                                optionalonConnectionPlayer

                                                                                                                                onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                Type declaration

                                                                                                                                  • (client: NetworkClient): void
                                                                                                                                  • Parameters

                                                                                                                                    • client: NetworkClient

                                                                                                                                    Returns void

                                                                                                                                optionalonDisconnectionPlayer

                                                                                                                                onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                Type declaration

                                                                                                                                  • (client: NetworkClient): void
                                                                                                                                  • Parameters

                                                                                                                                    • client: NetworkClient

                                                                                                                                    Returns void

                                                                                                                                region

                                                                                                                                region: WorldRegion

                                                                                                                                Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                remove

                                                                                                                                remove: boolean

                                                                                                                                sendPacket

                                                                                                                                sendPacket: (name: string, data: object) => {}

                                                                                                                                Type declaration

                                                                                                                                  • (name: string, data: object): {}
                                                                                                                                  • Parameters

                                                                                                                                    • name: string
                                                                                                                                    • data: object

                                                                                                                                    Returns {}

                                                                                                                                  sendResponse

                                                                                                                                  sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                  Type declaration

                                                                                                                                    • (packetName: string, someData: object): {}
                                                                                                                                    • Parameters

                                                                                                                                      • packetName: string
                                                                                                                                      • someData: object

                                                                                                                                      Returns {}

                                                                                                                                    update

                                                                                                                                    update: () => void

                                                                                                                                    Type declaration

                                                                                                                                      • (): void
                                                                                                                                      • Returns void

                                                                                                                                    optionalupgrades

                                                                                                                                    upgrades?: string[]

                                                                                                                                    readonlyuseNetworkItemContainer

                                                                                                                                    useNetworkItemContainer: boolean

                                                                                                                                    x

                                                                                                                                    x: number

                                                                                                                                    y

                                                                                                                                    y: number

                                                                                                                                    z

                                                                                                                                    z: number

                                                                                                                                    addLiquidTank

                                                                                                                                    • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                    • Parameters

                                                                                                                                      • name: string
                                                                                                                                      • limit: number
                                                                                                                                      • optionalliquids: string[]

                                                                                                                                      Returns LiquidTank

                                                                                                                                    adjustDrop

                                                                                                                                    • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                    • Parameters

                                                                                                                                      • item: ItemInstance

                                                                                                                                      Returns ItemInstance

                                                                                                                                    canExtractEnergy

                                                                                                                                    • canExtractEnergy(): boolean
                                                                                                                                    • Returns boolean

                                                                                                                                    canReceiveEnergy

                                                                                                                                    • canReceiveEnergy(): boolean
                                                                                                                                    • Returns boolean

                                                                                                                                    canRotate

                                                                                                                                    • canRotate(side: number): boolean
                                                                                                                                    • Parameters

                                                                                                                                      • side: number

                                                                                                                                      Returns boolean

                                                                                                                                    chargeSlot

                                                                                                                                    • chargeSlot(slotName: string): void
                                                                                                                                    • Parameters

                                                                                                                                      • slotName: string

                                                                                                                                      Returns void

                                                                                                                                    clientLoad

                                                                                                                                    • clientLoad(): void
                                                                                                                                    • Called when the client copy is created


                                                                                                                                      Returns void

                                                                                                                                    clientTick

                                                                                                                                    • clientTick(): void
                                                                                                                                    • Called every tick on client thread


                                                                                                                                      Returns void

                                                                                                                                    clientUnload

                                                                                                                                    • clientUnload(): void
                                                                                                                                    • Called on destroying the client copy


                                                                                                                                      Returns void

                                                                                                                                    created

                                                                                                                                    • created(): void
                                                                                                                                    • Returns void

                                                                                                                                    decreaseSlot

                                                                                                                                    • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                    • Parameters

                                                                                                                                      • slot: ItemContainerSlot
                                                                                                                                      • count: number

                                                                                                                                      Returns void

                                                                                                                                    destroy

                                                                                                                                    • destroy(): boolean
                                                                                                                                    • Returns boolean

                                                                                                                                    destroyBlock

                                                                                                                                    • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                    • Parameters

                                                                                                                                      • coords: ItemUseCoordinates
                                                                                                                                      • player: number

                                                                                                                                      Returns void

                                                                                                                                    dischargeSlot

                                                                                                                                    • dischargeSlot(slotName: string): void
                                                                                                                                    • Parameters

                                                                                                                                      • slotName: string

                                                                                                                                      Returns void

                                                                                                                                    energyReceive

                                                                                                                                    • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                    • Parameters

                                                                                                                                      • type: string
                                                                                                                                      • amount: number
                                                                                                                                      • voltage: number

                                                                                                                                      Returns number

                                                                                                                                    energyTick

                                                                                                                                    • Parameters

                                                                                                                                      Returns void

                                                                                                                                    getDefaultDrop

                                                                                                                                    • getDefaultDrop(): number
                                                                                                                                    • Returns number

                                                                                                                                    getEnergyStorage

                                                                                                                                    • getEnergyStorage(): number
                                                                                                                                    • Returns number

                                                                                                                                    getExplosionPower

                                                                                                                                    • getExplosionPower(): number
                                                                                                                                    • Returns number

                                                                                                                                    getFacing

                                                                                                                                    • getFacing(): number
                                                                                                                                    • Returns number

                                                                                                                                    getInterruptSound

                                                                                                                                    • getInterruptSound(): string
                                                                                                                                    • Returns string

                                                                                                                                    getMaxPacketSize

                                                                                                                                    • getMaxPacketSize(): number
                                                                                                                                    • Returns number

                                                                                                                                    getOperationSound

                                                                                                                                    • getOperationSound(): string
                                                                                                                                    • Returns string

                                                                                                                                    getRelativeEnergy

                                                                                                                                    • getRelativeEnergy(): number
                                                                                                                                    • Returns number

                                                                                                                                    getScreenByName

                                                                                                                                    • getScreenByName(): IWindow
                                                                                                                                    • Returns IWindow

                                                                                                                                    getScreenName

                                                                                                                                    • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                    • Parameters

                                                                                                                                      • player: number
                                                                                                                                      • coords: ItemUseCoordinates

                                                                                                                                      Returns string

                                                                                                                                    getStartingSound

                                                                                                                                    • getStartingSound(): string
                                                                                                                                    • Returns string

                                                                                                                                    getTier

                                                                                                                                    • getTier(): number
                                                                                                                                    • Returns number

                                                                                                                                    init

                                                                                                                                    • init(): void
                                                                                                                                    • @deprecated

                                                                                                                                      Returns void

                                                                                                                                    isConductor

                                                                                                                                    • isConductor(type: string): boolean
                                                                                                                                    • Parameters

                                                                                                                                      • type: string

                                                                                                                                      Returns boolean

                                                                                                                                    load

                                                                                                                                    • load(): void
                                                                                                                                    • @deprecated

                                                                                                                                      Returns void

                                                                                                                                    onCheckerTick

                                                                                                                                    • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                    • Parameters

                                                                                                                                      • isInitialized: boolean
                                                                                                                                      • isLoaded: boolean
                                                                                                                                      • wasLoaded: boolean

                                                                                                                                      Returns void

                                                                                                                                    onCreate

                                                                                                                                    • onCreate(): void
                                                                                                                                    • Called when a TileEntity is created


                                                                                                                                      Returns void

                                                                                                                                    onInit

                                                                                                                                    • onInit(): void
                                                                                                                                    • Called when a TileEntity is initialised in the world


                                                                                                                                      Returns void

                                                                                                                                    onItemClick

                                                                                                                                    • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                    • Parameters

                                                                                                                                      • id: number
                                                                                                                                      • count: number
                                                                                                                                      • data: number
                                                                                                                                      • coords: ItemUseCoordinates
                                                                                                                                      • player: number
                                                                                                                                      • extra: ItemExtraData

                                                                                                                                      Returns boolean

                                                                                                                                    onItemUse

                                                                                                                                    • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                    • 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

                                                                                                                                    • onLoad(): void
                                                                                                                                    • Called when a chunk with TileEntity is loaded


                                                                                                                                      Returns void

                                                                                                                                    onRedstoneUpdate

                                                                                                                                    • onRedstoneUpdate(signal: number): void
                                                                                                                                    • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                      Parameters

                                                                                                                                      • signal: number

                                                                                                                                        signal power (0-15)

                                                                                                                                      Returns void

                                                                                                                                    onTick

                                                                                                                                    • onTick(): void
                                                                                                                                    • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                      Returns void

                                                                                                                                    onUnload

                                                                                                                                    • onUnload(): void
                                                                                                                                    • Called when a chunk with TileEntity is unloaded


                                                                                                                                      Returns void

                                                                                                                                    preventClick

                                                                                                                                    • preventClick(): void
                                                                                                                                    • Prevents all actions on click


                                                                                                                                      Returns void

                                                                                                                                    projectileHit

                                                                                                                                    • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                    • Parameters

                                                                                                                                      • coords: ItemUseCoordinates
                                                                                                                                      • target: ProjectileHitTarget

                                                                                                                                      Returns void

                                                                                                                                    rebuildGrid

                                                                                                                                    • rebuildGrid(): void
                                                                                                                                    • Returns void

                                                                                                                                    redstone

                                                                                                                                    • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                    • @deprecated

                                                                                                                                      Parameters

                                                                                                                                      • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                        • onLoad: boolean
                                                                                                                                        • power: number
                                                                                                                                        • signal: number

                                                                                                                                      Returns void

                                                                                                                                    renderModel

                                                                                                                                    • renderModel(): void
                                                                                                                                    • Returns void

                                                                                                                                    requireMoreLiquid

                                                                                                                                    • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                    • Parameters

                                                                                                                                      • liquid: string
                                                                                                                                      • amount: number

                                                                                                                                      Returns void

                                                                                                                                    selfDestroy

                                                                                                                                    • selfDestroy(): void
                                                                                                                                    • Returns void

                                                                                                                                    setActive

                                                                                                                                    • setActive(isActive: boolean): void
                                                                                                                                    • Parameters

                                                                                                                                      • isActive: boolean

                                                                                                                                      Returns void

                                                                                                                                    setFacing

                                                                                                                                    • setFacing(side: number): boolean
                                                                                                                                    • Parameters

                                                                                                                                      • side: number

                                                                                                                                      Returns boolean

                                                                                                                                    setLiquidScale

                                                                                                                                    • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                    • Parameters

                                                                                                                                      • container: any
                                                                                                                                      • window: any
                                                                                                                                      • content: any
                                                                                                                                      • data: { amount: number; liquid: string; scale: string }
                                                                                                                                        • amount: number
                                                                                                                                        • liquid: string
                                                                                                                                        • scale: string

                                                                                                                                      Returns void

                                                                                                                                    setupContainer

                                                                                                                                    • setupContainer(): void
                                                                                                                                    • Returns void

                                                                                                                                    startPlaySound

                                                                                                                                    • startPlaySound(): void
                                                                                                                                    • Returns void

                                                                                                                                    stopPlaySound

                                                                                                                                    • stopPlaySound(): void
                                                                                                                                    • Returns void

                                                                                                                                    tick

                                                                                                                                    • tick(): void
                                                                                                                                    • @deprecated

                                                                                                                                      Returns void

                                                                                                                                    unload

                                                                                                                                    • unload(): void
                                                                                                                                    • @deprecated

                                                                                                                                      Returns void

                                                                                                                                    updateLiquidScale

                                                                                                                                    • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                    • Parameters

                                                                                                                                      • scale: string
                                                                                                                                      • liquid: string

                                                                                                                                      Returns void

                                                                                                                                    RTHeatGenerator

                                                                                                                                    RTHeatGenerator:

                                                                                                                                    constructor

                                                                                                                                    __clientMethods

                                                                                                                                    __clientMethods: {}

                                                                                                                                    Type declaration

                                                                                                                                    • [key string]: boolean

                                                                                                                                    __containerEvents

                                                                                                                                    __containerEvents: {}

                                                                                                                                    Type declaration

                                                                                                                                    __initialized

                                                                                                                                    __initialized: boolean

                                                                                                                                    __networkEvents

                                                                                                                                    __networkEvents: {}

                                                                                                                                    Type declaration

                                                                                                                                    audioSource

                                                                                                                                    audioSource: AudioSource

                                                                                                                                    readonlyblockID

                                                                                                                                    blockID: number

                                                                                                                                    blockSource

                                                                                                                                    blockSource: BlockSource

                                                                                                                                    click

                                                                                                                                    click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                    Type declaration

                                                                                                                                      • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                      • Parameters

                                                                                                                                        • id: number
                                                                                                                                        • count: number
                                                                                                                                        • data: number
                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                        • player: number
                                                                                                                                        • extra: ItemExtraData

                                                                                                                                        Returns boolean | void

                                                                                                                                    client

                                                                                                                                    client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                    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
                                                                                                                                        • (): void
                                                                                                                                        • Returns void

                                                                                                                                    • tick: () => void
                                                                                                                                        • (): void
                                                                                                                                        • Returns void

                                                                                                                                    • unload: () => void
                                                                                                                                        • (): void
                                                                                                                                        • Returns void

                                                                                                                                    container

                                                                                                                                    container: ItemContainer

                                                                                                                                    containerEvents

                                                                                                                                    containerEvents: {}

                                                                                                                                    Type declaration

                                                                                                                                    • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                    data

                                                                                                                                    data: {}

                                                                                                                                    Type declaration

                                                                                                                                    • [key string]: any

                                                                                                                                    optionaldefaultDrop

                                                                                                                                    defaultDrop?: number

                                                                                                                                    defaultValues

                                                                                                                                    defaultValues: {}

                                                                                                                                    Type declaration

                                                                                                                                      readonlydimension

                                                                                                                                      dimension: number

                                                                                                                                      events

                                                                                                                                      events: {}

                                                                                                                                      Type declaration

                                                                                                                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                      finishingSound

                                                                                                                                      finishingSound: number

                                                                                                                                      getGuiScreen

                                                                                                                                      getGuiScreen: () => Nullable<IWindow>

                                                                                                                                      Type declaration

                                                                                                                                        • (): Nullable<IWindow>
                                                                                                                                        • Returns Nullable<IWindow>

                                                                                                                                      isLoaded

                                                                                                                                      isLoaded: boolean

                                                                                                                                      liquidStorage

                                                                                                                                      liquidStorage: Storage

                                                                                                                                      networkData

                                                                                                                                      networkData: SyncedNetworkData

                                                                                                                                      networkEntity

                                                                                                                                      networkEntity: NetworkEntity

                                                                                                                                      networkEntityType

                                                                                                                                      networkEntityType: NetworkEntityType

                                                                                                                                      networkEntityTypeName

                                                                                                                                      networkEntityTypeName: string

                                                                                                                                      noupdate

                                                                                                                                      noupdate: boolean

                                                                                                                                      optionalonConnectionPlayer

                                                                                                                                      onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                      Type declaration

                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                        • Parameters

                                                                                                                                          • client: NetworkClient

                                                                                                                                          Returns void

                                                                                                                                      optionalonDisconnectionPlayer

                                                                                                                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                      Type declaration

                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                        • Parameters

                                                                                                                                          • client: NetworkClient

                                                                                                                                          Returns void

                                                                                                                                      region

                                                                                                                                      region: WorldRegion

                                                                                                                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                      remove

                                                                                                                                      remove: boolean

                                                                                                                                      sendPacket

                                                                                                                                      sendPacket: (name: string, data: object) => {}

                                                                                                                                      Type declaration

                                                                                                                                        • (name: string, data: object): {}
                                                                                                                                        • Parameters

                                                                                                                                          • name: string
                                                                                                                                          • data: object

                                                                                                                                          Returns {}

                                                                                                                                        sendResponse

                                                                                                                                        sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                        Type declaration

                                                                                                                                          • (packetName: string, someData: object): {}
                                                                                                                                          • Parameters

                                                                                                                                            • packetName: string
                                                                                                                                            • someData: object

                                                                                                                                            Returns {}

                                                                                                                                          update

                                                                                                                                          update: () => void

                                                                                                                                          Type declaration

                                                                                                                                            • (): void
                                                                                                                                            • Returns void

                                                                                                                                          optionalupgrades

                                                                                                                                          upgrades?: string[]

                                                                                                                                          readonlyuseNetworkItemContainer

                                                                                                                                          useNetworkItemContainer: boolean

                                                                                                                                          x

                                                                                                                                          x: number

                                                                                                                                          y

                                                                                                                                          y: number

                                                                                                                                          z

                                                                                                                                          z: number

                                                                                                                                          addLiquidTank

                                                                                                                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                          • Parameters

                                                                                                                                            • name: string
                                                                                                                                            • limit: number
                                                                                                                                            • optionalliquids: string[]

                                                                                                                                            Returns LiquidTank

                                                                                                                                          adjustDrop

                                                                                                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                          • Parameters

                                                                                                                                            • item: ItemInstance

                                                                                                                                            Returns ItemInstance

                                                                                                                                          calculateOutput

                                                                                                                                          • calculateOutput(): number
                                                                                                                                          • Returns number

                                                                                                                                          canRotate

                                                                                                                                          • canRotate(): boolean
                                                                                                                                          • Returns boolean

                                                                                                                                          clientLoad

                                                                                                                                          • clientLoad(): void
                                                                                                                                          • Called when the client copy is created


                                                                                                                                            Returns void

                                                                                                                                          clientTick

                                                                                                                                          • clientTick(): void
                                                                                                                                          • Called every tick on client thread


                                                                                                                                            Returns void

                                                                                                                                          clientUnload

                                                                                                                                          • clientUnload(): void
                                                                                                                                          • Called on destroying the client copy


                                                                                                                                            Returns void

                                                                                                                                          created

                                                                                                                                          • created(): void
                                                                                                                                          • Returns void

                                                                                                                                          decreaseSlot

                                                                                                                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                          • Parameters

                                                                                                                                            • slot: ItemContainerSlot
                                                                                                                                            • count: number

                                                                                                                                            Returns void

                                                                                                                                          destroy

                                                                                                                                          • destroy(): boolean
                                                                                                                                          • Returns boolean

                                                                                                                                          destroyBlock

                                                                                                                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                          • Parameters

                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                            • player: number

                                                                                                                                            Returns void

                                                                                                                                          getDefaultDrop

                                                                                                                                          • getDefaultDrop(): number
                                                                                                                                          • Returns number

                                                                                                                                          getFacing

                                                                                                                                          • getFacing(): number
                                                                                                                                          • Returns number

                                                                                                                                          getInterruptSound

                                                                                                                                          • getInterruptSound(): string
                                                                                                                                          • Returns string

                                                                                                                                          getOperationSound

                                                                                                                                          • getOperationSound(): string
                                                                                                                                          • Returns string

                                                                                                                                          getOutputText

                                                                                                                                          • getOutputText(output: number): string
                                                                                                                                          • Parameters

                                                                                                                                            • output: number

                                                                                                                                            Returns string

                                                                                                                                          getScreenByName

                                                                                                                                          • getScreenByName(): IWindow
                                                                                                                                          • Returns IWindow

                                                                                                                                          getScreenName

                                                                                                                                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                          • Parameters

                                                                                                                                            • player: number
                                                                                                                                            • coords: ItemUseCoordinates

                                                                                                                                            Returns string

                                                                                                                                          getStartingSound

                                                                                                                                          • getStartingSound(): string
                                                                                                                                          • Returns string

                                                                                                                                          init

                                                                                                                                          • init(): void
                                                                                                                                          • @deprecated

                                                                                                                                            Returns void

                                                                                                                                          load

                                                                                                                                          • load(): void
                                                                                                                                          • @deprecated

                                                                                                                                            Returns void

                                                                                                                                          onCheckerTick

                                                                                                                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                          • Parameters

                                                                                                                                            • isInitialized: boolean
                                                                                                                                            • isLoaded: boolean
                                                                                                                                            • wasLoaded: boolean

                                                                                                                                            Returns void

                                                                                                                                          onCreate

                                                                                                                                          • onCreate(): void
                                                                                                                                          • Called when a TileEntity is created


                                                                                                                                            Returns void

                                                                                                                                          onInit

                                                                                                                                          • onInit(): void
                                                                                                                                          • Called when a TileEntity is initialised in the world


                                                                                                                                            Returns void

                                                                                                                                          onItemClick

                                                                                                                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                          • Parameters

                                                                                                                                            • id: number
                                                                                                                                            • count: number
                                                                                                                                            • data: number
                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                            • player: number
                                                                                                                                            • extra: ItemExtraData

                                                                                                                                            Returns boolean

                                                                                                                                          onItemUse

                                                                                                                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                          • 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

                                                                                                                                          • onLoad(): void
                                                                                                                                          • Called when a chunk with TileEntity is loaded


                                                                                                                                            Returns void

                                                                                                                                          onRedstoneUpdate

                                                                                                                                          • onRedstoneUpdate(signal: number): void
                                                                                                                                          • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                            Parameters

                                                                                                                                            • signal: number

                                                                                                                                              signal power (0-15)

                                                                                                                                            Returns void

                                                                                                                                          onTick

                                                                                                                                          • onTick(): void
                                                                                                                                          • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                            Returns void

                                                                                                                                          onUnload

                                                                                                                                          • onUnload(): void
                                                                                                                                          • Called when a chunk with TileEntity is unloaded


                                                                                                                                            Returns void

                                                                                                                                          preventClick

                                                                                                                                          • preventClick(): void
                                                                                                                                          • Prevents all actions on click


                                                                                                                                            Returns void

                                                                                                                                          projectileHit

                                                                                                                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                          • Parameters

                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                            • target: ProjectileHitTarget

                                                                                                                                            Returns void

                                                                                                                                          redstone

                                                                                                                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                          • @deprecated

                                                                                                                                            Parameters

                                                                                                                                            • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                              • onLoad: boolean
                                                                                                                                              • power: number
                                                                                                                                              • signal: number

                                                                                                                                            Returns void

                                                                                                                                          renderModel

                                                                                                                                          • renderModel(): void
                                                                                                                                          • Returns void

                                                                                                                                          requireMoreLiquid

                                                                                                                                          • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                          • Parameters

                                                                                                                                            • liquid: string
                                                                                                                                            • amount: number

                                                                                                                                            Returns void

                                                                                                                                          selfDestroy

                                                                                                                                          • selfDestroy(): void
                                                                                                                                          • Returns void

                                                                                                                                          setActive

                                                                                                                                          • setActive(isActive: boolean): void
                                                                                                                                          • Parameters

                                                                                                                                            • isActive: boolean

                                                                                                                                            Returns void

                                                                                                                                          setFacing

                                                                                                                                          • setFacing(side: number): boolean
                                                                                                                                          • Parameters

                                                                                                                                            • side: number

                                                                                                                                            Returns boolean

                                                                                                                                          setLiquidScale

                                                                                                                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                          • Parameters

                                                                                                                                            • container: any
                                                                                                                                            • window: any
                                                                                                                                            • content: any
                                                                                                                                            • data: { amount: number; liquid: string; scale: string }
                                                                                                                                              • amount: number
                                                                                                                                              • liquid: string
                                                                                                                                              • scale: string

                                                                                                                                            Returns void

                                                                                                                                          setupContainer

                                                                                                                                          • setupContainer(): void
                                                                                                                                          • Returns void

                                                                                                                                          spreadHeat

                                                                                                                                          • spreadHeat(heat: number): number
                                                                                                                                          • Parameters

                                                                                                                                            • heat: number

                                                                                                                                            Returns number

                                                                                                                                          startPlaySound

                                                                                                                                          • startPlaySound(): void
                                                                                                                                          • Returns void

                                                                                                                                          stopPlaySound

                                                                                                                                          • stopPlaySound(): void
                                                                                                                                          • Returns void

                                                                                                                                          tick

                                                                                                                                          • tick(): void
                                                                                                                                          • @deprecated

                                                                                                                                            Returns void

                                                                                                                                          unload

                                                                                                                                          • unload(): void
                                                                                                                                          • @deprecated

                                                                                                                                            Returns void

                                                                                                                                          updateLiquidScale

                                                                                                                                          • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                          • Parameters

                                                                                                                                            • scale: string
                                                                                                                                            • liquid: string

                                                                                                                                            Returns void

                                                                                                                                          ReactorChamber

                                                                                                                                          ReactorChamber:

                                                                                                                                          constructor

                                                                                                                                          __clientMethods

                                                                                                                                          __clientMethods: {}

                                                                                                                                          Type declaration

                                                                                                                                          • [key string]: boolean

                                                                                                                                          __containerEvents

                                                                                                                                          __containerEvents: {}

                                                                                                                                          Type declaration

                                                                                                                                          __initialized

                                                                                                                                          __initialized: boolean

                                                                                                                                          __networkEvents

                                                                                                                                          __networkEvents: {}

                                                                                                                                          Type declaration

                                                                                                                                          audioSource

                                                                                                                                          audioSource: AudioSource

                                                                                                                                          readonlyblockID

                                                                                                                                          blockID: number

                                                                                                                                          blockSource

                                                                                                                                          blockSource: BlockSource

                                                                                                                                          click

                                                                                                                                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                          Type declaration

                                                                                                                                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                            • Parameters

                                                                                                                                              • id: number
                                                                                                                                              • count: number
                                                                                                                                              • data: number
                                                                                                                                              • coords: ItemUseCoordinates
                                                                                                                                              • player: number
                                                                                                                                              • extra: ItemExtraData

                                                                                                                                              Returns boolean | void

                                                                                                                                          client

                                                                                                                                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                          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
                                                                                                                                              • (): void
                                                                                                                                              • Returns void

                                                                                                                                          • tick: () => void
                                                                                                                                              • (): void
                                                                                                                                              • Returns void

                                                                                                                                          • unload: () => void
                                                                                                                                              • (): void
                                                                                                                                              • Returns void

                                                                                                                                          container

                                                                                                                                          container: ItemContainer

                                                                                                                                          containerEvents

                                                                                                                                          containerEvents: {}

                                                                                                                                          Type declaration

                                                                                                                                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                          core

                                                                                                                                          data

                                                                                                                                          data: { corePos: Vector; energy: number; signal: number }

                                                                                                                                          Type declaration

                                                                                                                                          • corePos: Vector
                                                                                                                                          • energy: number
                                                                                                                                          • signal: number

                                                                                                                                          defaultDrop

                                                                                                                                          defaultDrop: number

                                                                                                                                          defaultValues

                                                                                                                                          defaultValues: { corePos: any; energy: number; signal: number }

                                                                                                                                          Type declaration

                                                                                                                                          • corePos: any
                                                                                                                                          • energy: number
                                                                                                                                          • signal: number

                                                                                                                                          readonlydimension

                                                                                                                                          dimension: number

                                                                                                                                          energyNode

                                                                                                                                          energyNode: EnergyTileNode

                                                                                                                                          energyTypes

                                                                                                                                          energyTypes: object

                                                                                                                                          events

                                                                                                                                          events: {}

                                                                                                                                          Type declaration

                                                                                                                                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                          finishingSound

                                                                                                                                          finishingSound: number

                                                                                                                                          getGuiScreen

                                                                                                                                          getGuiScreen: () => Nullable<IWindow>

                                                                                                                                          Type declaration

                                                                                                                                            • (): Nullable<IWindow>
                                                                                                                                            • Returns Nullable<IWindow>

                                                                                                                                          isLoaded

                                                                                                                                          isLoaded: boolean

                                                                                                                                          liquidStorage

                                                                                                                                          liquidStorage: Storage

                                                                                                                                          networkData

                                                                                                                                          networkData: SyncedNetworkData

                                                                                                                                          networkEntity

                                                                                                                                          networkEntity: NetworkEntity

                                                                                                                                          networkEntityType

                                                                                                                                          networkEntityType: NetworkEntityType

                                                                                                                                          networkEntityTypeName

                                                                                                                                          networkEntityTypeName: string

                                                                                                                                          noupdate

                                                                                                                                          noupdate: boolean

                                                                                                                                          optionalonConnectionPlayer

                                                                                                                                          onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                          Type declaration

                                                                                                                                            • (client: NetworkClient): void
                                                                                                                                            • Parameters

                                                                                                                                              • client: NetworkClient

                                                                                                                                              Returns void

                                                                                                                                          optionalonDisconnectionPlayer

                                                                                                                                          onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                          Type declaration

                                                                                                                                            • (client: NetworkClient): void
                                                                                                                                            • Parameters

                                                                                                                                              • client: NetworkClient

                                                                                                                                              Returns void

                                                                                                                                          region

                                                                                                                                          region: WorldRegion

                                                                                                                                          Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                          remove

                                                                                                                                          remove: boolean

                                                                                                                                          sendPacket

                                                                                                                                          sendPacket: (name: string, data: object) => {}

                                                                                                                                          Type declaration

                                                                                                                                            • (name: string, data: object): {}
                                                                                                                                            • Parameters

                                                                                                                                              • name: string
                                                                                                                                              • data: object

                                                                                                                                              Returns {}

                                                                                                                                            sendResponse

                                                                                                                                            sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                            Type declaration

                                                                                                                                              • (packetName: string, someData: object): {}
                                                                                                                                              • Parameters

                                                                                                                                                • packetName: string
                                                                                                                                                • someData: object

                                                                                                                                                Returns {}

                                                                                                                                              update

                                                                                                                                              update: () => void

                                                                                                                                              Type declaration

                                                                                                                                                • (): void
                                                                                                                                                • Returns void

                                                                                                                                              optionalupgrades

                                                                                                                                              upgrades?: string[]

                                                                                                                                              readonlyuseNetworkItemContainer

                                                                                                                                              useNetworkItemContainer: boolean

                                                                                                                                              x

                                                                                                                                              x: number

                                                                                                                                              y

                                                                                                                                              y: number

                                                                                                                                              z

                                                                                                                                              z: number

                                                                                                                                              addLiquidTank

                                                                                                                                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                              • Parameters

                                                                                                                                                • name: string
                                                                                                                                                • limit: number
                                                                                                                                                • optionalliquids: string[]

                                                                                                                                                Returns LiquidTank

                                                                                                                                              adjustDrop

                                                                                                                                              • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                              • Parameters

                                                                                                                                                • item: ItemInstance

                                                                                                                                                Returns ItemInstance

                                                                                                                                              canExtractEnergy

                                                                                                                                              • canExtractEnergy(): boolean
                                                                                                                                              • Returns boolean

                                                                                                                                              canReceiveEnergy

                                                                                                                                              • canReceiveEnergy(): boolean
                                                                                                                                              • Returns boolean

                                                                                                                                              canRotate

                                                                                                                                              • canRotate(side: number): boolean
                                                                                                                                              • Parameters

                                                                                                                                                • side: number

                                                                                                                                                Returns boolean

                                                                                                                                              chargeSlot

                                                                                                                                              • chargeSlot(slotName: string): void
                                                                                                                                              • Parameters

                                                                                                                                                • slotName: string

                                                                                                                                                Returns void

                                                                                                                                              clientLoad

                                                                                                                                              • clientLoad(): void
                                                                                                                                              • Called when the client copy is created


                                                                                                                                                Returns void

                                                                                                                                              clientTick

                                                                                                                                              • clientTick(): void
                                                                                                                                              • Called every tick on client thread


                                                                                                                                                Returns void

                                                                                                                                              clientUnload

                                                                                                                                              • clientUnload(): void
                                                                                                                                              • Called on destroying the client copy


                                                                                                                                                Returns void

                                                                                                                                              created

                                                                                                                                              • created(): void
                                                                                                                                              • Returns void

                                                                                                                                              decreaseSlot

                                                                                                                                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                              • Parameters

                                                                                                                                                • slot: ItemContainerSlot
                                                                                                                                                • count: number

                                                                                                                                                Returns void

                                                                                                                                              destroy

                                                                                                                                              • destroy(): boolean
                                                                                                                                              • Returns boolean

                                                                                                                                              destroyBlock

                                                                                                                                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                              • Parameters

                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                • player: number

                                                                                                                                                Returns void

                                                                                                                                              dischargeSlot

                                                                                                                                              • dischargeSlot(slotName: string): void
                                                                                                                                              • Parameters

                                                                                                                                                • slotName: string

                                                                                                                                                Returns void

                                                                                                                                              energyReceive

                                                                                                                                              • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                              • Parameters

                                                                                                                                                • type: string
                                                                                                                                                • amount: number
                                                                                                                                                • voltage: number

                                                                                                                                                Returns number

                                                                                                                                              energyTick

                                                                                                                                              • Parameters

                                                                                                                                                Returns void

                                                                                                                                              getDefaultDrop

                                                                                                                                              • getDefaultDrop(): number
                                                                                                                                              • Returns number

                                                                                                                                              getEnergyStorage

                                                                                                                                              • getEnergyStorage(): number
                                                                                                                                              • Returns number

                                                                                                                                              getExplosionPower

                                                                                                                                              • getExplosionPower(): number
                                                                                                                                              • Returns number

                                                                                                                                              getFacing

                                                                                                                                              • getFacing(): number
                                                                                                                                              • Returns number

                                                                                                                                              getInterruptSound

                                                                                                                                              • getInterruptSound(): string
                                                                                                                                              • Returns string

                                                                                                                                              getMaxPacketSize

                                                                                                                                              • getMaxPacketSize(): number
                                                                                                                                              • Returns number

                                                                                                                                              getOperationSound

                                                                                                                                              • getOperationSound(): string
                                                                                                                                              • Returns string

                                                                                                                                              getRelativeEnergy

                                                                                                                                              • getRelativeEnergy(): number
                                                                                                                                              • Returns number

                                                                                                                                              getScreenByName

                                                                                                                                              • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                                              • Parameters

                                                                                                                                                • screenName: string
                                                                                                                                                • container: ItemContainer

                                                                                                                                                Returns IWindow

                                                                                                                                              getScreenName

                                                                                                                                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                              • Parameters

                                                                                                                                                • player: number
                                                                                                                                                • coords: ItemUseCoordinates

                                                                                                                                                Returns string

                                                                                                                                              getStartingSound

                                                                                                                                              • getStartingSound(): string
                                                                                                                                              • Returns string

                                                                                                                                              getTier

                                                                                                                                              • getTier(): number
                                                                                                                                              • Returns number

                                                                                                                                              init

                                                                                                                                              • init(): void
                                                                                                                                              • @deprecated

                                                                                                                                                Returns void

                                                                                                                                              isConductor

                                                                                                                                              • isConductor(): boolean
                                                                                                                                              • Returns boolean

                                                                                                                                              load

                                                                                                                                              • load(): void
                                                                                                                                              • @deprecated

                                                                                                                                                Returns void

                                                                                                                                              onCheckerTick

                                                                                                                                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                              • Parameters

                                                                                                                                                • isInitialized: boolean
                                                                                                                                                • isLoaded: boolean
                                                                                                                                                • wasLoaded: boolean

                                                                                                                                                Returns void

                                                                                                                                              onCreate

                                                                                                                                              • onCreate(): void
                                                                                                                                              • Called when a TileEntity is created


                                                                                                                                                Returns void

                                                                                                                                              onInit

                                                                                                                                              • onInit(): void
                                                                                                                                              • Called when a TileEntity is initialised in the world


                                                                                                                                                Returns void

                                                                                                                                              onItemClick

                                                                                                                                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                              • Parameters

                                                                                                                                                • id: number
                                                                                                                                                • count: number
                                                                                                                                                • data: number
                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                • player: number
                                                                                                                                                • extra: ItemExtraData

                                                                                                                                                Returns boolean

                                                                                                                                              onItemUse

                                                                                                                                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                              • 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

                                                                                                                                              • onLoad(): void
                                                                                                                                              • Called when a chunk with TileEntity is loaded


                                                                                                                                                Returns void

                                                                                                                                              onRedstoneUpdate

                                                                                                                                              • onRedstoneUpdate(signal: number): void
                                                                                                                                              • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                Parameters

                                                                                                                                                • signal: number

                                                                                                                                                  signal power (0-15)

                                                                                                                                                Returns void

                                                                                                                                              onTick

                                                                                                                                              • onTick(): void
                                                                                                                                              • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                Returns void

                                                                                                                                              onUnload

                                                                                                                                              • onUnload(): void
                                                                                                                                              • Called when a chunk with TileEntity is unloaded


                                                                                                                                                Returns void

                                                                                                                                              preventClick

                                                                                                                                              • preventClick(): void
                                                                                                                                              • Prevents all actions on click


                                                                                                                                                Returns void

                                                                                                                                              projectileHit

                                                                                                                                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                              • Parameters

                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                • target: ProjectileHitTarget

                                                                                                                                                Returns void

                                                                                                                                              rebuildGrid

                                                                                                                                              • rebuildGrid(): void
                                                                                                                                              • Returns void

                                                                                                                                              redstone

                                                                                                                                              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                              • @deprecated

                                                                                                                                                Parameters

                                                                                                                                                • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                  • onLoad: boolean
                                                                                                                                                  • power: number
                                                                                                                                                  • signal: number

                                                                                                                                                Returns void

                                                                                                                                              renderModel

                                                                                                                                              • renderModel(): void
                                                                                                                                              • Returns void

                                                                                                                                              requireMoreLiquid

                                                                                                                                              • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                              • Parameters

                                                                                                                                                • liquid: string
                                                                                                                                                • amount: number

                                                                                                                                                Returns void

                                                                                                                                              selfDestroy

                                                                                                                                              • selfDestroy(): void
                                                                                                                                              • Returns void

                                                                                                                                              setActive

                                                                                                                                              • setActive(isActive: boolean): void
                                                                                                                                              • Parameters

                                                                                                                                                • isActive: boolean

                                                                                                                                                Returns void

                                                                                                                                              setFacing

                                                                                                                                              • setFacing(side: number): boolean
                                                                                                                                              • Parameters

                                                                                                                                                • side: number

                                                                                                                                                Returns boolean

                                                                                                                                              setLiquidScale

                                                                                                                                              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                              • Parameters

                                                                                                                                                • container: any
                                                                                                                                                • window: any
                                                                                                                                                • content: any
                                                                                                                                                • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                  • amount: number
                                                                                                                                                  • liquid: string
                                                                                                                                                  • scale: string

                                                                                                                                                Returns void

                                                                                                                                              setupContainer

                                                                                                                                              • setupContainer(): void
                                                                                                                                              • Returns void

                                                                                                                                              startPlaySound

                                                                                                                                              • startPlaySound(): void
                                                                                                                                              • Returns void

                                                                                                                                              stopPlaySound

                                                                                                                                              • stopPlaySound(): void
                                                                                                                                              • Returns void

                                                                                                                                              tick

                                                                                                                                              • tick(): void
                                                                                                                                              • @deprecated

                                                                                                                                                Returns void

                                                                                                                                              unload

                                                                                                                                              • unload(): void
                                                                                                                                              • @deprecated

                                                                                                                                                Returns void

                                                                                                                                              updateLiquidScale

                                                                                                                                              • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                              • Parameters

                                                                                                                                                • scale: string
                                                                                                                                                • liquid: string

                                                                                                                                                Returns void

                                                                                                                                              Recycler

                                                                                                                                              Recycler:

                                                                                                                                              constructor

                                                                                                                                              • Returns Recycler

                                                                                                                                              __clientMethods

                                                                                                                                              __clientMethods: {}

                                                                                                                                              Type declaration

                                                                                                                                              • [key string]: boolean

                                                                                                                                              __containerEvents

                                                                                                                                              __containerEvents: {}

                                                                                                                                              Type declaration

                                                                                                                                              __initialized

                                                                                                                                              __initialized: boolean

                                                                                                                                              __networkEvents

                                                                                                                                              __networkEvents: {}

                                                                                                                                              Type declaration

                                                                                                                                              audioSource

                                                                                                                                              audioSource: AudioSource

                                                                                                                                              readonlyblockID

                                                                                                                                              blockID: number

                                                                                                                                              blockSource

                                                                                                                                              blockSource: BlockSource

                                                                                                                                              click

                                                                                                                                              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                              Type declaration

                                                                                                                                                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                • Parameters

                                                                                                                                                  • id: number
                                                                                                                                                  • count: number
                                                                                                                                                  • data: number
                                                                                                                                                  • coords: ItemUseCoordinates
                                                                                                                                                  • player: number
                                                                                                                                                  • extra: ItemExtraData

                                                                                                                                                  Returns boolean | void

                                                                                                                                              client

                                                                                                                                              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                              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
                                                                                                                                                  • (): void
                                                                                                                                                  • Returns void

                                                                                                                                              • tick: () => void
                                                                                                                                                  • (): void
                                                                                                                                                  • Returns void

                                                                                                                                              • unload: () => void
                                                                                                                                                  • (): void
                                                                                                                                                  • Returns void

                                                                                                                                              container

                                                                                                                                              container: ItemContainer

                                                                                                                                              containerEvents

                                                                                                                                              containerEvents: {}

                                                                                                                                              Type declaration

                                                                                                                                              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                              data

                                                                                                                                              data: { energy: number; progress: number }

                                                                                                                                              Type declaration

                                                                                                                                              • energy: number
                                                                                                                                              • progress: number

                                                                                                                                              defaultDrop

                                                                                                                                              defaultDrop: number

                                                                                                                                              defaultEnergyDemand

                                                                                                                                              defaultEnergyDemand: number

                                                                                                                                              defaultEnergyStorage

                                                                                                                                              defaultEnergyStorage: number

                                                                                                                                              defaultProcessTime

                                                                                                                                              defaultProcessTime: number

                                                                                                                                              defaultTier

                                                                                                                                              defaultTier: number

                                                                                                                                              defaultValues

                                                                                                                                              defaultValues: { energy: number; progress: number }

                                                                                                                                              Type declaration

                                                                                                                                              • energy: number
                                                                                                                                              • progress: number

                                                                                                                                              readonlydimension

                                                                                                                                              dimension: number

                                                                                                                                              optionalenergyDemand

                                                                                                                                              energyDemand?: number

                                                                                                                                              energyNode

                                                                                                                                              energyNode: EnergyTileNode

                                                                                                                                              energyStorage

                                                                                                                                              energyStorage: number

                                                                                                                                              energyTypes

                                                                                                                                              energyTypes: object

                                                                                                                                              events

                                                                                                                                              events: {}

                                                                                                                                              Type declaration

                                                                                                                                              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                              finishingSound

                                                                                                                                              finishingSound: number

                                                                                                                                              getGuiScreen

                                                                                                                                              getGuiScreen: () => Nullable<IWindow>

                                                                                                                                              Type declaration

                                                                                                                                                • (): Nullable<IWindow>
                                                                                                                                                • Returns Nullable<IWindow>

                                                                                                                                              isLoaded

                                                                                                                                              isLoaded: boolean

                                                                                                                                              liquidStorage

                                                                                                                                              liquidStorage: Storage

                                                                                                                                              networkData

                                                                                                                                              networkData: SyncedNetworkData

                                                                                                                                              networkEntity

                                                                                                                                              networkEntity: NetworkEntity

                                                                                                                                              networkEntityType

                                                                                                                                              networkEntityType: NetworkEntityType

                                                                                                                                              networkEntityTypeName

                                                                                                                                              networkEntityTypeName: string

                                                                                                                                              noupdate

                                                                                                                                              noupdate: boolean

                                                                                                                                              optionalonConnectionPlayer

                                                                                                                                              onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                              Type declaration

                                                                                                                                                • (client: NetworkClient): void
                                                                                                                                                • Parameters

                                                                                                                                                  • client: NetworkClient

                                                                                                                                                  Returns void

                                                                                                                                              optionalonDisconnectionPlayer

                                                                                                                                              onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                              Type declaration

                                                                                                                                                • (client: NetworkClient): void
                                                                                                                                                • Parameters

                                                                                                                                                  • client: NetworkClient

                                                                                                                                                  Returns void

                                                                                                                                              optionalprocessTime

                                                                                                                                              processTime?: number

                                                                                                                                              region

                                                                                                                                              region: WorldRegion

                                                                                                                                              Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                              remove

                                                                                                                                              remove: boolean

                                                                                                                                              sendPacket

                                                                                                                                              sendPacket: (name: string, data: object) => {}

                                                                                                                                              Type declaration

                                                                                                                                                • (name: string, data: object): {}
                                                                                                                                                • Parameters

                                                                                                                                                  • name: string
                                                                                                                                                  • data: object

                                                                                                                                                  Returns {}

                                                                                                                                                sendResponse

                                                                                                                                                sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                Type declaration

                                                                                                                                                  • (packetName: string, someData: object): {}
                                                                                                                                                  • Parameters

                                                                                                                                                    • packetName: string
                                                                                                                                                    • someData: object

                                                                                                                                                    Returns {}

                                                                                                                                                  tier

                                                                                                                                                  tier: number

                                                                                                                                                  update

                                                                                                                                                  update: () => void

                                                                                                                                                  Type declaration

                                                                                                                                                    • (): void
                                                                                                                                                    • Returns void

                                                                                                                                                  upgrades

                                                                                                                                                  upgrades: string[]

                                                                                                                                                  readonlyuseNetworkItemContainer

                                                                                                                                                  useNetworkItemContainer: boolean

                                                                                                                                                  x

                                                                                                                                                  x: number

                                                                                                                                                  y

                                                                                                                                                  y: number

                                                                                                                                                  z

                                                                                                                                                  z: number

                                                                                                                                                  addLiquidTank

                                                                                                                                                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                  • Parameters

                                                                                                                                                    • name: string
                                                                                                                                                    • limit: number
                                                                                                                                                    • optionalliquids: string[]

                                                                                                                                                    Returns LiquidTank

                                                                                                                                                  adjustDrop

                                                                                                                                                  • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                  • Parameters

                                                                                                                                                    • item: ItemInstance

                                                                                                                                                    Returns ItemInstance

                                                                                                                                                  canExtractEnergy

                                                                                                                                                  • canExtractEnergy(side: number, type: string): boolean
                                                                                                                                                  • Parameters

                                                                                                                                                    • side: number
                                                                                                                                                    • type: string

                                                                                                                                                    Returns boolean

                                                                                                                                                  canReceiveEnergy

                                                                                                                                                  • canReceiveEnergy(side: number, type: string): boolean
                                                                                                                                                  • Parameters

                                                                                                                                                    • side: number
                                                                                                                                                    • type: string

                                                                                                                                                    Returns boolean

                                                                                                                                                  canRotate

                                                                                                                                                  • canRotate(side: number): boolean
                                                                                                                                                  • Parameters

                                                                                                                                                    • side: number

                                                                                                                                                    Returns boolean

                                                                                                                                                  chargeSlot

                                                                                                                                                  • chargeSlot(slotName: string): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • slotName: string

                                                                                                                                                    Returns void

                                                                                                                                                  clientLoad

                                                                                                                                                  • clientLoad(): void
                                                                                                                                                  • Called when the client copy is created


                                                                                                                                                    Returns void

                                                                                                                                                  clientTick

                                                                                                                                                  • clientTick(): void
                                                                                                                                                  • Called every tick on client thread


                                                                                                                                                    Returns void

                                                                                                                                                  clientUnload

                                                                                                                                                  • clientUnload(): void
                                                                                                                                                  • Called on destroying the client copy


                                                                                                                                                    Returns void

                                                                                                                                                  created

                                                                                                                                                  • created(): void
                                                                                                                                                  • Returns void

                                                                                                                                                  decreaseSlot

                                                                                                                                                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • slot: ItemContainerSlot
                                                                                                                                                    • count: number

                                                                                                                                                    Returns void

                                                                                                                                                  destroy

                                                                                                                                                  • destroy(): boolean
                                                                                                                                                  • Returns boolean

                                                                                                                                                  destroyBlock

                                                                                                                                                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                    • player: number

                                                                                                                                                    Returns void

                                                                                                                                                  dischargeSlot

                                                                                                                                                  • dischargeSlot(slotName: string): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • slotName: string

                                                                                                                                                    Returns void

                                                                                                                                                  energyReceive

                                                                                                                                                  • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                  • Parameters

                                                                                                                                                    • type: string
                                                                                                                                                    • amount: number
                                                                                                                                                    • voltage: number

                                                                                                                                                    Returns number

                                                                                                                                                  energyTick

                                                                                                                                                  • Parameters

                                                                                                                                                    Returns void

                                                                                                                                                  getDefaultDrop

                                                                                                                                                  • getDefaultDrop(): number
                                                                                                                                                  • Returns number

                                                                                                                                                  getEnergyStorage

                                                                                                                                                  • getEnergyStorage(): number
                                                                                                                                                  • Returns number

                                                                                                                                                  getExplosionPower

                                                                                                                                                  • getExplosionPower(): number
                                                                                                                                                  • Returns number

                                                                                                                                                  getFacing

                                                                                                                                                  • getFacing(): number
                                                                                                                                                  • Returns number

                                                                                                                                                  getInterruptSound

                                                                                                                                                  • getInterruptSound(): string
                                                                                                                                                  • Returns string

                                                                                                                                                  getMaxPacketSize

                                                                                                                                                  • getMaxPacketSize(): number
                                                                                                                                                  • Returns number

                                                                                                                                                  getOperationSound

                                                                                                                                                  • getOperationSound(): string
                                                                                                                                                  • Returns string

                                                                                                                                                  getRecipeResult

                                                                                                                                                  • getRecipeResult(id: number, data: number): any
                                                                                                                                                  • Parameters

                                                                                                                                                    • id: number
                                                                                                                                                    • data: number

                                                                                                                                                    Returns any

                                                                                                                                                  getRelativeEnergy

                                                                                                                                                  • getRelativeEnergy(): number
                                                                                                                                                  • Returns number

                                                                                                                                                  getScreenByName

                                                                                                                                                  • getScreenByName(): IWindow
                                                                                                                                                  • Returns IWindow

                                                                                                                                                  getScreenName

                                                                                                                                                  • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                                  • Parameters

                                                                                                                                                    • player: number
                                                                                                                                                    • coords: ItemUseCoordinates

                                                                                                                                                    Returns string

                                                                                                                                                  getStartingSound

                                                                                                                                                  • getStartingSound(): string
                                                                                                                                                  • Returns string

                                                                                                                                                  getTier

                                                                                                                                                  • getTier(): number
                                                                                                                                                  • Returns number

                                                                                                                                                  init

                                                                                                                                                  • init(): void
                                                                                                                                                  • @deprecated

                                                                                                                                                    Returns void

                                                                                                                                                  isConductor

                                                                                                                                                  • isConductor(type: string): boolean
                                                                                                                                                  • Parameters

                                                                                                                                                    • type: string

                                                                                                                                                    Returns boolean

                                                                                                                                                  load

                                                                                                                                                  • load(): void
                                                                                                                                                  • @deprecated

                                                                                                                                                    Returns void

                                                                                                                                                  onCheckerTick

                                                                                                                                                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • isInitialized: boolean
                                                                                                                                                    • isLoaded: boolean
                                                                                                                                                    • wasLoaded: boolean

                                                                                                                                                    Returns void

                                                                                                                                                  onCreate

                                                                                                                                                  • onCreate(): void
                                                                                                                                                  • Called when a TileEntity is created


                                                                                                                                                    Returns void

                                                                                                                                                  onInit

                                                                                                                                                  • onInit(): void
                                                                                                                                                  • Called when a TileEntity is initialised in the world


                                                                                                                                                    Returns void

                                                                                                                                                  onItemClick

                                                                                                                                                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                  • Parameters

                                                                                                                                                    • id: number
                                                                                                                                                    • count: number
                                                                                                                                                    • data: number
                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                    • player: number
                                                                                                                                                    • extra: ItemExtraData

                                                                                                                                                    Returns boolean

                                                                                                                                                  onItemUse

                                                                                                                                                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                  • 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

                                                                                                                                                  • onLoad(): void
                                                                                                                                                  • Called when a chunk with TileEntity is loaded


                                                                                                                                                    Returns void

                                                                                                                                                  onRedstoneUpdate

                                                                                                                                                  • onRedstoneUpdate(signal: number): void
                                                                                                                                                  • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                    Parameters

                                                                                                                                                    • signal: number

                                                                                                                                                      signal power (0-15)

                                                                                                                                                    Returns void

                                                                                                                                                  onTick

                                                                                                                                                  • onTick(): void
                                                                                                                                                  • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                    Returns void

                                                                                                                                                  onUnload

                                                                                                                                                  • onUnload(): void
                                                                                                                                                  • Called when a chunk with TileEntity is unloaded


                                                                                                                                                    Returns void

                                                                                                                                                  preventClick

                                                                                                                                                  • preventClick(): void
                                                                                                                                                  • Prevents all actions on click


                                                                                                                                                    Returns void

                                                                                                                                                  projectileHit

                                                                                                                                                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                    • target: ProjectileHitTarget

                                                                                                                                                    Returns void

                                                                                                                                                  rebuildGrid

                                                                                                                                                  • rebuildGrid(): void
                                                                                                                                                  • Returns void

                                                                                                                                                  redstone

                                                                                                                                                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                  • @deprecated

                                                                                                                                                    Parameters

                                                                                                                                                    • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                      • onLoad: boolean
                                                                                                                                                      • power: number
                                                                                                                                                      • signal: number

                                                                                                                                                    Returns void

                                                                                                                                                  renderModel

                                                                                                                                                  • renderModel(): void
                                                                                                                                                  • Returns void

                                                                                                                                                  requireMoreLiquid

                                                                                                                                                  • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • liquid: string
                                                                                                                                                    • amount: number

                                                                                                                                                    Returns void

                                                                                                                                                  selfDestroy

                                                                                                                                                  • selfDestroy(): void
                                                                                                                                                  • Returns void

                                                                                                                                                  setActive

                                                                                                                                                  • setActive(isActive: boolean): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • isActive: boolean

                                                                                                                                                    Returns void

                                                                                                                                                  setFacing

                                                                                                                                                  • setFacing(side: number): boolean
                                                                                                                                                  • Parameters

                                                                                                                                                    • side: number

                                                                                                                                                    Returns boolean

                                                                                                                                                  setLiquidScale

                                                                                                                                                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • container: any
                                                                                                                                                    • window: any
                                                                                                                                                    • content: any
                                                                                                                                                    • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                      • amount: number
                                                                                                                                                      • liquid: string
                                                                                                                                                      • scale: string

                                                                                                                                                    Returns void

                                                                                                                                                  setupContainer

                                                                                                                                                  • setupContainer(): void
                                                                                                                                                  • Returns void

                                                                                                                                                  startPlaySound

                                                                                                                                                  • startPlaySound(): void
                                                                                                                                                  • Returns void

                                                                                                                                                  stopPlaySound

                                                                                                                                                  • stopPlaySound(): void
                                                                                                                                                  • Returns void

                                                                                                                                                  tick

                                                                                                                                                  • tick(): void
                                                                                                                                                  • @deprecated

                                                                                                                                                    Returns void

                                                                                                                                                  unload

                                                                                                                                                  • unload(): void
                                                                                                                                                  • @deprecated

                                                                                                                                                    Returns void

                                                                                                                                                  updateLiquidScale

                                                                                                                                                  • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                  • Parameters

                                                                                                                                                    • scale: string
                                                                                                                                                    • liquid: string

                                                                                                                                                    Returns void

                                                                                                                                                  useUpgrades

                                                                                                                                                  • Returns UpgradeSet

                                                                                                                                                  SolarGenerator

                                                                                                                                                  SolarGenerator:

                                                                                                                                                  constructor

                                                                                                                                                  __clientMethods

                                                                                                                                                  __clientMethods: {}

                                                                                                                                                  Type declaration

                                                                                                                                                  • [key string]: boolean

                                                                                                                                                  __containerEvents

                                                                                                                                                  __containerEvents: {}

                                                                                                                                                  Type declaration

                                                                                                                                                  __initialized

                                                                                                                                                  __initialized: boolean

                                                                                                                                                  __networkEvents

                                                                                                                                                  __networkEvents: {}

                                                                                                                                                  Type declaration

                                                                                                                                                  audioSource

                                                                                                                                                  audioSource: AudioSource

                                                                                                                                                  readonlyblockID

                                                                                                                                                  blockID: number

                                                                                                                                                  blockSource

                                                                                                                                                  blockSource: BlockSource

                                                                                                                                                  click

                                                                                                                                                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                  Type declaration

                                                                                                                                                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                    • Parameters

                                                                                                                                                      • id: number
                                                                                                                                                      • count: number
                                                                                                                                                      • data: number
                                                                                                                                                      • coords: ItemUseCoordinates
                                                                                                                                                      • player: number
                                                                                                                                                      • extra: ItemExtraData

                                                                                                                                                      Returns boolean | void

                                                                                                                                                  client

                                                                                                                                                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                  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
                                                                                                                                                      • (): void
                                                                                                                                                      • Returns void

                                                                                                                                                  • tick: () => void
                                                                                                                                                      • (): void
                                                                                                                                                      • Returns void

                                                                                                                                                  • unload: () => void
                                                                                                                                                      • (): void
                                                                                                                                                      • Returns void

                                                                                                                                                  container

                                                                                                                                                  container: ItemContainer

                                                                                                                                                  containerEvents

                                                                                                                                                  containerEvents: {}

                                                                                                                                                  Type declaration

                                                                                                                                                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                  data

                                                                                                                                                  data: { canSeeSky: boolean; energy: number }

                                                                                                                                                  Type declaration

                                                                                                                                                  • canSeeSky: boolean
                                                                                                                                                  • energy: number

                                                                                                                                                  defaultDrop

                                                                                                                                                  defaultDrop: number

                                                                                                                                                  defaultValues

                                                                                                                                                  defaultValues: { canSeeSky: boolean; energy: number }

                                                                                                                                                  Type declaration

                                                                                                                                                  • canSeeSky: boolean
                                                                                                                                                  • energy: number

                                                                                                                                                  readonlydimension

                                                                                                                                                  dimension: number

                                                                                                                                                  energyNode

                                                                                                                                                  energyNode: EnergyTileNode

                                                                                                                                                  energyTypes

                                                                                                                                                  energyTypes: object

                                                                                                                                                  events

                                                                                                                                                  events: {}

                                                                                                                                                  Type declaration

                                                                                                                                                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                  finishingSound

                                                                                                                                                  finishingSound: number

                                                                                                                                                  getGuiScreen

                                                                                                                                                  getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                  Type declaration

                                                                                                                                                    • (): Nullable<IWindow>
                                                                                                                                                    • Returns Nullable<IWindow>

                                                                                                                                                  isLoaded

                                                                                                                                                  isLoaded: boolean

                                                                                                                                                  liquidStorage

                                                                                                                                                  liquidStorage: Storage

                                                                                                                                                  networkData

                                                                                                                                                  networkData: SyncedNetworkData

                                                                                                                                                  networkEntity

                                                                                                                                                  networkEntity: NetworkEntity

                                                                                                                                                  networkEntityType

                                                                                                                                                  networkEntityType: NetworkEntityType

                                                                                                                                                  networkEntityTypeName

                                                                                                                                                  networkEntityTypeName: string

                                                                                                                                                  noupdate

                                                                                                                                                  noupdate: boolean

                                                                                                                                                  optionalonConnectionPlayer

                                                                                                                                                  onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                  Type declaration

                                                                                                                                                    • (client: NetworkClient): void
                                                                                                                                                    • Parameters

                                                                                                                                                      • client: NetworkClient

                                                                                                                                                      Returns void

                                                                                                                                                  optionalonDisconnectionPlayer

                                                                                                                                                  onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                  Type declaration

                                                                                                                                                    • (client: NetworkClient): void
                                                                                                                                                    • Parameters

                                                                                                                                                      • client: NetworkClient

                                                                                                                                                      Returns void

                                                                                                                                                  region

                                                                                                                                                  region: WorldRegion

                                                                                                                                                  Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                  remove

                                                                                                                                                  remove: boolean

                                                                                                                                                  sendPacket

                                                                                                                                                  sendPacket: (name: string, data: object) => {}

                                                                                                                                                  Type declaration

                                                                                                                                                    • (name: string, data: object): {}
                                                                                                                                                    • Parameters

                                                                                                                                                      • name: string
                                                                                                                                                      • data: object

                                                                                                                                                      Returns {}

                                                                                                                                                    sendResponse

                                                                                                                                                    sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                    Type declaration

                                                                                                                                                      • (packetName: string, someData: object): {}
                                                                                                                                                      • Parameters

                                                                                                                                                        • packetName: string
                                                                                                                                                        • someData: object

                                                                                                                                                        Returns {}

                                                                                                                                                      update

                                                                                                                                                      update: () => void

                                                                                                                                                      Type declaration

                                                                                                                                                        • (): void
                                                                                                                                                        • Returns void

                                                                                                                                                      optionalupgrades

                                                                                                                                                      upgrades?: string[]

                                                                                                                                                      readonlyuseNetworkItemContainer

                                                                                                                                                      useNetworkItemContainer: boolean

                                                                                                                                                      x

                                                                                                                                                      x: number

                                                                                                                                                      y

                                                                                                                                                      y: number

                                                                                                                                                      z

                                                                                                                                                      z: number

                                                                                                                                                      addLiquidTank

                                                                                                                                                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                      • Parameters

                                                                                                                                                        • name: string
                                                                                                                                                        • limit: number
                                                                                                                                                        • optionalliquids: string[]

                                                                                                                                                        Returns LiquidTank

                                                                                                                                                      adjustDrop

                                                                                                                                                      • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                      • Parameters

                                                                                                                                                        • item: ItemInstance

                                                                                                                                                        Returns ItemInstance

                                                                                                                                                      canExtractEnergy

                                                                                                                                                      • canExtractEnergy(): boolean
                                                                                                                                                      • Returns boolean

                                                                                                                                                      canReceiveEnergy

                                                                                                                                                      • canReceiveEnergy(): boolean
                                                                                                                                                      • Returns boolean

                                                                                                                                                      canRotate

                                                                                                                                                      • canRotate(side: number): boolean
                                                                                                                                                      • Parameters

                                                                                                                                                        • side: number

                                                                                                                                                        Returns boolean

                                                                                                                                                      chargeSlot

                                                                                                                                                      • chargeSlot(slotName: string): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • slotName: string

                                                                                                                                                        Returns void

                                                                                                                                                      clientLoad

                                                                                                                                                      • clientLoad(): void
                                                                                                                                                      • Called when the client copy is created


                                                                                                                                                        Returns void

                                                                                                                                                      clientTick

                                                                                                                                                      • clientTick(): void
                                                                                                                                                      • Called every tick on client thread


                                                                                                                                                        Returns void

                                                                                                                                                      clientUnload

                                                                                                                                                      • clientUnload(): void
                                                                                                                                                      • Called on destroying the client copy


                                                                                                                                                        Returns void

                                                                                                                                                      created

                                                                                                                                                      • created(): void
                                                                                                                                                      • Returns void

                                                                                                                                                      decreaseSlot

                                                                                                                                                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • slot: ItemContainerSlot
                                                                                                                                                        • count: number

                                                                                                                                                        Returns void

                                                                                                                                                      destroy

                                                                                                                                                      • destroy(): boolean
                                                                                                                                                      • Returns boolean

                                                                                                                                                      destroyBlock

                                                                                                                                                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                        • player: number

                                                                                                                                                        Returns void

                                                                                                                                                      dischargeSlot

                                                                                                                                                      • dischargeSlot(slotName: string): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • slotName: string

                                                                                                                                                        Returns void

                                                                                                                                                      energyReceive

                                                                                                                                                      • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                      • Parameters

                                                                                                                                                        • type: string
                                                                                                                                                        • amount: number
                                                                                                                                                        • voltage: number

                                                                                                                                                        Returns number

                                                                                                                                                      energyTick

                                                                                                                                                      • Parameters

                                                                                                                                                        Returns void

                                                                                                                                                      getDefaultDrop

                                                                                                                                                      • getDefaultDrop(): number
                                                                                                                                                      • Returns number

                                                                                                                                                      getEnergyStorage

                                                                                                                                                      • getEnergyStorage(): number
                                                                                                                                                      • Returns number

                                                                                                                                                      getExplosionPower

                                                                                                                                                      • getExplosionPower(): number
                                                                                                                                                      • Returns number

                                                                                                                                                      getFacing

                                                                                                                                                      • getFacing(): number
                                                                                                                                                      • Returns number

                                                                                                                                                      getInterruptSound

                                                                                                                                                      • getInterruptSound(): string
                                                                                                                                                      • Returns string

                                                                                                                                                      getMaxPacketSize

                                                                                                                                                      • getMaxPacketSize(): number
                                                                                                                                                      • Returns number

                                                                                                                                                      getOperationSound

                                                                                                                                                      • getOperationSound(): string
                                                                                                                                                      • Returns string

                                                                                                                                                      getRelativeEnergy

                                                                                                                                                      • getRelativeEnergy(): number
                                                                                                                                                      • Returns number

                                                                                                                                                      getScreenByName

                                                                                                                                                      • getScreenByName(): IWindow
                                                                                                                                                      • Returns IWindow

                                                                                                                                                      getScreenName

                                                                                                                                                      • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                                      • Parameters

                                                                                                                                                        • player: number
                                                                                                                                                        • coords: ItemUseCoordinates

                                                                                                                                                        Returns string

                                                                                                                                                      getStartingSound

                                                                                                                                                      • getStartingSound(): string
                                                                                                                                                      • Returns string

                                                                                                                                                      getTier

                                                                                                                                                      • getTier(): number
                                                                                                                                                      • Returns number

                                                                                                                                                      init

                                                                                                                                                      • init(): void
                                                                                                                                                      • @deprecated

                                                                                                                                                        Returns void

                                                                                                                                                      isConductor

                                                                                                                                                      • isConductor(type: string): boolean
                                                                                                                                                      • Parameters

                                                                                                                                                        • type: string

                                                                                                                                                        Returns boolean

                                                                                                                                                      load

                                                                                                                                                      • load(): void
                                                                                                                                                      • @deprecated

                                                                                                                                                        Returns void

                                                                                                                                                      onCheckerTick

                                                                                                                                                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • isInitialized: boolean
                                                                                                                                                        • isLoaded: boolean
                                                                                                                                                        • wasLoaded: boolean

                                                                                                                                                        Returns void

                                                                                                                                                      onCreate

                                                                                                                                                      • onCreate(): void
                                                                                                                                                      • Called when a TileEntity is created


                                                                                                                                                        Returns void

                                                                                                                                                      onInit

                                                                                                                                                      • onInit(): void
                                                                                                                                                      • Called when a TileEntity is initialised in the world


                                                                                                                                                        Returns void

                                                                                                                                                      onItemClick

                                                                                                                                                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                      • Parameters

                                                                                                                                                        • id: number
                                                                                                                                                        • count: number
                                                                                                                                                        • data: number
                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                        • player: number
                                                                                                                                                        • extra: ItemExtraData

                                                                                                                                                        Returns boolean

                                                                                                                                                      onItemUse

                                                                                                                                                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                      • 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

                                                                                                                                                      • onLoad(): void
                                                                                                                                                      • Called when a chunk with TileEntity is loaded


                                                                                                                                                        Returns void

                                                                                                                                                      onRedstoneUpdate

                                                                                                                                                      • onRedstoneUpdate(signal: number): void
                                                                                                                                                      • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                        Parameters

                                                                                                                                                        • signal: number

                                                                                                                                                          signal power (0-15)

                                                                                                                                                        Returns void

                                                                                                                                                      onTick

                                                                                                                                                      • onTick(): void
                                                                                                                                                      • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                        Returns void

                                                                                                                                                      onUnload

                                                                                                                                                      • onUnload(): void
                                                                                                                                                      • Called when a chunk with TileEntity is unloaded


                                                                                                                                                        Returns void

                                                                                                                                                      preventClick

                                                                                                                                                      • preventClick(): void
                                                                                                                                                      • Prevents all actions on click


                                                                                                                                                        Returns void

                                                                                                                                                      projectileHit

                                                                                                                                                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                        • target: ProjectileHitTarget

                                                                                                                                                        Returns void

                                                                                                                                                      rebuildGrid

                                                                                                                                                      • rebuildGrid(): void
                                                                                                                                                      • Returns void

                                                                                                                                                      redstone

                                                                                                                                                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                      • @deprecated

                                                                                                                                                        Parameters

                                                                                                                                                        • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                          • onLoad: boolean
                                                                                                                                                          • power: number
                                                                                                                                                          • signal: number

                                                                                                                                                        Returns void

                                                                                                                                                      renderModel

                                                                                                                                                      • renderModel(): void
                                                                                                                                                      • Returns void

                                                                                                                                                      requireMoreLiquid

                                                                                                                                                      • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • liquid: string
                                                                                                                                                        • amount: number

                                                                                                                                                        Returns void

                                                                                                                                                      selfDestroy

                                                                                                                                                      • selfDestroy(): void
                                                                                                                                                      • Returns void

                                                                                                                                                      setActive

                                                                                                                                                      • setActive(isActive: boolean): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • isActive: boolean

                                                                                                                                                        Returns void

                                                                                                                                                      setFacing

                                                                                                                                                      • setFacing(side: number): boolean
                                                                                                                                                      • Parameters

                                                                                                                                                        • side: number

                                                                                                                                                        Returns boolean

                                                                                                                                                      setLiquidScale

                                                                                                                                                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • container: any
                                                                                                                                                        • window: any
                                                                                                                                                        • content: any
                                                                                                                                                        • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                          • amount: number
                                                                                                                                                          • liquid: string
                                                                                                                                                          • scale: string

                                                                                                                                                        Returns void

                                                                                                                                                      setSolarElement

                                                                                                                                                      • setSolarElement(container: ItemContainer, window: any, content: any, data: string): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • container: ItemContainer
                                                                                                                                                        • window: any
                                                                                                                                                        • content: any
                                                                                                                                                        • data: string

                                                                                                                                                        Returns void

                                                                                                                                                      setupContainer

                                                                                                                                                      • setupContainer(): void
                                                                                                                                                      • Returns void

                                                                                                                                                      startPlaySound

                                                                                                                                                      • startPlaySound(): void
                                                                                                                                                      • Returns void

                                                                                                                                                      stopPlaySound

                                                                                                                                                      • stopPlaySound(): void
                                                                                                                                                      • Returns void

                                                                                                                                                      tick

                                                                                                                                                      • tick(): void
                                                                                                                                                      • @deprecated

                                                                                                                                                        Returns void

                                                                                                                                                      unload

                                                                                                                                                      • unload(): void
                                                                                                                                                      • @deprecated

                                                                                                                                                        Returns void

                                                                                                                                                      updateLiquidScale

                                                                                                                                                      • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                      • Parameters

                                                                                                                                                        • scale: string
                                                                                                                                                        • liquid: string

                                                                                                                                                        Returns void

                                                                                                                                                      SolidCanner

                                                                                                                                                      SolidCanner:

                                                                                                                                                      constructor

                                                                                                                                                      • Returns SolidCanner

                                                                                                                                                      __clientMethods

                                                                                                                                                      __clientMethods: {}

                                                                                                                                                      Type declaration

                                                                                                                                                      • [key string]: boolean

                                                                                                                                                      __containerEvents

                                                                                                                                                      __containerEvents: {}

                                                                                                                                                      Type declaration

                                                                                                                                                      __initialized

                                                                                                                                                      __initialized: boolean

                                                                                                                                                      __networkEvents

                                                                                                                                                      __networkEvents: {}

                                                                                                                                                      Type declaration

                                                                                                                                                      audioSource

                                                                                                                                                      audioSource: AudioSource

                                                                                                                                                      readonlyblockID

                                                                                                                                                      blockID: number

                                                                                                                                                      blockSource

                                                                                                                                                      blockSource: BlockSource

                                                                                                                                                      click

                                                                                                                                                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                      Type declaration

                                                                                                                                                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                        • Parameters

                                                                                                                                                          • id: number
                                                                                                                                                          • count: number
                                                                                                                                                          • data: number
                                                                                                                                                          • coords: ItemUseCoordinates
                                                                                                                                                          • player: number
                                                                                                                                                          • extra: ItemExtraData

                                                                                                                                                          Returns boolean | void

                                                                                                                                                      client

                                                                                                                                                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                      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
                                                                                                                                                          • (): void
                                                                                                                                                          • Returns void

                                                                                                                                                      • tick: () => void
                                                                                                                                                          • (): void
                                                                                                                                                          • Returns void

                                                                                                                                                      • unload: () => void
                                                                                                                                                          • (): void
                                                                                                                                                          • Returns void

                                                                                                                                                      container

                                                                                                                                                      container: ItemContainer

                                                                                                                                                      containerEvents

                                                                                                                                                      containerEvents: {}

                                                                                                                                                      Type declaration

                                                                                                                                                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                      data

                                                                                                                                                      data: { energy: number; progress: number }

                                                                                                                                                      Type declaration

                                                                                                                                                      • energy: number
                                                                                                                                                      • progress: number

                                                                                                                                                      defaultDrop

                                                                                                                                                      defaultDrop: number

                                                                                                                                                      defaultEnergyDemand

                                                                                                                                                      defaultEnergyDemand: number

                                                                                                                                                      defaultEnergyStorage

                                                                                                                                                      defaultEnergyStorage: number

                                                                                                                                                      defaultProcessTime

                                                                                                                                                      defaultProcessTime: number

                                                                                                                                                      defaultTier

                                                                                                                                                      defaultTier: number

                                                                                                                                                      defaultValues

                                                                                                                                                      defaultValues: { energy: number; progress: number }

                                                                                                                                                      Type declaration

                                                                                                                                                      • energy: number
                                                                                                                                                      • progress: number

                                                                                                                                                      readonlydimension

                                                                                                                                                      dimension: number

                                                                                                                                                      optionalenergyDemand

                                                                                                                                                      energyDemand?: number

                                                                                                                                                      energyNode

                                                                                                                                                      energyNode: EnergyTileNode

                                                                                                                                                      energyStorage

                                                                                                                                                      energyStorage: number

                                                                                                                                                      energyTypes

                                                                                                                                                      energyTypes: object

                                                                                                                                                      events

                                                                                                                                                      events: {}

                                                                                                                                                      Type declaration

                                                                                                                                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                      finishingSound

                                                                                                                                                      finishingSound: number

                                                                                                                                                      getGuiScreen

                                                                                                                                                      getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                      Type declaration

                                                                                                                                                        • (): Nullable<IWindow>
                                                                                                                                                        • Returns Nullable<IWindow>

                                                                                                                                                      isLoaded

                                                                                                                                                      isLoaded: boolean

                                                                                                                                                      liquidStorage

                                                                                                                                                      liquidStorage: Storage

                                                                                                                                                      networkData

                                                                                                                                                      networkData: SyncedNetworkData

                                                                                                                                                      networkEntity

                                                                                                                                                      networkEntity: NetworkEntity

                                                                                                                                                      networkEntityType

                                                                                                                                                      networkEntityType: NetworkEntityType

                                                                                                                                                      networkEntityTypeName

                                                                                                                                                      networkEntityTypeName: string

                                                                                                                                                      noupdate

                                                                                                                                                      noupdate: boolean

                                                                                                                                                      optionalonConnectionPlayer

                                                                                                                                                      onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                      Type declaration

                                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                                        • Parameters

                                                                                                                                                          • client: NetworkClient

                                                                                                                                                          Returns void

                                                                                                                                                      optionalonDisconnectionPlayer

                                                                                                                                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                      Type declaration

                                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                                        • Parameters

                                                                                                                                                          • client: NetworkClient

                                                                                                                                                          Returns void

                                                                                                                                                      optionalprocessTime

                                                                                                                                                      processTime?: number

                                                                                                                                                      region

                                                                                                                                                      region: WorldRegion

                                                                                                                                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                      remove

                                                                                                                                                      remove: boolean

                                                                                                                                                      sendPacket

                                                                                                                                                      sendPacket: (name: string, data: object) => {}

                                                                                                                                                      Type declaration

                                                                                                                                                        • (name: string, data: object): {}
                                                                                                                                                        • Parameters

                                                                                                                                                          • name: string
                                                                                                                                                          • data: object

                                                                                                                                                          Returns {}

                                                                                                                                                        sendResponse

                                                                                                                                                        sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                        Type declaration

                                                                                                                                                          • (packetName: string, someData: object): {}
                                                                                                                                                          • Parameters

                                                                                                                                                            • packetName: string
                                                                                                                                                            • someData: object

                                                                                                                                                            Returns {}

                                                                                                                                                          tier

                                                                                                                                                          tier: number

                                                                                                                                                          update

                                                                                                                                                          update: () => void

                                                                                                                                                          Type declaration

                                                                                                                                                            • (): void
                                                                                                                                                            • Returns void

                                                                                                                                                          upgrades

                                                                                                                                                          upgrades: string[]

                                                                                                                                                          readonlyuseNetworkItemContainer

                                                                                                                                                          useNetworkItemContainer: boolean

                                                                                                                                                          x

                                                                                                                                                          x: number

                                                                                                                                                          y

                                                                                                                                                          y: number

                                                                                                                                                          z

                                                                                                                                                          z: number

                                                                                                                                                          addLiquidTank

                                                                                                                                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                          • Parameters

                                                                                                                                                            • name: string
                                                                                                                                                            • limit: number
                                                                                                                                                            • optionalliquids: string[]

                                                                                                                                                            Returns LiquidTank

                                                                                                                                                          adjustDrop

                                                                                                                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                          • Parameters

                                                                                                                                                            • item: ItemInstance

                                                                                                                                                            Returns ItemInstance

                                                                                                                                                          canExtractEnergy

                                                                                                                                                          • canExtractEnergy(side: number, type: string): boolean
                                                                                                                                                          • Parameters

                                                                                                                                                            • side: number
                                                                                                                                                            • type: string

                                                                                                                                                            Returns boolean

                                                                                                                                                          canReceiveEnergy

                                                                                                                                                          • canReceiveEnergy(side: number, type: string): boolean
                                                                                                                                                          • Parameters

                                                                                                                                                            • side: number
                                                                                                                                                            • type: string

                                                                                                                                                            Returns boolean

                                                                                                                                                          canRotate

                                                                                                                                                          • canRotate(side: number): boolean
                                                                                                                                                          • Parameters

                                                                                                                                                            • side: number

                                                                                                                                                            Returns boolean

                                                                                                                                                          chargeSlot

                                                                                                                                                          • chargeSlot(slotName: string): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • slotName: string

                                                                                                                                                            Returns void

                                                                                                                                                          clientLoad

                                                                                                                                                          • clientLoad(): void
                                                                                                                                                          • Called when the client copy is created


                                                                                                                                                            Returns void

                                                                                                                                                          clientTick

                                                                                                                                                          • clientTick(): void
                                                                                                                                                          • Called every tick on client thread


                                                                                                                                                            Returns void

                                                                                                                                                          clientUnload

                                                                                                                                                          • clientUnload(): void
                                                                                                                                                          • Called on destroying the client copy


                                                                                                                                                            Returns void

                                                                                                                                                          created

                                                                                                                                                          • created(): void
                                                                                                                                                          • Returns void

                                                                                                                                                          decreaseSlot

                                                                                                                                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • slot: ItemContainerSlot
                                                                                                                                                            • count: number

                                                                                                                                                            Returns void

                                                                                                                                                          destroy

                                                                                                                                                          • destroy(): boolean
                                                                                                                                                          • Returns boolean

                                                                                                                                                          destroyBlock

                                                                                                                                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                            • player: number

                                                                                                                                                            Returns void

                                                                                                                                                          dischargeSlot

                                                                                                                                                          • dischargeSlot(slotName: string): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • slotName: string

                                                                                                                                                            Returns void

                                                                                                                                                          energyReceive

                                                                                                                                                          • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                          • Parameters

                                                                                                                                                            • type: string
                                                                                                                                                            • amount: number
                                                                                                                                                            • voltage: number

                                                                                                                                                            Returns number

                                                                                                                                                          energyTick

                                                                                                                                                          • Parameters

                                                                                                                                                            Returns void

                                                                                                                                                          getDefaultDrop

                                                                                                                                                          • getDefaultDrop(): number
                                                                                                                                                          • Returns number

                                                                                                                                                          getEnergyStorage

                                                                                                                                                          • getEnergyStorage(): number
                                                                                                                                                          • Returns number

                                                                                                                                                          getExplosionPower

                                                                                                                                                          • getExplosionPower(): number
                                                                                                                                                          • Returns number

                                                                                                                                                          getFacing

                                                                                                                                                          • getFacing(): number
                                                                                                                                                          • Returns number

                                                                                                                                                          getInterruptSound

                                                                                                                                                          • getInterruptSound(): string
                                                                                                                                                          • Returns string

                                                                                                                                                          getMaxPacketSize

                                                                                                                                                          • getMaxPacketSize(): number
                                                                                                                                                          • Returns number

                                                                                                                                                          getOperationSound

                                                                                                                                                          • getOperationSound(): string
                                                                                                                                                          • Returns string

                                                                                                                                                          getRecipeResult

                                                                                                                                                          • getRecipeResult(id: number): { can: number; result: ItemInstance }
                                                                                                                                                          • Parameters

                                                                                                                                                            • id: number

                                                                                                                                                            Returns { can: number; result: ItemInstance }

                                                                                                                                                            • can: number
                                                                                                                                                            • result: ItemInstance

                                                                                                                                                          getRelativeEnergy

                                                                                                                                                          • getRelativeEnergy(): number
                                                                                                                                                          • Returns number

                                                                                                                                                          getScreenByName

                                                                                                                                                          • getScreenByName(): IWindow
                                                                                                                                                          • Returns IWindow

                                                                                                                                                          getScreenName

                                                                                                                                                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                                          • Parameters

                                                                                                                                                            • player: number
                                                                                                                                                            • coords: ItemUseCoordinates

                                                                                                                                                            Returns string

                                                                                                                                                          getStartingSound

                                                                                                                                                          • getStartingSound(): string
                                                                                                                                                          • Returns string

                                                                                                                                                          getTier

                                                                                                                                                          • getTier(): number
                                                                                                                                                          • Returns number

                                                                                                                                                          init

                                                                                                                                                          • init(): void
                                                                                                                                                          • @deprecated

                                                                                                                                                            Returns void

                                                                                                                                                          isConductor

                                                                                                                                                          • isConductor(type: string): boolean
                                                                                                                                                          • Parameters

                                                                                                                                                            • type: string

                                                                                                                                                            Returns boolean

                                                                                                                                                          load

                                                                                                                                                          • load(): void
                                                                                                                                                          • @deprecated

                                                                                                                                                            Returns void

                                                                                                                                                          onCheckerTick

                                                                                                                                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • isInitialized: boolean
                                                                                                                                                            • isLoaded: boolean
                                                                                                                                                            • wasLoaded: boolean

                                                                                                                                                            Returns void

                                                                                                                                                          onCreate

                                                                                                                                                          • onCreate(): void
                                                                                                                                                          • Called when a TileEntity is created


                                                                                                                                                            Returns void

                                                                                                                                                          onInit

                                                                                                                                                          • onInit(): void
                                                                                                                                                          • Called when a TileEntity is initialised in the world


                                                                                                                                                            Returns void

                                                                                                                                                          onItemClick

                                                                                                                                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                          • Parameters

                                                                                                                                                            • id: number
                                                                                                                                                            • count: number
                                                                                                                                                            • data: number
                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                            • player: number
                                                                                                                                                            • extra: ItemExtraData

                                                                                                                                                            Returns boolean

                                                                                                                                                          onItemUse

                                                                                                                                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                          • 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

                                                                                                                                                          • onLoad(): void
                                                                                                                                                          • Called when a chunk with TileEntity is loaded


                                                                                                                                                            Returns void

                                                                                                                                                          onRedstoneUpdate

                                                                                                                                                          • onRedstoneUpdate(signal: number): void
                                                                                                                                                          • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                            Parameters

                                                                                                                                                            • signal: number

                                                                                                                                                              signal power (0-15)

                                                                                                                                                            Returns void

                                                                                                                                                          onTick

                                                                                                                                                          • onTick(): void
                                                                                                                                                          • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                            Returns void

                                                                                                                                                          onUnload

                                                                                                                                                          • onUnload(): void
                                                                                                                                                          • Called when a chunk with TileEntity is unloaded


                                                                                                                                                            Returns void

                                                                                                                                                          preventClick

                                                                                                                                                          • preventClick(): void
                                                                                                                                                          • Prevents all actions on click


                                                                                                                                                            Returns void

                                                                                                                                                          projectileHit

                                                                                                                                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                            • target: ProjectileHitTarget

                                                                                                                                                            Returns void

                                                                                                                                                          rebuildGrid

                                                                                                                                                          • rebuildGrid(): void
                                                                                                                                                          • Returns void

                                                                                                                                                          redstone

                                                                                                                                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                          • @deprecated

                                                                                                                                                            Parameters

                                                                                                                                                            • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                              • onLoad: boolean
                                                                                                                                                              • power: number
                                                                                                                                                              • signal: number

                                                                                                                                                            Returns void

                                                                                                                                                          renderModel

                                                                                                                                                          • renderModel(): void
                                                                                                                                                          • Returns void

                                                                                                                                                          requireMoreLiquid

                                                                                                                                                          • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • liquid: string
                                                                                                                                                            • amount: number

                                                                                                                                                            Returns void

                                                                                                                                                          selfDestroy

                                                                                                                                                          • selfDestroy(): void
                                                                                                                                                          • Returns void

                                                                                                                                                          setActive

                                                                                                                                                          • setActive(isActive: boolean): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • isActive: boolean

                                                                                                                                                            Returns void

                                                                                                                                                          setFacing

                                                                                                                                                          • setFacing(side: number): boolean
                                                                                                                                                          • Parameters

                                                                                                                                                            • side: number

                                                                                                                                                            Returns boolean

                                                                                                                                                          setLiquidScale

                                                                                                                                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • container: any
                                                                                                                                                            • window: any
                                                                                                                                                            • content: any
                                                                                                                                                            • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                              • amount: number
                                                                                                                                                              • liquid: string
                                                                                                                                                              • scale: string

                                                                                                                                                            Returns void

                                                                                                                                                          setupContainer

                                                                                                                                                          • setupContainer(): void
                                                                                                                                                          • Returns void

                                                                                                                                                          startPlaySound

                                                                                                                                                          • startPlaySound(): void
                                                                                                                                                          • Returns void

                                                                                                                                                          stopPlaySound

                                                                                                                                                          • stopPlaySound(): void
                                                                                                                                                          • Returns void

                                                                                                                                                          tick

                                                                                                                                                          • tick(): void
                                                                                                                                                          • @deprecated

                                                                                                                                                            Returns void

                                                                                                                                                          unload

                                                                                                                                                          • unload(): void
                                                                                                                                                          • @deprecated

                                                                                                                                                            Returns void

                                                                                                                                                          updateLiquidScale

                                                                                                                                                          • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                          • Parameters

                                                                                                                                                            • scale: string
                                                                                                                                                            • liquid: string

                                                                                                                                                            Returns void

                                                                                                                                                          useUpgrades

                                                                                                                                                          • Returns UpgradeSet

                                                                                                                                                          SolidHeatGenerator

                                                                                                                                                          SolidHeatGenerator:

                                                                                                                                                          constructor

                                                                                                                                                          __clientMethods

                                                                                                                                                          __clientMethods: {}

                                                                                                                                                          Type declaration

                                                                                                                                                          • [key string]: boolean

                                                                                                                                                          __containerEvents

                                                                                                                                                          __containerEvents: {}

                                                                                                                                                          Type declaration

                                                                                                                                                          __initialized

                                                                                                                                                          __initialized: boolean

                                                                                                                                                          __networkEvents

                                                                                                                                                          __networkEvents: {}

                                                                                                                                                          Type declaration

                                                                                                                                                          audioSource

                                                                                                                                                          audioSource: AudioSource

                                                                                                                                                          readonlyblockID

                                                                                                                                                          blockID: number

                                                                                                                                                          blockSource

                                                                                                                                                          blockSource: BlockSource

                                                                                                                                                          click

                                                                                                                                                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                          Type declaration

                                                                                                                                                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                            • Parameters

                                                                                                                                                              • id: number
                                                                                                                                                              • count: number
                                                                                                                                                              • data: number
                                                                                                                                                              • coords: ItemUseCoordinates
                                                                                                                                                              • player: number
                                                                                                                                                              • extra: ItemExtraData

                                                                                                                                                              Returns boolean | void

                                                                                                                                                          client

                                                                                                                                                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                          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
                                                                                                                                                              • (): void
                                                                                                                                                              • Returns void

                                                                                                                                                          • tick: () => void
                                                                                                                                                              • (): void
                                                                                                                                                              • Returns void

                                                                                                                                                          • unload: () => void
                                                                                                                                                              • (): void
                                                                                                                                                              • Returns void

                                                                                                                                                          container

                                                                                                                                                          container: ItemContainer

                                                                                                                                                          containerEvents

                                                                                                                                                          containerEvents: {}

                                                                                                                                                          Type declaration

                                                                                                                                                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                          data

                                                                                                                                                          data: {}

                                                                                                                                                          Type declaration

                                                                                                                                                          • [key string]: any

                                                                                                                                                          optionaldefaultDrop

                                                                                                                                                          defaultDrop?: number

                                                                                                                                                          defaultValues

                                                                                                                                                          defaultValues: { burn: number; burnMax: number; output: number }

                                                                                                                                                          Type declaration

                                                                                                                                                          • burn: number
                                                                                                                                                          • burnMax: number
                                                                                                                                                          • output: number

                                                                                                                                                          readonlydimension

                                                                                                                                                          dimension: number

                                                                                                                                                          events

                                                                                                                                                          events: {}

                                                                                                                                                          Type declaration

                                                                                                                                                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                          finishingSound

                                                                                                                                                          finishingSound: number

                                                                                                                                                          getGuiScreen

                                                                                                                                                          getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                          Type declaration

                                                                                                                                                            • (): Nullable<IWindow>
                                                                                                                                                            • Returns Nullable<IWindow>

                                                                                                                                                          isLoaded

                                                                                                                                                          isLoaded: boolean

                                                                                                                                                          liquidStorage

                                                                                                                                                          liquidStorage: Storage

                                                                                                                                                          networkData

                                                                                                                                                          networkData: SyncedNetworkData

                                                                                                                                                          networkEntity

                                                                                                                                                          networkEntity: NetworkEntity

                                                                                                                                                          networkEntityType

                                                                                                                                                          networkEntityType: NetworkEntityType

                                                                                                                                                          networkEntityTypeName

                                                                                                                                                          networkEntityTypeName: string

                                                                                                                                                          noupdate

                                                                                                                                                          noupdate: boolean

                                                                                                                                                          optionalonConnectionPlayer

                                                                                                                                                          onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                          Type declaration

                                                                                                                                                            • (client: NetworkClient): void
                                                                                                                                                            • Parameters

                                                                                                                                                              • client: NetworkClient

                                                                                                                                                              Returns void

                                                                                                                                                          optionalonDisconnectionPlayer

                                                                                                                                                          onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                          Type declaration

                                                                                                                                                            • (client: NetworkClient): void
                                                                                                                                                            • Parameters

                                                                                                                                                              • client: NetworkClient

                                                                                                                                                              Returns void

                                                                                                                                                          region

                                                                                                                                                          region: WorldRegion

                                                                                                                                                          Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                          remove

                                                                                                                                                          remove: boolean

                                                                                                                                                          sendPacket

                                                                                                                                                          sendPacket: (name: string, data: object) => {}

                                                                                                                                                          Type declaration

                                                                                                                                                            • (name: string, data: object): {}
                                                                                                                                                            • Parameters

                                                                                                                                                              • name: string
                                                                                                                                                              • data: object

                                                                                                                                                              Returns {}

                                                                                                                                                            sendResponse

                                                                                                                                                            sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                            Type declaration

                                                                                                                                                              • (packetName: string, someData: object): {}
                                                                                                                                                              • Parameters

                                                                                                                                                                • packetName: string
                                                                                                                                                                • someData: object

                                                                                                                                                                Returns {}

                                                                                                                                                              update

                                                                                                                                                              update: () => void

                                                                                                                                                              Type declaration

                                                                                                                                                                • (): void
                                                                                                                                                                • Returns void

                                                                                                                                                              optionalupgrades

                                                                                                                                                              upgrades?: string[]

                                                                                                                                                              readonlyuseNetworkItemContainer

                                                                                                                                                              useNetworkItemContainer: boolean

                                                                                                                                                              x

                                                                                                                                                              x: number

                                                                                                                                                              y

                                                                                                                                                              y: number

                                                                                                                                                              z

                                                                                                                                                              z: number

                                                                                                                                                              addLiquidTank

                                                                                                                                                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                              • Parameters

                                                                                                                                                                • name: string
                                                                                                                                                                • limit: number
                                                                                                                                                                • optionalliquids: string[]

                                                                                                                                                                Returns LiquidTank

                                                                                                                                                              adjustDrop

                                                                                                                                                              • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                              • Parameters

                                                                                                                                                                • item: ItemInstance

                                                                                                                                                                Returns ItemInstance

                                                                                                                                                              canRotate

                                                                                                                                                              • canRotate(): boolean
                                                                                                                                                              • Returns boolean

                                                                                                                                                              clientLoad

                                                                                                                                                              • clientLoad(): void
                                                                                                                                                              • Called when the client copy is created


                                                                                                                                                                Returns void

                                                                                                                                                              clientTick

                                                                                                                                                              • clientTick(): void
                                                                                                                                                              • Called every tick on client thread


                                                                                                                                                                Returns void

                                                                                                                                                              clientUnload

                                                                                                                                                              • clientUnload(): void
                                                                                                                                                              • Called on destroying the client copy


                                                                                                                                                                Returns void

                                                                                                                                                              created

                                                                                                                                                              • created(): void
                                                                                                                                                              • Returns void

                                                                                                                                                              decreaseSlot

                                                                                                                                                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • slot: ItemContainerSlot
                                                                                                                                                                • count: number

                                                                                                                                                                Returns void

                                                                                                                                                              destroy

                                                                                                                                                              • destroy(): boolean
                                                                                                                                                              • Returns boolean

                                                                                                                                                              destroyBlock

                                                                                                                                                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                                • player: number

                                                                                                                                                                Returns void

                                                                                                                                                              getDefaultDrop

                                                                                                                                                              • getDefaultDrop(): number
                                                                                                                                                              • Returns number

                                                                                                                                                              getFacing

                                                                                                                                                              • getFacing(): number
                                                                                                                                                              • Returns number

                                                                                                                                                              getFuel

                                                                                                                                                              • getFuel(fuelSlot: ItemInstance): number
                                                                                                                                                              • Parameters

                                                                                                                                                                • fuelSlot: ItemInstance

                                                                                                                                                                Returns number

                                                                                                                                                              getInterruptSound

                                                                                                                                                              • getInterruptSound(): string
                                                                                                                                                              • Returns string

                                                                                                                                                              getOperationSound

                                                                                                                                                              • getOperationSound(): string
                                                                                                                                                              • Returns string

                                                                                                                                                              getScreenByName

                                                                                                                                                              • getScreenByName(): IWindow
                                                                                                                                                              • Returns IWindow

                                                                                                                                                              getScreenName

                                                                                                                                                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                                              • Parameters

                                                                                                                                                                • player: number
                                                                                                                                                                • coords: ItemUseCoordinates

                                                                                                                                                                Returns string

                                                                                                                                                              getStartingSound

                                                                                                                                                              • getStartingSound(): string
                                                                                                                                                              • Returns string

                                                                                                                                                              init

                                                                                                                                                              • init(): void
                                                                                                                                                              • @deprecated

                                                                                                                                                                Returns void

                                                                                                                                                              load

                                                                                                                                                              • load(): void
                                                                                                                                                              • @deprecated

                                                                                                                                                                Returns void

                                                                                                                                                              onCheckerTick

                                                                                                                                                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • isInitialized: boolean
                                                                                                                                                                • isLoaded: boolean
                                                                                                                                                                • wasLoaded: boolean

                                                                                                                                                                Returns void

                                                                                                                                                              onCreate

                                                                                                                                                              • onCreate(): void
                                                                                                                                                              • Called when a TileEntity is created


                                                                                                                                                                Returns void

                                                                                                                                                              onInit

                                                                                                                                                              • onInit(): void
                                                                                                                                                              • Called when a TileEntity is initialised in the world


                                                                                                                                                                Returns void

                                                                                                                                                              onItemClick

                                                                                                                                                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                              • Parameters

                                                                                                                                                                • id: number
                                                                                                                                                                • count: number
                                                                                                                                                                • data: number
                                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                                • player: number
                                                                                                                                                                • extra: ItemExtraData

                                                                                                                                                                Returns boolean

                                                                                                                                                              onItemUse

                                                                                                                                                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                              • 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

                                                                                                                                                              • onLoad(): void
                                                                                                                                                              • Called when a chunk with TileEntity is loaded


                                                                                                                                                                Returns void

                                                                                                                                                              onRedstoneUpdate

                                                                                                                                                              • onRedstoneUpdate(signal: number): void
                                                                                                                                                              • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                Parameters

                                                                                                                                                                • signal: number

                                                                                                                                                                  signal power (0-15)

                                                                                                                                                                Returns void

                                                                                                                                                              onTick

                                                                                                                                                              • onTick(): void
                                                                                                                                                              • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                Returns void

                                                                                                                                                              onUnload

                                                                                                                                                              • onUnload(): void
                                                                                                                                                              • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                Returns void

                                                                                                                                                              preventClick

                                                                                                                                                              • preventClick(): void
                                                                                                                                                              • Prevents all actions on click


                                                                                                                                                                Returns void

                                                                                                                                                              projectileHit

                                                                                                                                                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                                • target: ProjectileHitTarget

                                                                                                                                                                Returns void

                                                                                                                                                              redstone

                                                                                                                                                              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                              • @deprecated

                                                                                                                                                                Parameters

                                                                                                                                                                • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                  • onLoad: boolean
                                                                                                                                                                  • power: number
                                                                                                                                                                  • signal: number

                                                                                                                                                                Returns void

                                                                                                                                                              renderModel

                                                                                                                                                              • renderModel(): void
                                                                                                                                                              • Returns void

                                                                                                                                                              requireMoreLiquid

                                                                                                                                                              • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • liquid: string
                                                                                                                                                                • amount: number

                                                                                                                                                                Returns void

                                                                                                                                                              selfDestroy

                                                                                                                                                              • selfDestroy(): void
                                                                                                                                                              • Returns void

                                                                                                                                                              setActive

                                                                                                                                                              • setActive(isActive: boolean): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • isActive: boolean

                                                                                                                                                                Returns void

                                                                                                                                                              setFacing

                                                                                                                                                              • setFacing(side: number): boolean
                                                                                                                                                              • Parameters

                                                                                                                                                                • side: number

                                                                                                                                                                Returns boolean

                                                                                                                                                              setLiquidScale

                                                                                                                                                              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • container: any
                                                                                                                                                                • window: any
                                                                                                                                                                • content: any
                                                                                                                                                                • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                  • amount: number
                                                                                                                                                                  • liquid: string
                                                                                                                                                                  • scale: string

                                                                                                                                                                Returns void

                                                                                                                                                              setupContainer

                                                                                                                                                              • setupContainer(): void
                                                                                                                                                              • Returns void

                                                                                                                                                              spreadHeat

                                                                                                                                                              • spreadHeat(): number
                                                                                                                                                              • Returns number

                                                                                                                                                              startPlaySound

                                                                                                                                                              • startPlaySound(): void
                                                                                                                                                              • Returns void

                                                                                                                                                              stopPlaySound

                                                                                                                                                              • stopPlaySound(): void
                                                                                                                                                              • Returns void

                                                                                                                                                              tick

                                                                                                                                                              • tick(): void
                                                                                                                                                              • @deprecated

                                                                                                                                                                Returns void

                                                                                                                                                              unload

                                                                                                                                                              • unload(): void
                                                                                                                                                              • @deprecated

                                                                                                                                                                Returns void

                                                                                                                                                              updateLiquidScale

                                                                                                                                                              • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                              • Parameters

                                                                                                                                                                • scale: string
                                                                                                                                                                • liquid: string

                                                                                                                                                                Returns void

                                                                                                                                                              StirlingGenerator

                                                                                                                                                              StirlingGenerator:

                                                                                                                                                              constructor

                                                                                                                                                              __clientMethods

                                                                                                                                                              __clientMethods: {}

                                                                                                                                                              Type declaration

                                                                                                                                                              • [key string]: boolean

                                                                                                                                                              __containerEvents

                                                                                                                                                              __containerEvents: {}

                                                                                                                                                              Type declaration

                                                                                                                                                              __initialized

                                                                                                                                                              __initialized: boolean

                                                                                                                                                              __networkEvents

                                                                                                                                                              __networkEvents: {}

                                                                                                                                                              Type declaration

                                                                                                                                                              audioSource

                                                                                                                                                              audioSource: AudioSource

                                                                                                                                                              readonlyblockID

                                                                                                                                                              blockID: number

                                                                                                                                                              blockSource

                                                                                                                                                              blockSource: BlockSource

                                                                                                                                                              click

                                                                                                                                                              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                              Type declaration

                                                                                                                                                                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                                • Parameters

                                                                                                                                                                  • id: number
                                                                                                                                                                  • count: number
                                                                                                                                                                  • data: number
                                                                                                                                                                  • coords: ItemUseCoordinates
                                                                                                                                                                  • player: number
                                                                                                                                                                  • extra: ItemExtraData

                                                                                                                                                                  Returns boolean | void

                                                                                                                                                              client

                                                                                                                                                              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                              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
                                                                                                                                                                  • (): void
                                                                                                                                                                  • Returns void

                                                                                                                                                              • tick: () => void
                                                                                                                                                                  • (): void
                                                                                                                                                                  • Returns void

                                                                                                                                                              • unload: () => void
                                                                                                                                                                  • (): void
                                                                                                                                                                  • Returns void

                                                                                                                                                              container

                                                                                                                                                              container: ItemContainer

                                                                                                                                                              containerEvents

                                                                                                                                                              containerEvents: {}

                                                                                                                                                              Type declaration

                                                                                                                                                              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                              data

                                                                                                                                                              data: { energy: number; heat: number }

                                                                                                                                                              Type declaration

                                                                                                                                                              • energy: number
                                                                                                                                                              • heat: number

                                                                                                                                                              defaultDrop

                                                                                                                                                              defaultDrop: number

                                                                                                                                                              defaultValues

                                                                                                                                                              defaultValues: { energy: number; heat: number }

                                                                                                                                                              Type declaration

                                                                                                                                                              • energy: number
                                                                                                                                                              • heat: number

                                                                                                                                                              readonlydimension

                                                                                                                                                              dimension: number

                                                                                                                                                              energyNode

                                                                                                                                                              energyNode: EnergyTileNode

                                                                                                                                                              energyTypes

                                                                                                                                                              energyTypes: object

                                                                                                                                                              events

                                                                                                                                                              events: {}

                                                                                                                                                              Type declaration

                                                                                                                                                              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                              finishingSound

                                                                                                                                                              finishingSound: number

                                                                                                                                                              getGuiScreen

                                                                                                                                                              getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                              Type declaration

                                                                                                                                                                • (): Nullable<IWindow>
                                                                                                                                                                • Returns Nullable<IWindow>

                                                                                                                                                              isLoaded

                                                                                                                                                              isLoaded: boolean

                                                                                                                                                              liquidStorage

                                                                                                                                                              liquidStorage: Storage

                                                                                                                                                              networkData

                                                                                                                                                              networkData: SyncedNetworkData

                                                                                                                                                              networkEntity

                                                                                                                                                              networkEntity: NetworkEntity

                                                                                                                                                              networkEntityType

                                                                                                                                                              networkEntityType: NetworkEntityType

                                                                                                                                                              networkEntityTypeName

                                                                                                                                                              networkEntityTypeName: string

                                                                                                                                                              noupdate

                                                                                                                                                              noupdate: boolean

                                                                                                                                                              optionalonConnectionPlayer

                                                                                                                                                              onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                              Type declaration

                                                                                                                                                                • (client: NetworkClient): void
                                                                                                                                                                • Parameters

                                                                                                                                                                  • client: NetworkClient

                                                                                                                                                                  Returns void

                                                                                                                                                              optionalonDisconnectionPlayer

                                                                                                                                                              onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                              Type declaration

                                                                                                                                                                • (client: NetworkClient): void
                                                                                                                                                                • Parameters

                                                                                                                                                                  • client: NetworkClient

                                                                                                                                                                  Returns void

                                                                                                                                                              region

                                                                                                                                                              region: WorldRegion

                                                                                                                                                              Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                              remove

                                                                                                                                                              remove: boolean

                                                                                                                                                              sendPacket

                                                                                                                                                              sendPacket: (name: string, data: object) => {}

                                                                                                                                                              Type declaration

                                                                                                                                                                • (name: string, data: object): {}
                                                                                                                                                                • Parameters

                                                                                                                                                                  • name: string
                                                                                                                                                                  • data: object

                                                                                                                                                                  Returns {}

                                                                                                                                                                sendResponse

                                                                                                                                                                sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                                Type declaration

                                                                                                                                                                  • (packetName: string, someData: object): {}
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • packetName: string
                                                                                                                                                                    • someData: object

                                                                                                                                                                    Returns {}

                                                                                                                                                                  update

                                                                                                                                                                  update: () => void

                                                                                                                                                                  Type declaration

                                                                                                                                                                    • (): void
                                                                                                                                                                    • Returns void

                                                                                                                                                                  optionalupgrades

                                                                                                                                                                  upgrades?: string[]

                                                                                                                                                                  readonlyuseNetworkItemContainer

                                                                                                                                                                  useNetworkItemContainer: boolean

                                                                                                                                                                  x

                                                                                                                                                                  x: number

                                                                                                                                                                  y

                                                                                                                                                                  y: number

                                                                                                                                                                  z

                                                                                                                                                                  z: number

                                                                                                                                                                  addLiquidTank

                                                                                                                                                                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • name: string
                                                                                                                                                                    • limit: number
                                                                                                                                                                    • optionalliquids: string[]

                                                                                                                                                                    Returns LiquidTank

                                                                                                                                                                  adjustDrop

                                                                                                                                                                  • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • item: ItemInstance

                                                                                                                                                                    Returns ItemInstance

                                                                                                                                                                  canExtractEnergy

                                                                                                                                                                  • canExtractEnergy(): boolean
                                                                                                                                                                  • Returns boolean

                                                                                                                                                                  canReceiveEnergy

                                                                                                                                                                  • canReceiveEnergy(): boolean
                                                                                                                                                                  • Returns boolean

                                                                                                                                                                  canReceiveHeat

                                                                                                                                                                  • canReceiveHeat(side: number): boolean
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • side: number

                                                                                                                                                                    Returns boolean

                                                                                                                                                                  canRotate

                                                                                                                                                                  • canRotate(): boolean
                                                                                                                                                                  • Returns boolean

                                                                                                                                                                  chargeSlot

                                                                                                                                                                  • chargeSlot(slotName: string): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • slotName: string

                                                                                                                                                                    Returns void

                                                                                                                                                                  clientLoad

                                                                                                                                                                  • clientLoad(): void
                                                                                                                                                                  • Called when the client copy is created


                                                                                                                                                                    Returns void

                                                                                                                                                                  clientTick

                                                                                                                                                                  • clientTick(): void
                                                                                                                                                                  • Called every tick on client thread


                                                                                                                                                                    Returns void

                                                                                                                                                                  clientUnload

                                                                                                                                                                  • clientUnload(): void
                                                                                                                                                                  • Called on destroying the client copy


                                                                                                                                                                    Returns void

                                                                                                                                                                  created

                                                                                                                                                                  • created(): void
                                                                                                                                                                  • Returns void

                                                                                                                                                                  decreaseSlot

                                                                                                                                                                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • slot: ItemContainerSlot
                                                                                                                                                                    • count: number

                                                                                                                                                                    Returns void

                                                                                                                                                                  destroy

                                                                                                                                                                  • destroy(): boolean
                                                                                                                                                                  • Returns boolean

                                                                                                                                                                  destroyBlock

                                                                                                                                                                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                                    • player: number

                                                                                                                                                                    Returns void

                                                                                                                                                                  dischargeSlot

                                                                                                                                                                  • dischargeSlot(slotName: string): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • slotName: string

                                                                                                                                                                    Returns void

                                                                                                                                                                  energyReceive

                                                                                                                                                                  • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • type: string
                                                                                                                                                                    • amount: number
                                                                                                                                                                    • voltage: number

                                                                                                                                                                    Returns number

                                                                                                                                                                  energyTick

                                                                                                                                                                  • Parameters

                                                                                                                                                                    Returns void

                                                                                                                                                                  getDefaultDrop

                                                                                                                                                                  • getDefaultDrop(): number
                                                                                                                                                                  • Returns number

                                                                                                                                                                  getEnergyStorage

                                                                                                                                                                  • getEnergyStorage(): number
                                                                                                                                                                  • Returns number

                                                                                                                                                                  getExplosionPower

                                                                                                                                                                  • getExplosionPower(): number
                                                                                                                                                                  • Returns number

                                                                                                                                                                  getFacing

                                                                                                                                                                  • getFacing(): number
                                                                                                                                                                  • Returns number

                                                                                                                                                                  getInterruptSound

                                                                                                                                                                  • getInterruptSound(): string
                                                                                                                                                                  • Returns string

                                                                                                                                                                  getMaxPacketSize

                                                                                                                                                                  • getMaxPacketSize(): number
                                                                                                                                                                  • Returns number

                                                                                                                                                                  getOperationSound

                                                                                                                                                                  • getOperationSound(): string
                                                                                                                                                                  • Returns string

                                                                                                                                                                  getRelativeEnergy

                                                                                                                                                                  • getRelativeEnergy(): number
                                                                                                                                                                  • Returns number

                                                                                                                                                                  getScreenByName

                                                                                                                                                                  • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • screenName: string
                                                                                                                                                                    • container: ItemContainer

                                                                                                                                                                    Returns IWindow

                                                                                                                                                                  getScreenName

                                                                                                                                                                  • getScreenName(): string
                                                                                                                                                                  • Returns string

                                                                                                                                                                  getStartingSound

                                                                                                                                                                  • getStartingSound(): string
                                                                                                                                                                  • Returns string

                                                                                                                                                                  getTier

                                                                                                                                                                  • getTier(): number
                                                                                                                                                                  • Returns number

                                                                                                                                                                  init

                                                                                                                                                                  • init(): void
                                                                                                                                                                  • @deprecated

                                                                                                                                                                    Returns void

                                                                                                                                                                  isConductor

                                                                                                                                                                  • isConductor(type: string): boolean
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • type: string

                                                                                                                                                                    Returns boolean

                                                                                                                                                                  load

                                                                                                                                                                  • load(): void
                                                                                                                                                                  • @deprecated

                                                                                                                                                                    Returns void

                                                                                                                                                                  onCheckerTick

                                                                                                                                                                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • isInitialized: boolean
                                                                                                                                                                    • isLoaded: boolean
                                                                                                                                                                    • wasLoaded: boolean

                                                                                                                                                                    Returns void

                                                                                                                                                                  onCreate

                                                                                                                                                                  • onCreate(): void
                                                                                                                                                                  • Called when a TileEntity is created


                                                                                                                                                                    Returns void

                                                                                                                                                                  onInit

                                                                                                                                                                  • onInit(): void
                                                                                                                                                                  • Called when a TileEntity is initialised in the world


                                                                                                                                                                    Returns void

                                                                                                                                                                  onItemClick

                                                                                                                                                                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • id: number
                                                                                                                                                                    • count: number
                                                                                                                                                                    • data: number
                                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                                    • player: number
                                                                                                                                                                    • extra: ItemExtraData

                                                                                                                                                                    Returns boolean

                                                                                                                                                                  onItemUse

                                                                                                                                                                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                                  • 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

                                                                                                                                                                  • onLoad(): void
                                                                                                                                                                  • Called when a chunk with TileEntity is loaded


                                                                                                                                                                    Returns void

                                                                                                                                                                  onRedstoneUpdate

                                                                                                                                                                  • onRedstoneUpdate(signal: number): void
                                                                                                                                                                  • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                    Parameters

                                                                                                                                                                    • signal: number

                                                                                                                                                                      signal power (0-15)

                                                                                                                                                                    Returns void

                                                                                                                                                                  onTick

                                                                                                                                                                  • onTick(): void
                                                                                                                                                                  • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                    Returns void

                                                                                                                                                                  onUnload

                                                                                                                                                                  • onUnload(): void
                                                                                                                                                                  • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                    Returns void

                                                                                                                                                                  preventClick

                                                                                                                                                                  • preventClick(): void
                                                                                                                                                                  • Prevents all actions on click


                                                                                                                                                                    Returns void

                                                                                                                                                                  projectileHit

                                                                                                                                                                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                                    • target: ProjectileHitTarget

                                                                                                                                                                    Returns void

                                                                                                                                                                  rebuildGrid

                                                                                                                                                                  • rebuildGrid(): void
                                                                                                                                                                  • Returns void

                                                                                                                                                                  receiveHeat

                                                                                                                                                                  • receiveHeat(amount: number): number
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • amount: number

                                                                                                                                                                    Returns number

                                                                                                                                                                  redstone

                                                                                                                                                                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                                  • @deprecated

                                                                                                                                                                    Parameters

                                                                                                                                                                    • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                      • onLoad: boolean
                                                                                                                                                                      • power: number
                                                                                                                                                                      • signal: number

                                                                                                                                                                    Returns void

                                                                                                                                                                  renderModel

                                                                                                                                                                  • renderModel(): void
                                                                                                                                                                  • Returns void

                                                                                                                                                                  requireMoreLiquid

                                                                                                                                                                  • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • liquid: string
                                                                                                                                                                    • amount: number

                                                                                                                                                                    Returns void

                                                                                                                                                                  selfDestroy

                                                                                                                                                                  • selfDestroy(): void
                                                                                                                                                                  • Returns void

                                                                                                                                                                  setActive

                                                                                                                                                                  • setActive(isActive: boolean): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • isActive: boolean

                                                                                                                                                                    Returns void

                                                                                                                                                                  setFacing

                                                                                                                                                                  • setFacing(side: number): boolean
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • side: number

                                                                                                                                                                    Returns boolean

                                                                                                                                                                  setLiquidScale

                                                                                                                                                                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • container: any
                                                                                                                                                                    • window: any
                                                                                                                                                                    • content: any
                                                                                                                                                                    • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                      • amount: number
                                                                                                                                                                      • liquid: string
                                                                                                                                                                      • scale: string

                                                                                                                                                                    Returns void

                                                                                                                                                                  setupContainer

                                                                                                                                                                  • setupContainer(): void
                                                                                                                                                                  • Returns void

                                                                                                                                                                  startPlaySound

                                                                                                                                                                  • startPlaySound(): void
                                                                                                                                                                  • Returns void

                                                                                                                                                                  stopPlaySound

                                                                                                                                                                  • stopPlaySound(): void
                                                                                                                                                                  • Returns void

                                                                                                                                                                  tick

                                                                                                                                                                  • tick(): void
                                                                                                                                                                  • @deprecated

                                                                                                                                                                    Returns void

                                                                                                                                                                  unload

                                                                                                                                                                  • unload(): void
                                                                                                                                                                  • @deprecated

                                                                                                                                                                    Returns void

                                                                                                                                                                  updateLiquidScale

                                                                                                                                                                  • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                                  • Parameters

                                                                                                                                                                    • scale: string
                                                                                                                                                                    • liquid: string

                                                                                                                                                                    Returns void

                                                                                                                                                                  Teleporter

                                                                                                                                                                  Teleporter:

                                                                                                                                                                  constructor

                                                                                                                                                                  • Returns Teleporter

                                                                                                                                                                  __clientMethods

                                                                                                                                                                  __clientMethods: {}

                                                                                                                                                                  Type declaration

                                                                                                                                                                  • [key string]: boolean

                                                                                                                                                                  __containerEvents

                                                                                                                                                                  __containerEvents: {}

                                                                                                                                                                  Type declaration

                                                                                                                                                                  __initialized

                                                                                                                                                                  __initialized: boolean

                                                                                                                                                                  __networkEvents

                                                                                                                                                                  __networkEvents: {}

                                                                                                                                                                  Type declaration

                                                                                                                                                                  audioSource

                                                                                                                                                                  audioSource: AudioSource

                                                                                                                                                                  readonlyblockID

                                                                                                                                                                  blockID: number

                                                                                                                                                                  blockSource

                                                                                                                                                                  blockSource: BlockSource

                                                                                                                                                                  click

                                                                                                                                                                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                                  Type declaration

                                                                                                                                                                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                                    • Parameters

                                                                                                                                                                      • id: number
                                                                                                                                                                      • count: number
                                                                                                                                                                      • data: number
                                                                                                                                                                      • coords: ItemUseCoordinates
                                                                                                                                                                      • player: number
                                                                                                                                                                      • extra: ItemExtraData

                                                                                                                                                                      Returns boolean | void

                                                                                                                                                                  client

                                                                                                                                                                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                                  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
                                                                                                                                                                      • (): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                  • tick: () => void
                                                                                                                                                                      • (): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                  • unload: () => void
                                                                                                                                                                      • (): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                  container

                                                                                                                                                                  container: ItemContainer

                                                                                                                                                                  containerEvents

                                                                                                                                                                  containerEvents: {}

                                                                                                                                                                  Type declaration

                                                                                                                                                                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                                  data

                                                                                                                                                                  data: {}

                                                                                                                                                                  Type declaration

                                                                                                                                                                  • [key string]: any

                                                                                                                                                                  defaultDrop

                                                                                                                                                                  defaultDrop: number

                                                                                                                                                                  defaultValues

                                                                                                                                                                  defaultValues: { frequency: any; isActive: boolean }

                                                                                                                                                                  Type declaration

                                                                                                                                                                  • frequency: any
                                                                                                                                                                  • isActive: boolean

                                                                                                                                                                  readonlydimension

                                                                                                                                                                  dimension: number

                                                                                                                                                                  events

                                                                                                                                                                  events: {}

                                                                                                                                                                  Type declaration

                                                                                                                                                                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                                  finishingSound

                                                                                                                                                                  finishingSound: number

                                                                                                                                                                  getGuiScreen

                                                                                                                                                                  getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                                  Type declaration

                                                                                                                                                                    • (): Nullable<IWindow>
                                                                                                                                                                    • Returns Nullable<IWindow>

                                                                                                                                                                  isLoaded

                                                                                                                                                                  isLoaded: boolean

                                                                                                                                                                  liquidStorage

                                                                                                                                                                  liquidStorage: Storage

                                                                                                                                                                  networkData

                                                                                                                                                                  networkData: SyncedNetworkData

                                                                                                                                                                  networkEntity

                                                                                                                                                                  networkEntity: NetworkEntity

                                                                                                                                                                  networkEntityType

                                                                                                                                                                  networkEntityType: NetworkEntityType

                                                                                                                                                                  networkEntityTypeName

                                                                                                                                                                  networkEntityTypeName: string

                                                                                                                                                                  noupdate

                                                                                                                                                                  noupdate: boolean

                                                                                                                                                                  optionalonConnectionPlayer

                                                                                                                                                                  onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                  Type declaration

                                                                                                                                                                    • (client: NetworkClient): void
                                                                                                                                                                    • Parameters

                                                                                                                                                                      • client: NetworkClient

                                                                                                                                                                      Returns void

                                                                                                                                                                  optionalonDisconnectionPlayer

                                                                                                                                                                  onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                  Type declaration

                                                                                                                                                                    • (client: NetworkClient): void
                                                                                                                                                                    • Parameters

                                                                                                                                                                      • client: NetworkClient

                                                                                                                                                                      Returns void

                                                                                                                                                                  region

                                                                                                                                                                  region: WorldRegion

                                                                                                                                                                  Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                                  remove

                                                                                                                                                                  remove: boolean

                                                                                                                                                                  sendPacket

                                                                                                                                                                  sendPacket: (name: string, data: object) => {}

                                                                                                                                                                  Type declaration

                                                                                                                                                                    • (name: string, data: object): {}
                                                                                                                                                                    • Parameters

                                                                                                                                                                      • name: string
                                                                                                                                                                      • data: object

                                                                                                                                                                      Returns {}

                                                                                                                                                                    sendResponse

                                                                                                                                                                    sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                                    Type declaration

                                                                                                                                                                      • (packetName: string, someData: object): {}
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • packetName: string
                                                                                                                                                                        • someData: object

                                                                                                                                                                        Returns {}

                                                                                                                                                                      update

                                                                                                                                                                      update: () => void

                                                                                                                                                                      Type declaration

                                                                                                                                                                        • (): void
                                                                                                                                                                        • Returns void

                                                                                                                                                                      optionalupgrades

                                                                                                                                                                      upgrades?: string[]

                                                                                                                                                                      readonlyuseNetworkItemContainer

                                                                                                                                                                      useNetworkItemContainer: boolean

                                                                                                                                                                      x

                                                                                                                                                                      x: number

                                                                                                                                                                      y

                                                                                                                                                                      y: number

                                                                                                                                                                      z

                                                                                                                                                                      z: number

                                                                                                                                                                      addLiquidTank

                                                                                                                                                                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • name: string
                                                                                                                                                                        • limit: number
                                                                                                                                                                        • optionalliquids: string[]

                                                                                                                                                                        Returns LiquidTank

                                                                                                                                                                      adjustDrop

                                                                                                                                                                      • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • item: ItemInstance

                                                                                                                                                                        Returns ItemInstance

                                                                                                                                                                      canRotate

                                                                                                                                                                      • canRotate(side: number): boolean
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • side: number

                                                                                                                                                                        Returns boolean

                                                                                                                                                                      clientLoad

                                                                                                                                                                      • clientLoad(): void
                                                                                                                                                                      • Called when the client copy is created


                                                                                                                                                                        Returns void

                                                                                                                                                                      clientTick

                                                                                                                                                                      • clientTick(): void
                                                                                                                                                                      • Called every tick on client thread


                                                                                                                                                                        Returns void

                                                                                                                                                                      clientUnload

                                                                                                                                                                      • clientUnload(): void
                                                                                                                                                                      • Called on destroying the client copy


                                                                                                                                                                        Returns void

                                                                                                                                                                      created

                                                                                                                                                                      • created(): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                      decreaseSlot

                                                                                                                                                                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • slot: ItemContainerSlot
                                                                                                                                                                        • count: number

                                                                                                                                                                        Returns void

                                                                                                                                                                      destroy

                                                                                                                                                                      • destroy(): boolean
                                                                                                                                                                      • Returns boolean

                                                                                                                                                                      destroyBlock

                                                                                                                                                                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                                        • player: number

                                                                                                                                                                        Returns void

                                                                                                                                                                      getDefaultDrop

                                                                                                                                                                      • getDefaultDrop(): number
                                                                                                                                                                      • Returns number

                                                                                                                                                                      getFacing

                                                                                                                                                                      • getFacing(): number
                                                                                                                                                                      • Returns number

                                                                                                                                                                      getInterruptSound

                                                                                                                                                                      • getInterruptSound(): string
                                                                                                                                                                      • Returns string

                                                                                                                                                                      getNearestStorages

                                                                                                                                                                      • getNearestStorages(): TileEntity[]
                                                                                                                                                                      • Returns TileEntity[]

                                                                                                                                                                      getOperationSound

                                                                                                                                                                      • getOperationSound(): string
                                                                                                                                                                      • Returns string

                                                                                                                                                                      getScreenByName

                                                                                                                                                                      • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • screenName: string
                                                                                                                                                                        • container: ItemContainer

                                                                                                                                                                        Returns IWindow

                                                                                                                                                                      getScreenName

                                                                                                                                                                      • getScreenName(): string
                                                                                                                                                                      • Returns string

                                                                                                                                                                      getStartingSound

                                                                                                                                                                      • getStartingSound(): string
                                                                                                                                                                      • Returns string

                                                                                                                                                                      getWeight

                                                                                                                                                                      • getWeight(ent: number): number
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • ent: number

                                                                                                                                                                        Returns number

                                                                                                                                                                      init

                                                                                                                                                                      • init(): void
                                                                                                                                                                      • @deprecated

                                                                                                                                                                        Returns void

                                                                                                                                                                      load

                                                                                                                                                                      • load(): void
                                                                                                                                                                      • @deprecated

                                                                                                                                                                        Returns void

                                                                                                                                                                      onCheckerTick

                                                                                                                                                                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • isInitialized: boolean
                                                                                                                                                                        • isLoaded: boolean
                                                                                                                                                                        • wasLoaded: boolean

                                                                                                                                                                        Returns void

                                                                                                                                                                      onCreate

                                                                                                                                                                      • onCreate(): void
                                                                                                                                                                      • Called when a TileEntity is created


                                                                                                                                                                        Returns void

                                                                                                                                                                      onInit

                                                                                                                                                                      • onInit(): void
                                                                                                                                                                      • Called when a TileEntity is initialised in the world


                                                                                                                                                                        Returns void

                                                                                                                                                                      onItemClick

                                                                                                                                                                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • id: number
                                                                                                                                                                        • count: number
                                                                                                                                                                        • data: number
                                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                                        • player: number
                                                                                                                                                                        • extra: ItemExtraData

                                                                                                                                                                        Returns boolean

                                                                                                                                                                      onItemUse

                                                                                                                                                                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                                      • 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

                                                                                                                                                                      • onLoad(): void
                                                                                                                                                                      • Called when a chunk with TileEntity is loaded


                                                                                                                                                                        Returns void

                                                                                                                                                                      onRedstoneUpdate

                                                                                                                                                                      • onRedstoneUpdate(signal: number): void
                                                                                                                                                                      • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                        Parameters

                                                                                                                                                                        • signal: number

                                                                                                                                                                          signal power (0-15)

                                                                                                                                                                        Returns void

                                                                                                                                                                      onTick

                                                                                                                                                                      • onTick(): void
                                                                                                                                                                      • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                        Returns void

                                                                                                                                                                      onUnload

                                                                                                                                                                      • onUnload(): void
                                                                                                                                                                      • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                        Returns void

                                                                                                                                                                      preventClick

                                                                                                                                                                      • preventClick(): void
                                                                                                                                                                      • Prevents all actions on click


                                                                                                                                                                        Returns void

                                                                                                                                                                      projectileHit

                                                                                                                                                                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                                        • target: ProjectileHitTarget

                                                                                                                                                                        Returns void

                                                                                                                                                                      redstone

                                                                                                                                                                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                                      • @deprecated

                                                                                                                                                                        Parameters

                                                                                                                                                                        • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                          • onLoad: boolean
                                                                                                                                                                          • power: number
                                                                                                                                                                          • signal: number

                                                                                                                                                                        Returns void

                                                                                                                                                                      renderModel

                                                                                                                                                                      • renderModel(): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                      requireMoreLiquid

                                                                                                                                                                      • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • liquid: string
                                                                                                                                                                        • amount: number

                                                                                                                                                                        Returns void

                                                                                                                                                                      selfDestroy

                                                                                                                                                                      • selfDestroy(): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                      setActive

                                                                                                                                                                      • setActive(isActive: boolean): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • isActive: boolean

                                                                                                                                                                        Returns void

                                                                                                                                                                      setFacing

                                                                                                                                                                      • setFacing(side: number): boolean
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • side: number

                                                                                                                                                                        Returns boolean

                                                                                                                                                                      setLiquidScale

                                                                                                                                                                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • container: any
                                                                                                                                                                        • window: any
                                                                                                                                                                        • content: any
                                                                                                                                                                        • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                          • amount: number
                                                                                                                                                                          • liquid: string
                                                                                                                                                                          • scale: string

                                                                                                                                                                        Returns void

                                                                                                                                                                      setupContainer

                                                                                                                                                                      • setupContainer(): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                      startPlaySound

                                                                                                                                                                      • startPlaySound(): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                      stopPlaySound

                                                                                                                                                                      • stopPlaySound(): void
                                                                                                                                                                      • Returns void

                                                                                                                                                                      tick

                                                                                                                                                                      • tick(): void
                                                                                                                                                                      • @deprecated

                                                                                                                                                                        Returns void

                                                                                                                                                                      unload

                                                                                                                                                                      • unload(): void
                                                                                                                                                                      • @deprecated

                                                                                                                                                                        Returns void

                                                                                                                                                                      updateLiquidScale

                                                                                                                                                                      • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                                      • Parameters

                                                                                                                                                                        • scale: string
                                                                                                                                                                        • liquid: string

                                                                                                                                                                        Returns void

                                                                                                                                                                      TeslaCoil

                                                                                                                                                                      TeslaCoil:

                                                                                                                                                                      constructor

                                                                                                                                                                      • Returns TeslaCoil

                                                                                                                                                                      __clientMethods

                                                                                                                                                                      __clientMethods: {}

                                                                                                                                                                      Type declaration

                                                                                                                                                                      • [key string]: boolean

                                                                                                                                                                      __containerEvents

                                                                                                                                                                      __containerEvents: {}

                                                                                                                                                                      Type declaration

                                                                                                                                                                      __initialized

                                                                                                                                                                      __initialized: boolean

                                                                                                                                                                      __networkEvents

                                                                                                                                                                      __networkEvents: {}

                                                                                                                                                                      Type declaration

                                                                                                                                                                      audioSource

                                                                                                                                                                      audioSource: AudioSource

                                                                                                                                                                      readonlyblockID

                                                                                                                                                                      blockID: number

                                                                                                                                                                      blockSource

                                                                                                                                                                      blockSource: BlockSource

                                                                                                                                                                      click

                                                                                                                                                                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                                      Type declaration

                                                                                                                                                                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                                        • Parameters

                                                                                                                                                                          • id: number
                                                                                                                                                                          • count: number
                                                                                                                                                                          • data: number
                                                                                                                                                                          • coords: ItemUseCoordinates
                                                                                                                                                                          • player: number
                                                                                                                                                                          • extra: ItemExtraData

                                                                                                                                                                          Returns boolean | void

                                                                                                                                                                      client

                                                                                                                                                                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                                      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
                                                                                                                                                                          • (): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                      • tick: () => void
                                                                                                                                                                          • (): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                      • unload: () => void
                                                                                                                                                                          • (): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                      container

                                                                                                                                                                      container: ItemContainer

                                                                                                                                                                      containerEvents

                                                                                                                                                                      containerEvents: {}

                                                                                                                                                                      Type declaration

                                                                                                                                                                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                                      data

                                                                                                                                                                      data: { energy: number; isEnabled: boolean }

                                                                                                                                                                      Type declaration

                                                                                                                                                                      • energy: number
                                                                                                                                                                      • isEnabled: boolean

                                                                                                                                                                      optionaldefaultDrop

                                                                                                                                                                      defaultDrop?: number

                                                                                                                                                                      defaultValues

                                                                                                                                                                      defaultValues: { energy: number; isEnabled: boolean }

                                                                                                                                                                      Type declaration

                                                                                                                                                                      • energy: number
                                                                                                                                                                      • isEnabled: boolean

                                                                                                                                                                      readonlydimension

                                                                                                                                                                      dimension: number

                                                                                                                                                                      energyNode

                                                                                                                                                                      energyNode: EnergyTileNode

                                                                                                                                                                      energyTypes

                                                                                                                                                                      energyTypes: object

                                                                                                                                                                      events

                                                                                                                                                                      events: {}

                                                                                                                                                                      Type declaration

                                                                                                                                                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                                      finishingSound

                                                                                                                                                                      finishingSound: number

                                                                                                                                                                      getGuiScreen

                                                                                                                                                                      getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                                      Type declaration

                                                                                                                                                                        • (): Nullable<IWindow>
                                                                                                                                                                        • Returns Nullable<IWindow>

                                                                                                                                                                      isLoaded

                                                                                                                                                                      isLoaded: boolean

                                                                                                                                                                      liquidStorage

                                                                                                                                                                      liquidStorage: Storage

                                                                                                                                                                      networkData

                                                                                                                                                                      networkData: SyncedNetworkData

                                                                                                                                                                      networkEntity

                                                                                                                                                                      networkEntity: NetworkEntity

                                                                                                                                                                      networkEntityType

                                                                                                                                                                      networkEntityType: NetworkEntityType

                                                                                                                                                                      networkEntityTypeName

                                                                                                                                                                      networkEntityTypeName: string

                                                                                                                                                                      noupdate

                                                                                                                                                                      noupdate: boolean

                                                                                                                                                                      optionalonConnectionPlayer

                                                                                                                                                                      onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                      Type declaration

                                                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                                                        • Parameters

                                                                                                                                                                          • client: NetworkClient

                                                                                                                                                                          Returns void

                                                                                                                                                                      optionalonDisconnectionPlayer

                                                                                                                                                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                      Type declaration

                                                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                                                        • Parameters

                                                                                                                                                                          • client: NetworkClient

                                                                                                                                                                          Returns void

                                                                                                                                                                      region

                                                                                                                                                                      region: WorldRegion

                                                                                                                                                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                                      remove

                                                                                                                                                                      remove: boolean

                                                                                                                                                                      sendPacket

                                                                                                                                                                      sendPacket: (name: string, data: object) => {}

                                                                                                                                                                      Type declaration

                                                                                                                                                                        • (name: string, data: object): {}
                                                                                                                                                                        • Parameters

                                                                                                                                                                          • name: string
                                                                                                                                                                          • data: object

                                                                                                                                                                          Returns {}

                                                                                                                                                                        sendResponse

                                                                                                                                                                        sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                                        Type declaration

                                                                                                                                                                          • (packetName: string, someData: object): {}
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • packetName: string
                                                                                                                                                                            • someData: object

                                                                                                                                                                            Returns {}

                                                                                                                                                                          update

                                                                                                                                                                          update: () => void

                                                                                                                                                                          Type declaration

                                                                                                                                                                            • (): void
                                                                                                                                                                            • Returns void

                                                                                                                                                                          optionalupgrades

                                                                                                                                                                          upgrades?: string[]

                                                                                                                                                                          readonlyuseNetworkItemContainer

                                                                                                                                                                          useNetworkItemContainer: boolean

                                                                                                                                                                          x

                                                                                                                                                                          x: number

                                                                                                                                                                          y

                                                                                                                                                                          y: number

                                                                                                                                                                          z

                                                                                                                                                                          z: number

                                                                                                                                                                          addLiquidTank

                                                                                                                                                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • name: string
                                                                                                                                                                            • limit: number
                                                                                                                                                                            • optionalliquids: string[]

                                                                                                                                                                            Returns LiquidTank

                                                                                                                                                                          adjustDrop

                                                                                                                                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • item: ItemInstance

                                                                                                                                                                            Returns ItemInstance

                                                                                                                                                                          canExtractEnergy

                                                                                                                                                                          • canExtractEnergy(side: number, type: string): boolean
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • side: number
                                                                                                                                                                            • type: string

                                                                                                                                                                            Returns boolean

                                                                                                                                                                          canReceiveEnergy

                                                                                                                                                                          • canReceiveEnergy(side: number, type: string): boolean
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • side: number
                                                                                                                                                                            • type: string

                                                                                                                                                                            Returns boolean

                                                                                                                                                                          canRotate

                                                                                                                                                                          • canRotate(side: number): boolean
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • side: number

                                                                                                                                                                            Returns boolean

                                                                                                                                                                          chargeSlot

                                                                                                                                                                          • chargeSlot(slotName: string): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • slotName: string

                                                                                                                                                                            Returns void

                                                                                                                                                                          clientLoad

                                                                                                                                                                          • clientLoad(): void
                                                                                                                                                                          • Called when the client copy is created


                                                                                                                                                                            Returns void

                                                                                                                                                                          clientTick

                                                                                                                                                                          • clientTick(): void
                                                                                                                                                                          • Called every tick on client thread


                                                                                                                                                                            Returns void

                                                                                                                                                                          clientUnload

                                                                                                                                                                          • clientUnload(): void
                                                                                                                                                                          • Called on destroying the client copy


                                                                                                                                                                            Returns void

                                                                                                                                                                          created

                                                                                                                                                                          • created(): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                          decreaseSlot

                                                                                                                                                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • slot: ItemContainerSlot
                                                                                                                                                                            • count: number

                                                                                                                                                                            Returns void

                                                                                                                                                                          destroy

                                                                                                                                                                          • destroy(): boolean
                                                                                                                                                                          • Returns boolean

                                                                                                                                                                          destroyBlock

                                                                                                                                                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                                            • player: number

                                                                                                                                                                            Returns void

                                                                                                                                                                          dischargeSlot

                                                                                                                                                                          • dischargeSlot(slotName: string): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • slotName: string

                                                                                                                                                                            Returns void

                                                                                                                                                                          energyReceive

                                                                                                                                                                          • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • type: string
                                                                                                                                                                            • amount: number
                                                                                                                                                                            • voltage: number

                                                                                                                                                                            Returns number

                                                                                                                                                                          energyTick

                                                                                                                                                                          • Parameters

                                                                                                                                                                            Returns void

                                                                                                                                                                          getDefaultDrop

                                                                                                                                                                          • getDefaultDrop(): number
                                                                                                                                                                          • Returns number

                                                                                                                                                                          getEnergyStorage

                                                                                                                                                                          • getEnergyStorage(): number
                                                                                                                                                                          • Returns number

                                                                                                                                                                          getExplosionPower

                                                                                                                                                                          • getExplosionPower(): number
                                                                                                                                                                          • Returns number

                                                                                                                                                                          getFacing

                                                                                                                                                                          • getFacing(): number
                                                                                                                                                                          • Returns number

                                                                                                                                                                          getInterruptSound

                                                                                                                                                                          • getInterruptSound(): string
                                                                                                                                                                          • Returns string

                                                                                                                                                                          getMaxPacketSize

                                                                                                                                                                          • getMaxPacketSize(): number
                                                                                                                                                                          • Returns number

                                                                                                                                                                          getOperationSound

                                                                                                                                                                          • getOperationSound(): string
                                                                                                                                                                          • Returns string

                                                                                                                                                                          getRelativeEnergy

                                                                                                                                                                          • getRelativeEnergy(): number
                                                                                                                                                                          • Returns number

                                                                                                                                                                          getScreenByName

                                                                                                                                                                          • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • screenName: string
                                                                                                                                                                            • container: ItemContainer

                                                                                                                                                                            Returns IWindow

                                                                                                                                                                          getScreenName

                                                                                                                                                                          • getScreenName(): string
                                                                                                                                                                          • Returns string

                                                                                                                                                                          getStartingSound

                                                                                                                                                                          • getStartingSound(): string
                                                                                                                                                                          • Returns string

                                                                                                                                                                          getTier

                                                                                                                                                                          • getTier(): number
                                                                                                                                                                          • Returns number

                                                                                                                                                                          init

                                                                                                                                                                          • init(): void
                                                                                                                                                                          • @deprecated

                                                                                                                                                                            Returns void

                                                                                                                                                                          isConductor

                                                                                                                                                                          • isConductor(type: string): boolean
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • type: string

                                                                                                                                                                            Returns boolean

                                                                                                                                                                          load

                                                                                                                                                                          • load(): void
                                                                                                                                                                          • @deprecated

                                                                                                                                                                            Returns void

                                                                                                                                                                          onCheckerTick

                                                                                                                                                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • isInitialized: boolean
                                                                                                                                                                            • isLoaded: boolean
                                                                                                                                                                            • wasLoaded: boolean

                                                                                                                                                                            Returns void

                                                                                                                                                                          onCreate

                                                                                                                                                                          • onCreate(): void
                                                                                                                                                                          • Called when a TileEntity is created


                                                                                                                                                                            Returns void

                                                                                                                                                                          onInit

                                                                                                                                                                          • onInit(): void
                                                                                                                                                                          • Called when a TileEntity is initialised in the world


                                                                                                                                                                            Returns void

                                                                                                                                                                          onItemClick

                                                                                                                                                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • id: number
                                                                                                                                                                            • count: number
                                                                                                                                                                            • data: number
                                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                                            • player: number
                                                                                                                                                                            • extra: ItemExtraData

                                                                                                                                                                            Returns boolean

                                                                                                                                                                          onItemUse

                                                                                                                                                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                                          • 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

                                                                                                                                                                          • onLoad(): void
                                                                                                                                                                          • Called when a chunk with TileEntity is loaded


                                                                                                                                                                            Returns void

                                                                                                                                                                          onRedstoneUpdate

                                                                                                                                                                          • onRedstoneUpdate(signal: number): void
                                                                                                                                                                          • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                            Parameters

                                                                                                                                                                            • signal: number

                                                                                                                                                                              signal power (0-15)

                                                                                                                                                                            Returns void

                                                                                                                                                                          onTick

                                                                                                                                                                          • onTick(): void
                                                                                                                                                                          • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                            Returns void

                                                                                                                                                                          onUnload

                                                                                                                                                                          • onUnload(): void
                                                                                                                                                                          • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                            Returns void

                                                                                                                                                                          preventClick

                                                                                                                                                                          • preventClick(): void
                                                                                                                                                                          • Prevents all actions on click


                                                                                                                                                                            Returns void

                                                                                                                                                                          projectileHit

                                                                                                                                                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                                            • target: ProjectileHitTarget

                                                                                                                                                                            Returns void

                                                                                                                                                                          rebuildGrid

                                                                                                                                                                          • rebuildGrid(): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                          redstone

                                                                                                                                                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                                          • @deprecated

                                                                                                                                                                            Parameters

                                                                                                                                                                            • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                              • onLoad: boolean
                                                                                                                                                                              • power: number
                                                                                                                                                                              • signal: number

                                                                                                                                                                            Returns void

                                                                                                                                                                          renderModel

                                                                                                                                                                          • renderModel(): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                          requireMoreLiquid

                                                                                                                                                                          • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • liquid: string
                                                                                                                                                                            • amount: number

                                                                                                                                                                            Returns void

                                                                                                                                                                          selfDestroy

                                                                                                                                                                          • selfDestroy(): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                          setActive

                                                                                                                                                                          • setActive(isActive: boolean): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • isActive: boolean

                                                                                                                                                                            Returns void

                                                                                                                                                                          setFacing

                                                                                                                                                                          • setFacing(side: number): boolean
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • side: number

                                                                                                                                                                            Returns boolean

                                                                                                                                                                          setLiquidScale

                                                                                                                                                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • container: any
                                                                                                                                                                            • window: any
                                                                                                                                                                            • content: any
                                                                                                                                                                            • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                              • amount: number
                                                                                                                                                                              • liquid: string
                                                                                                                                                                              • scale: string

                                                                                                                                                                            Returns void

                                                                                                                                                                          setupContainer

                                                                                                                                                                          • setupContainer(): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                          startPlaySound

                                                                                                                                                                          • startPlaySound(): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                          stopPlaySound

                                                                                                                                                                          • stopPlaySound(): void
                                                                                                                                                                          • Returns void

                                                                                                                                                                          tick

                                                                                                                                                                          • tick(): void
                                                                                                                                                                          • @deprecated

                                                                                                                                                                            Returns void

                                                                                                                                                                          unload

                                                                                                                                                                          • unload(): void
                                                                                                                                                                          • @deprecated

                                                                                                                                                                            Returns void

                                                                                                                                                                          updateLiquidScale

                                                                                                                                                                          • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                                          • Parameters

                                                                                                                                                                            • scale: string
                                                                                                                                                                            • liquid: string

                                                                                                                                                                            Returns void

                                                                                                                                                                          ThermalCentrifuge

                                                                                                                                                                          ThermalCentrifuge:

                                                                                                                                                                          constructor

                                                                                                                                                                          __clientMethods

                                                                                                                                                                          __clientMethods: {}

                                                                                                                                                                          Type declaration

                                                                                                                                                                          • [key string]: boolean

                                                                                                                                                                          __containerEvents

                                                                                                                                                                          __containerEvents: {}

                                                                                                                                                                          Type declaration

                                                                                                                                                                          __initialized

                                                                                                                                                                          __initialized: boolean

                                                                                                                                                                          __networkEvents

                                                                                                                                                                          __networkEvents: {}

                                                                                                                                                                          Type declaration

                                                                                                                                                                          audioSource

                                                                                                                                                                          audioSource: AudioSource

                                                                                                                                                                          readonlyblockID

                                                                                                                                                                          blockID: number

                                                                                                                                                                          blockSource

                                                                                                                                                                          blockSource: BlockSource

                                                                                                                                                                          click

                                                                                                                                                                          click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                                          Type declaration

                                                                                                                                                                            • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                                            • Parameters

                                                                                                                                                                              • id: number
                                                                                                                                                                              • count: number
                                                                                                                                                                              • data: number
                                                                                                                                                                              • coords: ItemUseCoordinates
                                                                                                                                                                              • player: number
                                                                                                                                                                              • extra: ItemExtraData

                                                                                                                                                                              Returns boolean | void

                                                                                                                                                                          client

                                                                                                                                                                          client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                                          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
                                                                                                                                                                              • (): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                          • tick: () => void
                                                                                                                                                                              • (): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                          • unload: () => void
                                                                                                                                                                              • (): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                          container

                                                                                                                                                                          container: ItemContainer

                                                                                                                                                                          containerEvents

                                                                                                                                                                          containerEvents: {}

                                                                                                                                                                          Type declaration

                                                                                                                                                                          • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                                          data

                                                                                                                                                                          data: { energy: number; heat: number; maxHeat: number; progress: number }

                                                                                                                                                                          Type declaration

                                                                                                                                                                          • energy: number
                                                                                                                                                                          • heat: number
                                                                                                                                                                          • maxHeat: number
                                                                                                                                                                          • progress: number

                                                                                                                                                                          defaultDrop

                                                                                                                                                                          defaultDrop: number

                                                                                                                                                                          defaultEnergyDemand

                                                                                                                                                                          defaultEnergyDemand: number

                                                                                                                                                                          defaultEnergyStorage

                                                                                                                                                                          defaultEnergyStorage: number

                                                                                                                                                                          defaultProcessTime

                                                                                                                                                                          defaultProcessTime: number

                                                                                                                                                                          defaultTier

                                                                                                                                                                          defaultTier: number

                                                                                                                                                                          defaultValues

                                                                                                                                                                          defaultValues: { energy: number; heat: number; maxHeat: number; progress: number }

                                                                                                                                                                          Type declaration

                                                                                                                                                                          • energy: number
                                                                                                                                                                          • heat: number
                                                                                                                                                                          • maxHeat: number
                                                                                                                                                                          • progress: number

                                                                                                                                                                          readonlydimension

                                                                                                                                                                          dimension: number

                                                                                                                                                                          optionalenergyDemand

                                                                                                                                                                          energyDemand?: number

                                                                                                                                                                          energyNode

                                                                                                                                                                          energyNode: EnergyTileNode

                                                                                                                                                                          energyStorage

                                                                                                                                                                          energyStorage: number

                                                                                                                                                                          energyTypes

                                                                                                                                                                          energyTypes: object

                                                                                                                                                                          events

                                                                                                                                                                          events: {}

                                                                                                                                                                          Type declaration

                                                                                                                                                                          • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                                          finishingSound

                                                                                                                                                                          finishingSound: number

                                                                                                                                                                          getGuiScreen

                                                                                                                                                                          getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                                          Type declaration

                                                                                                                                                                            • (): Nullable<IWindow>
                                                                                                                                                                            • Returns Nullable<IWindow>

                                                                                                                                                                          isHeating

                                                                                                                                                                          isHeating: boolean

                                                                                                                                                                          isLoaded

                                                                                                                                                                          isLoaded: boolean

                                                                                                                                                                          isPowered

                                                                                                                                                                          isPowered: boolean

                                                                                                                                                                          liquidStorage

                                                                                                                                                                          liquidStorage: Storage

                                                                                                                                                                          networkData

                                                                                                                                                                          networkData: SyncedNetworkData

                                                                                                                                                                          networkEntity

                                                                                                                                                                          networkEntity: NetworkEntity

                                                                                                                                                                          networkEntityType

                                                                                                                                                                          networkEntityType: NetworkEntityType

                                                                                                                                                                          networkEntityTypeName

                                                                                                                                                                          networkEntityTypeName: string

                                                                                                                                                                          noupdate

                                                                                                                                                                          noupdate: boolean

                                                                                                                                                                          optionalonConnectionPlayer

                                                                                                                                                                          onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                          Type declaration

                                                                                                                                                                            • (client: NetworkClient): void
                                                                                                                                                                            • Parameters

                                                                                                                                                                              • client: NetworkClient

                                                                                                                                                                              Returns void

                                                                                                                                                                          optionalonDisconnectionPlayer

                                                                                                                                                                          onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                          Type declaration

                                                                                                                                                                            • (client: NetworkClient): void
                                                                                                                                                                            • Parameters

                                                                                                                                                                              • client: NetworkClient

                                                                                                                                                                              Returns void

                                                                                                                                                                          optionalprocessTime

                                                                                                                                                                          processTime?: number

                                                                                                                                                                          region

                                                                                                                                                                          region: WorldRegion

                                                                                                                                                                          Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                                          remove

                                                                                                                                                                          remove: boolean

                                                                                                                                                                          sendPacket

                                                                                                                                                                          sendPacket: (name: string, data: object) => {}

                                                                                                                                                                          Type declaration

                                                                                                                                                                            • (name: string, data: object): {}
                                                                                                                                                                            • Parameters

                                                                                                                                                                              • name: string
                                                                                                                                                                              • data: object

                                                                                                                                                                              Returns {}

                                                                                                                                                                            sendResponse

                                                                                                                                                                            sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                                            Type declaration

                                                                                                                                                                              • (packetName: string, someData: object): {}
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • packetName: string
                                                                                                                                                                                • someData: object

                                                                                                                                                                                Returns {}

                                                                                                                                                                              tier

                                                                                                                                                                              tier: number

                                                                                                                                                                              update

                                                                                                                                                                              update: () => void

                                                                                                                                                                              Type declaration

                                                                                                                                                                                • (): void
                                                                                                                                                                                • Returns void

                                                                                                                                                                              upgrades

                                                                                                                                                                              upgrades: string[]

                                                                                                                                                                              readonlyuseNetworkItemContainer

                                                                                                                                                                              useNetworkItemContainer: boolean

                                                                                                                                                                              x

                                                                                                                                                                              x: number

                                                                                                                                                                              y

                                                                                                                                                                              y: number

                                                                                                                                                                              z

                                                                                                                                                                              z: number

                                                                                                                                                                              addLiquidTank

                                                                                                                                                                              • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • name: string
                                                                                                                                                                                • limit: number
                                                                                                                                                                                • optionalliquids: string[]

                                                                                                                                                                                Returns LiquidTank

                                                                                                                                                                              adjustDrop

                                                                                                                                                                              • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • item: ItemInstance

                                                                                                                                                                                Returns ItemInstance

                                                                                                                                                                              canExtractEnergy

                                                                                                                                                                              • canExtractEnergy(side: number, type: string): boolean
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • side: number
                                                                                                                                                                                • type: string

                                                                                                                                                                                Returns boolean

                                                                                                                                                                              canReceiveEnergy

                                                                                                                                                                              • canReceiveEnergy(side: number, type: string): boolean
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • side: number
                                                                                                                                                                                • type: string

                                                                                                                                                                                Returns boolean

                                                                                                                                                                              canRotate

                                                                                                                                                                              • canRotate(side: number): boolean
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • side: number

                                                                                                                                                                                Returns boolean

                                                                                                                                                                              chargeSlot

                                                                                                                                                                              • chargeSlot(slotName: string): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • slotName: string

                                                                                                                                                                                Returns void

                                                                                                                                                                              checkResult

                                                                                                                                                                              • checkResult(result: number[]): boolean
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • result: number[]

                                                                                                                                                                                Returns boolean

                                                                                                                                                                              clientLoad

                                                                                                                                                                              • clientLoad(): void
                                                                                                                                                                              • Called when the client copy is created


                                                                                                                                                                                Returns void

                                                                                                                                                                              clientTick

                                                                                                                                                                              • clientTick(): void
                                                                                                                                                                              • Called every tick on client thread


                                                                                                                                                                                Returns void

                                                                                                                                                                              clientUnload

                                                                                                                                                                              • clientUnload(): void
                                                                                                                                                                              • Called on destroying the client copy


                                                                                                                                                                                Returns void

                                                                                                                                                                              created

                                                                                                                                                                              • created(): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                              decreaseSlot

                                                                                                                                                                              • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • slot: ItemContainerSlot
                                                                                                                                                                                • count: number

                                                                                                                                                                                Returns void

                                                                                                                                                                              destroy

                                                                                                                                                                              • destroy(): boolean
                                                                                                                                                                              • Returns boolean

                                                                                                                                                                              destroyBlock

                                                                                                                                                                              • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                                                • player: number

                                                                                                                                                                                Returns void

                                                                                                                                                                              dischargeSlot

                                                                                                                                                                              • dischargeSlot(slotName: string): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • slotName: string

                                                                                                                                                                                Returns void

                                                                                                                                                                              energyReceive

                                                                                                                                                                              • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • type: string
                                                                                                                                                                                • amount: number
                                                                                                                                                                                • voltage: number

                                                                                                                                                                                Returns number

                                                                                                                                                                              energyTick

                                                                                                                                                                              • Parameters

                                                                                                                                                                                Returns void

                                                                                                                                                                              getDefaultDrop

                                                                                                                                                                              • getDefaultDrop(): number
                                                                                                                                                                              • Returns number

                                                                                                                                                                              getEnergyStorage

                                                                                                                                                                              • getEnergyStorage(): number
                                                                                                                                                                              • Returns number

                                                                                                                                                                              getExplosionPower

                                                                                                                                                                              • getExplosionPower(): number
                                                                                                                                                                              • Returns number

                                                                                                                                                                              getFacing

                                                                                                                                                                              • getFacing(): number
                                                                                                                                                                              • Returns number

                                                                                                                                                                              getInterruptSound

                                                                                                                                                                              • getInterruptSound(): string
                                                                                                                                                                              • Returns string

                                                                                                                                                                              getMaxPacketSize

                                                                                                                                                                              • getMaxPacketSize(): number
                                                                                                                                                                              • Returns number

                                                                                                                                                                              getOperationSound

                                                                                                                                                                              • getOperationSound(): string
                                                                                                                                                                              • Returns string

                                                                                                                                                                              getRecipeResult

                                                                                                                                                                              • getRecipeResult(id: number): { heat: number; result: number[] }
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • id: number

                                                                                                                                                                                Returns { heat: number; result: number[] }

                                                                                                                                                                                • heat: number
                                                                                                                                                                                • result: number[]

                                                                                                                                                                              getRelativeEnergy

                                                                                                                                                                              • getRelativeEnergy(): number
                                                                                                                                                                              • Returns number

                                                                                                                                                                              getScreenByName

                                                                                                                                                                              • getScreenByName(): IWindow
                                                                                                                                                                              • Returns IWindow

                                                                                                                                                                              getScreenName

                                                                                                                                                                              • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • player: number
                                                                                                                                                                                • coords: ItemUseCoordinates

                                                                                                                                                                                Returns string

                                                                                                                                                                              getStartingSound

                                                                                                                                                                              • getStartingSound(): string
                                                                                                                                                                              • Returns string

                                                                                                                                                                              getTier

                                                                                                                                                                              • getTier(): number
                                                                                                                                                                              • Returns number

                                                                                                                                                                              init

                                                                                                                                                                              • init(): void
                                                                                                                                                                              • @deprecated

                                                                                                                                                                                Returns void

                                                                                                                                                                              isConductor

                                                                                                                                                                              • isConductor(type: string): boolean
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • type: string

                                                                                                                                                                                Returns boolean

                                                                                                                                                                              load

                                                                                                                                                                              • load(): void
                                                                                                                                                                              • @deprecated

                                                                                                                                                                                Returns void

                                                                                                                                                                              onCheckerTick

                                                                                                                                                                              • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • isInitialized: boolean
                                                                                                                                                                                • isLoaded: boolean
                                                                                                                                                                                • wasLoaded: boolean

                                                                                                                                                                                Returns void

                                                                                                                                                                              onCreate

                                                                                                                                                                              • onCreate(): void
                                                                                                                                                                              • Called when a TileEntity is created


                                                                                                                                                                                Returns void

                                                                                                                                                                              onInit

                                                                                                                                                                              • onInit(): void
                                                                                                                                                                              • Called when a TileEntity is initialised in the world


                                                                                                                                                                                Returns void

                                                                                                                                                                              onItemClick

                                                                                                                                                                              • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • id: number
                                                                                                                                                                                • count: number
                                                                                                                                                                                • data: number
                                                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                                                • player: number
                                                                                                                                                                                • extra: ItemExtraData

                                                                                                                                                                                Returns boolean

                                                                                                                                                                              onItemUse

                                                                                                                                                                              • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                                              • 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

                                                                                                                                                                              • onLoad(): void
                                                                                                                                                                              • Called when a chunk with TileEntity is loaded


                                                                                                                                                                                Returns void

                                                                                                                                                                              onRedstoneUpdate

                                                                                                                                                                              • onRedstoneUpdate(signal: number): void
                                                                                                                                                                              • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                                Parameters

                                                                                                                                                                                • signal: number

                                                                                                                                                                                  signal power (0-15)

                                                                                                                                                                                Returns void

                                                                                                                                                                              onTick

                                                                                                                                                                              • onTick(): void
                                                                                                                                                                              • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                                Returns void

                                                                                                                                                                              onUnload

                                                                                                                                                                              • onUnload(): void
                                                                                                                                                                              • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                                Returns void

                                                                                                                                                                              preventClick

                                                                                                                                                                              • preventClick(): void
                                                                                                                                                                              • Prevents all actions on click


                                                                                                                                                                                Returns void

                                                                                                                                                                              projectileHit

                                                                                                                                                                              • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • coords: ItemUseCoordinates
                                                                                                                                                                                • target: ProjectileHitTarget

                                                                                                                                                                                Returns void

                                                                                                                                                                              putResult

                                                                                                                                                                              • putResult(result: number[]): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • result: number[]

                                                                                                                                                                                Returns void

                                                                                                                                                                              rebuildGrid

                                                                                                                                                                              • rebuildGrid(): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                              redstone

                                                                                                                                                                              • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                                              • @deprecated

                                                                                                                                                                                Parameters

                                                                                                                                                                                • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                                  • onLoad: boolean
                                                                                                                                                                                  • power: number
                                                                                                                                                                                  • signal: number

                                                                                                                                                                                Returns void

                                                                                                                                                                              renderModel

                                                                                                                                                                              • renderModel(): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                              requireMoreLiquid

                                                                                                                                                                              • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • liquid: string
                                                                                                                                                                                • amount: number

                                                                                                                                                                                Returns void

                                                                                                                                                                              selfDestroy

                                                                                                                                                                              • selfDestroy(): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                              setActive

                                                                                                                                                                              • setActive(isActive: boolean): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • isActive: boolean

                                                                                                                                                                                Returns void

                                                                                                                                                                              setFacing

                                                                                                                                                                              • setFacing(side: number): boolean
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • side: number

                                                                                                                                                                                Returns boolean

                                                                                                                                                                              setIndicator

                                                                                                                                                                              • setIndicator(container: ItemContainer, window: any, content: any, data: string): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • container: ItemContainer
                                                                                                                                                                                • window: any
                                                                                                                                                                                • content: any
                                                                                                                                                                                • data: string

                                                                                                                                                                                Returns void

                                                                                                                                                                              setLiquidScale

                                                                                                                                                                              • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • container: any
                                                                                                                                                                                • window: any
                                                                                                                                                                                • content: any
                                                                                                                                                                                • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                                  • amount: number
                                                                                                                                                                                  • liquid: string
                                                                                                                                                                                  • scale: string

                                                                                                                                                                                Returns void

                                                                                                                                                                              setupContainer

                                                                                                                                                                              • setupContainer(): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                              startPlaySound

                                                                                                                                                                              • startPlaySound(): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                              stopPlaySound

                                                                                                                                                                              • stopPlaySound(): void
                                                                                                                                                                              • Returns void

                                                                                                                                                                              tick

                                                                                                                                                                              • tick(): void
                                                                                                                                                                              • @deprecated

                                                                                                                                                                                Returns void

                                                                                                                                                                              unload

                                                                                                                                                                              • unload(): void
                                                                                                                                                                              • @deprecated

                                                                                                                                                                                Returns void

                                                                                                                                                                              updateLiquidScale

                                                                                                                                                                              • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • scale: string
                                                                                                                                                                                • liquid: string

                                                                                                                                                                                Returns void

                                                                                                                                                                              useUpgrades

                                                                                                                                                                              • Returns UpgradeSet

                                                                                                                                                                              Transformer

                                                                                                                                                                              Transformer:

                                                                                                                                                                              constructor

                                                                                                                                                                              • new Transformer(tier: number, defaultDrop?: number): Transformer
                                                                                                                                                                              • Parameters

                                                                                                                                                                                • tier: number
                                                                                                                                                                                • optionaldefaultDrop: number

                                                                                                                                                                                Returns Transformer

                                                                                                                                                                              __clientMethods

                                                                                                                                                                              __clientMethods: {}

                                                                                                                                                                              Type declaration

                                                                                                                                                                              • [key string]: boolean

                                                                                                                                                                              __containerEvents

                                                                                                                                                                              __containerEvents: {}

                                                                                                                                                                              Type declaration

                                                                                                                                                                              __initialized

                                                                                                                                                                              __initialized: boolean

                                                                                                                                                                              __networkEvents

                                                                                                                                                                              __networkEvents: {}

                                                                                                                                                                              Type declaration

                                                                                                                                                                              audioSource

                                                                                                                                                                              audioSource: AudioSource

                                                                                                                                                                              readonlyblockID

                                                                                                                                                                              blockID: number

                                                                                                                                                                              blockSource

                                                                                                                                                                              blockSource: BlockSource

                                                                                                                                                                              click

                                                                                                                                                                              click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                                              Type declaration

                                                                                                                                                                                • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                                                • Parameters

                                                                                                                                                                                  • id: number
                                                                                                                                                                                  • count: number
                                                                                                                                                                                  • data: number
                                                                                                                                                                                  • coords: ItemUseCoordinates
                                                                                                                                                                                  • player: number
                                                                                                                                                                                  • extra: ItemExtraData

                                                                                                                                                                                  Returns boolean | void

                                                                                                                                                                              client

                                                                                                                                                                              client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                                              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
                                                                                                                                                                                  • (): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                              • tick: () => void
                                                                                                                                                                                  • (): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                              • unload: () => void
                                                                                                                                                                                  • (): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                              container

                                                                                                                                                                              container: ItemContainer

                                                                                                                                                                              containerEvents

                                                                                                                                                                              containerEvents: {}

                                                                                                                                                                              Type declaration

                                                                                                                                                                              • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                                              data

                                                                                                                                                                              data: { energy: number; increaseMode: boolean }

                                                                                                                                                                              Type declaration

                                                                                                                                                                              • energy: number
                                                                                                                                                                              • increaseMode: boolean

                                                                                                                                                                              optionaldefaultDrop

                                                                                                                                                                              defaultDrop?: number

                                                                                                                                                                              defaultValues

                                                                                                                                                                              defaultValues: { energy: number; increaseMode: boolean }

                                                                                                                                                                              Type declaration

                                                                                                                                                                              • energy: number
                                                                                                                                                                              • increaseMode: boolean

                                                                                                                                                                              readonlydimension

                                                                                                                                                                              dimension: number

                                                                                                                                                                              energyNode

                                                                                                                                                                              energyNode: EnergyTileNode

                                                                                                                                                                              energyTypes

                                                                                                                                                                              energyTypes: object

                                                                                                                                                                              events

                                                                                                                                                                              events: {}

                                                                                                                                                                              Type declaration

                                                                                                                                                                              • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                                              finishingSound

                                                                                                                                                                              finishingSound: number

                                                                                                                                                                              getGuiScreen

                                                                                                                                                                              getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                                              Type declaration

                                                                                                                                                                                • (): Nullable<IWindow>
                                                                                                                                                                                • Returns Nullable<IWindow>

                                                                                                                                                                              isLoaded

                                                                                                                                                                              isLoaded: boolean

                                                                                                                                                                              liquidStorage

                                                                                                                                                                              liquidStorage: Storage

                                                                                                                                                                              networkData

                                                                                                                                                                              networkData: SyncedNetworkData

                                                                                                                                                                              networkEntity

                                                                                                                                                                              networkEntity: NetworkEntity

                                                                                                                                                                              networkEntityType

                                                                                                                                                                              networkEntityType: NetworkEntityType

                                                                                                                                                                              networkEntityTypeName

                                                                                                                                                                              networkEntityTypeName: string

                                                                                                                                                                              noupdate

                                                                                                                                                                              noupdate: boolean

                                                                                                                                                                              optionalonConnectionPlayer

                                                                                                                                                                              onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                              Type declaration

                                                                                                                                                                                • (client: NetworkClient): void
                                                                                                                                                                                • Parameters

                                                                                                                                                                                  • client: NetworkClient

                                                                                                                                                                                  Returns void

                                                                                                                                                                              optionalonDisconnectionPlayer

                                                                                                                                                                              onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                              Type declaration

                                                                                                                                                                                • (client: NetworkClient): void
                                                                                                                                                                                • Parameters

                                                                                                                                                                                  • client: NetworkClient

                                                                                                                                                                                  Returns void

                                                                                                                                                                              region

                                                                                                                                                                              region: WorldRegion

                                                                                                                                                                              Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                                              remove

                                                                                                                                                                              remove: boolean

                                                                                                                                                                              sendPacket

                                                                                                                                                                              sendPacket: (name: string, data: object) => {}

                                                                                                                                                                              Type declaration

                                                                                                                                                                                • (name: string, data: object): {}
                                                                                                                                                                                • Parameters

                                                                                                                                                                                  • name: string
                                                                                                                                                                                  • data: object

                                                                                                                                                                                  Returns {}

                                                                                                                                                                                sendResponse

                                                                                                                                                                                sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                                                Type declaration

                                                                                                                                                                                  • (packetName: string, someData: object): {}
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • packetName: string
                                                                                                                                                                                    • someData: object

                                                                                                                                                                                    Returns {}

                                                                                                                                                                                  readonlytier

                                                                                                                                                                                  tier: number

                                                                                                                                                                                  update

                                                                                                                                                                                  update: () => void

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                    • (): void
                                                                                                                                                                                    • Returns void

                                                                                                                                                                                  optionalupgrades

                                                                                                                                                                                  upgrades?: string[]

                                                                                                                                                                                  readonlyuseNetworkItemContainer

                                                                                                                                                                                  useNetworkItemContainer: boolean

                                                                                                                                                                                  x

                                                                                                                                                                                  x: number

                                                                                                                                                                                  y

                                                                                                                                                                                  y: number

                                                                                                                                                                                  z

                                                                                                                                                                                  z: number

                                                                                                                                                                                  addLiquidTank

                                                                                                                                                                                  • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • name: string
                                                                                                                                                                                    • limit: number
                                                                                                                                                                                    • optionalliquids: string[]

                                                                                                                                                                                    Returns LiquidTank

                                                                                                                                                                                  adjustDrop

                                                                                                                                                                                  • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • item: ItemInstance

                                                                                                                                                                                    Returns ItemInstance

                                                                                                                                                                                  canExtractEnergy

                                                                                                                                                                                  • canExtractEnergy(side: number): boolean
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • side: number

                                                                                                                                                                                    Returns boolean

                                                                                                                                                                                  canReceiveEnergy

                                                                                                                                                                                  • canReceiveEnergy(side: number): boolean
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • side: number

                                                                                                                                                                                    Returns boolean

                                                                                                                                                                                  canRotate

                                                                                                                                                                                  • canRotate(): boolean
                                                                                                                                                                                  • Returns boolean

                                                                                                                                                                                  chargeSlot

                                                                                                                                                                                  • chargeSlot(slotName: string): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • slotName: string

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  clientLoad

                                                                                                                                                                                  • clientLoad(): void
                                                                                                                                                                                  • Called when the client copy is created


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  clientTick

                                                                                                                                                                                  • clientTick(): void
                                                                                                                                                                                  • Called every tick on client thread


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  clientUnload

                                                                                                                                                                                  • clientUnload(): void
                                                                                                                                                                                  • Called on destroying the client copy


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  created

                                                                                                                                                                                  • created(): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                                  decreaseSlot

                                                                                                                                                                                  • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • slot: ItemContainerSlot
                                                                                                                                                                                    • count: number

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  destroy

                                                                                                                                                                                  • destroy(): boolean
                                                                                                                                                                                  • Returns boolean

                                                                                                                                                                                  destroyBlock

                                                                                                                                                                                  • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                                                    • player: number

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  dischargeSlot

                                                                                                                                                                                  • dischargeSlot(slotName: string): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • slotName: string

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  energyReceive

                                                                                                                                                                                  • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • type: string
                                                                                                                                                                                    • amount: number
                                                                                                                                                                                    • voltage: number

                                                                                                                                                                                    Returns number

                                                                                                                                                                                  energyTick

                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  getDefaultDrop

                                                                                                                                                                                  • getDefaultDrop(): number
                                                                                                                                                                                  • Returns number

                                                                                                                                                                                  getEnergyStorage

                                                                                                                                                                                  • getEnergyStorage(): number
                                                                                                                                                                                  • Returns number

                                                                                                                                                                                  getExplosionPower

                                                                                                                                                                                  • getExplosionPower(): number
                                                                                                                                                                                  • Returns number

                                                                                                                                                                                  getFacing

                                                                                                                                                                                  • getFacing(): number
                                                                                                                                                                                  • Returns number

                                                                                                                                                                                  getInterruptSound

                                                                                                                                                                                  • getInterruptSound(): string
                                                                                                                                                                                  • Returns string

                                                                                                                                                                                  getMaxPacketSize

                                                                                                                                                                                  • getMaxPacketSize(): number
                                                                                                                                                                                  • Returns number

                                                                                                                                                                                  getOperationSound

                                                                                                                                                                                  • getOperationSound(): string
                                                                                                                                                                                  • Returns string

                                                                                                                                                                                  getRelativeEnergy

                                                                                                                                                                                  • getRelativeEnergy(): number
                                                                                                                                                                                  • Returns number

                                                                                                                                                                                  getScreenByName

                                                                                                                                                                                  • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • screenName: string
                                                                                                                                                                                    • container: ItemContainer

                                                                                                                                                                                    Returns IWindow

                                                                                                                                                                                  getScreenName

                                                                                                                                                                                  • getScreenName(): string
                                                                                                                                                                                  • Returns string

                                                                                                                                                                                  getStartingSound

                                                                                                                                                                                  • getStartingSound(): string
                                                                                                                                                                                  • Returns string

                                                                                                                                                                                  getTier

                                                                                                                                                                                  • getTier(): number
                                                                                                                                                                                  • Returns number

                                                                                                                                                                                  init

                                                                                                                                                                                  • init(): void
                                                                                                                                                                                  • @deprecated

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  isConductor

                                                                                                                                                                                  • isConductor(type: string): boolean
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • type: string

                                                                                                                                                                                    Returns boolean

                                                                                                                                                                                  load

                                                                                                                                                                                  • load(): void
                                                                                                                                                                                  • @deprecated

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  onCheckerTick

                                                                                                                                                                                  • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • isInitialized: boolean
                                                                                                                                                                                    • isLoaded: boolean
                                                                                                                                                                                    • wasLoaded: boolean

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  onCreate

                                                                                                                                                                                  • onCreate(): void
                                                                                                                                                                                  • Called when a TileEntity is created


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  onInit

                                                                                                                                                                                  • onInit(): void
                                                                                                                                                                                  • Called when a TileEntity is initialised in the world


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  onItemClick

                                                                                                                                                                                  • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • id: number
                                                                                                                                                                                    • count: number
                                                                                                                                                                                    • data: number
                                                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                                                    • player: number
                                                                                                                                                                                    • extra: ItemExtraData

                                                                                                                                                                                    Returns boolean

                                                                                                                                                                                  onItemUse

                                                                                                                                                                                  • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                                                  • 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

                                                                                                                                                                                  • onLoad(): void
                                                                                                                                                                                  • Called when a chunk with TileEntity is loaded


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  onRedstoneUpdate

                                                                                                                                                                                  • onRedstoneUpdate(signal: number): void
                                                                                                                                                                                  • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                                    Parameters

                                                                                                                                                                                    • signal: number

                                                                                                                                                                                      signal power (0-15)

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  onTick

                                                                                                                                                                                  • onTick(): void
                                                                                                                                                                                  • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  onUnload

                                                                                                                                                                                  • onUnload(): void
                                                                                                                                                                                  • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  preventClick

                                                                                                                                                                                  • preventClick(): void
                                                                                                                                                                                  • Prevents all actions on click


                                                                                                                                                                                    Returns void

                                                                                                                                                                                  projectileHit

                                                                                                                                                                                  • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • coords: ItemUseCoordinates
                                                                                                                                                                                    • target: ProjectileHitTarget

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  rebuildGrid

                                                                                                                                                                                  • rebuildGrid(): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                                  redstone

                                                                                                                                                                                  • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                                                  • @deprecated

                                                                                                                                                                                    Parameters

                                                                                                                                                                                    • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                                      • onLoad: boolean
                                                                                                                                                                                      • power: number
                                                                                                                                                                                      • signal: number

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  renderModel

                                                                                                                                                                                  • renderModel(): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                                  requireMoreLiquid

                                                                                                                                                                                  • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • liquid: string
                                                                                                                                                                                    • amount: number

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  selfDestroy

                                                                                                                                                                                  • selfDestroy(): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                                  setActive

                                                                                                                                                                                  • setActive(isActive: boolean): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • isActive: boolean

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  setFacing

                                                                                                                                                                                  • setFacing(side: number): boolean
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • side: number

                                                                                                                                                                                    Returns boolean

                                                                                                                                                                                  setLiquidScale

                                                                                                                                                                                  • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • container: any
                                                                                                                                                                                    • window: any
                                                                                                                                                                                    • content: any
                                                                                                                                                                                    • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                                      • amount: number
                                                                                                                                                                                      • liquid: string
                                                                                                                                                                                      • scale: string

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  setupContainer

                                                                                                                                                                                  • setupContainer(): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                                  startPlaySound

                                                                                                                                                                                  • startPlaySound(): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                                  stopPlaySound

                                                                                                                                                                                  • stopPlaySound(): void
                                                                                                                                                                                  • Returns void

                                                                                                                                                                                  tick

                                                                                                                                                                                  • tick(): void
                                                                                                                                                                                  • @deprecated

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  unload

                                                                                                                                                                                  • unload(): void
                                                                                                                                                                                  • @deprecated

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  updateLiquidScale

                                                                                                                                                                                  • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                                                  • Parameters

                                                                                                                                                                                    • scale: string
                                                                                                                                                                                    • liquid: string

                                                                                                                                                                                    Returns void

                                                                                                                                                                                  WaterGenerator

                                                                                                                                                                                  WaterGenerator:

                                                                                                                                                                                  constructor

                                                                                                                                                                                  BASE_POWER

                                                                                                                                                                                  BASE_POWER: number

                                                                                                                                                                                  __clientMethods

                                                                                                                                                                                  __clientMethods: {}

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                  • [key string]: boolean

                                                                                                                                                                                  __containerEvents

                                                                                                                                                                                  __containerEvents: {}

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                  __initialized

                                                                                                                                                                                  __initialized: boolean

                                                                                                                                                                                  __networkEvents

                                                                                                                                                                                  __networkEvents: {}

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                  audioSource

                                                                                                                                                                                  audioSource: AudioSource

                                                                                                                                                                                  readonlyblockID

                                                                                                                                                                                  blockID: number

                                                                                                                                                                                  blockSource

                                                                                                                                                                                  blockSource: BlockSource

                                                                                                                                                                                  click

                                                                                                                                                                                  click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                    • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                                                    • Parameters

                                                                                                                                                                                      • id: number
                                                                                                                                                                                      • count: number
                                                                                                                                                                                      • data: number
                                                                                                                                                                                      • coords: ItemUseCoordinates
                                                                                                                                                                                      • player: number
                                                                                                                                                                                      • extra: ItemExtraData

                                                                                                                                                                                      Returns boolean | void

                                                                                                                                                                                  client

                                                                                                                                                                                  client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                                                  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
                                                                                                                                                                                      • (): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                  • tick: () => void
                                                                                                                                                                                      • (): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                  • unload: () => void
                                                                                                                                                                                      • (): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                  container

                                                                                                                                                                                  container: ItemContainer

                                                                                                                                                                                  containerEvents

                                                                                                                                                                                  containerEvents: {}

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                  • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                                                  data

                                                                                                                                                                                  data: { biome: any; blockCount: number; energy: number; output: number; ticker: number }

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                  • biome: any
                                                                                                                                                                                  • blockCount: number
                                                                                                                                                                                  • energy: number
                                                                                                                                                                                  • output: number
                                                                                                                                                                                  • ticker: number

                                                                                                                                                                                  defaultDrop

                                                                                                                                                                                  defaultDrop: number

                                                                                                                                                                                  defaultValues

                                                                                                                                                                                  defaultValues: { biome: any; blockCount: number; energy: number; output: number; ticker: number }

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                  • biome: any
                                                                                                                                                                                  • blockCount: number
                                                                                                                                                                                  • energy: number
                                                                                                                                                                                  • output: number
                                                                                                                                                                                  • ticker: number

                                                                                                                                                                                  readonlydimension

                                                                                                                                                                                  dimension: number

                                                                                                                                                                                  energyNode

                                                                                                                                                                                  energyNode: EnergyTileNode

                                                                                                                                                                                  energyTypes

                                                                                                                                                                                  energyTypes: object

                                                                                                                                                                                  events

                                                                                                                                                                                  events: {}

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                  • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                                                  finishingSound

                                                                                                                                                                                  finishingSound: number

                                                                                                                                                                                  getGuiScreen

                                                                                                                                                                                  getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                    • (): Nullable<IWindow>
                                                                                                                                                                                    • Returns Nullable<IWindow>

                                                                                                                                                                                  isLoaded

                                                                                                                                                                                  isLoaded: boolean

                                                                                                                                                                                  liquidStorage

                                                                                                                                                                                  liquidStorage: Storage

                                                                                                                                                                                  networkData

                                                                                                                                                                                  networkData: SyncedNetworkData

                                                                                                                                                                                  networkEntity

                                                                                                                                                                                  networkEntity: NetworkEntity

                                                                                                                                                                                  networkEntityType

                                                                                                                                                                                  networkEntityType: NetworkEntityType

                                                                                                                                                                                  networkEntityTypeName

                                                                                                                                                                                  networkEntityTypeName: string

                                                                                                                                                                                  noupdate

                                                                                                                                                                                  noupdate: boolean

                                                                                                                                                                                  optionalonConnectionPlayer

                                                                                                                                                                                  onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                    • (client: NetworkClient): void
                                                                                                                                                                                    • Parameters

                                                                                                                                                                                      • client: NetworkClient

                                                                                                                                                                                      Returns void

                                                                                                                                                                                  optionalonDisconnectionPlayer

                                                                                                                                                                                  onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                    • (client: NetworkClient): void
                                                                                                                                                                                    • Parameters

                                                                                                                                                                                      • client: NetworkClient

                                                                                                                                                                                      Returns void

                                                                                                                                                                                  region

                                                                                                                                                                                  region: WorldRegion

                                                                                                                                                                                  Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                                                  remove

                                                                                                                                                                                  remove: boolean

                                                                                                                                                                                  sendPacket

                                                                                                                                                                                  sendPacket: (name: string, data: object) => {}

                                                                                                                                                                                  Type declaration

                                                                                                                                                                                    • (name: string, data: object): {}
                                                                                                                                                                                    • Parameters

                                                                                                                                                                                      • name: string
                                                                                                                                                                                      • data: object

                                                                                                                                                                                      Returns {}

                                                                                                                                                                                    sendResponse

                                                                                                                                                                                    sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                                                    Type declaration

                                                                                                                                                                                      • (packetName: string, someData: object): {}
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • packetName: string
                                                                                                                                                                                        • someData: object

                                                                                                                                                                                        Returns {}

                                                                                                                                                                                      update

                                                                                                                                                                                      update: () => void

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                        • (): void
                                                                                                                                                                                        • Returns void

                                                                                                                                                                                      optionalupgrades

                                                                                                                                                                                      upgrades?: string[]

                                                                                                                                                                                      readonlyuseNetworkItemContainer

                                                                                                                                                                                      useNetworkItemContainer: boolean

                                                                                                                                                                                      x

                                                                                                                                                                                      x: number

                                                                                                                                                                                      y

                                                                                                                                                                                      y: number

                                                                                                                                                                                      z

                                                                                                                                                                                      z: number

                                                                                                                                                                                      addLiquidTank

                                                                                                                                                                                      • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • name: string
                                                                                                                                                                                        • limit: number
                                                                                                                                                                                        • optionalliquids: string[]

                                                                                                                                                                                        Returns LiquidTank

                                                                                                                                                                                      adjustDrop

                                                                                                                                                                                      • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • item: ItemInstance

                                                                                                                                                                                        Returns ItemInstance

                                                                                                                                                                                      canExtractEnergy

                                                                                                                                                                                      • canExtractEnergy(): boolean
                                                                                                                                                                                      • Returns boolean

                                                                                                                                                                                      canReceiveEnergy

                                                                                                                                                                                      • canReceiveEnergy(): boolean
                                                                                                                                                                                      • Returns boolean

                                                                                                                                                                                      canRotate

                                                                                                                                                                                      • canRotate(side: number): boolean
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • side: number

                                                                                                                                                                                        Returns boolean

                                                                                                                                                                                      chargeSlot

                                                                                                                                                                                      • chargeSlot(slotName: string): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • slotName: string

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      clientLoad

                                                                                                                                                                                      • clientLoad(): void
                                                                                                                                                                                      • Called when the client copy is created


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      clientTick

                                                                                                                                                                                      • clientTick(): void
                                                                                                                                                                                      • Called every tick on client thread


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      clientUnload

                                                                                                                                                                                      • clientUnload(): void
                                                                                                                                                                                      • Called on destroying the client copy


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      created

                                                                                                                                                                                      • created(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      decreaseSlot

                                                                                                                                                                                      • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • slot: ItemContainerSlot
                                                                                                                                                                                        • count: number

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      destroy

                                                                                                                                                                                      • destroy(): boolean
                                                                                                                                                                                      • Returns boolean

                                                                                                                                                                                      destroyBlock

                                                                                                                                                                                      • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                                                        • player: number

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      dischargeSlot

                                                                                                                                                                                      • dischargeSlot(slotName: string): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • slotName: string

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      energyReceive

                                                                                                                                                                                      • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • type: string
                                                                                                                                                                                        • amount: number
                                                                                                                                                                                        • voltage: number

                                                                                                                                                                                        Returns number

                                                                                                                                                                                      energyTick

                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      getBiome

                                                                                                                                                                                      • getBiome(x: number, z: number): number
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • x: number
                                                                                                                                                                                        • z: number

                                                                                                                                                                                        Returns number

                                                                                                                                                                                      getDefaultDrop

                                                                                                                                                                                      • getDefaultDrop(): number
                                                                                                                                                                                      • Returns number

                                                                                                                                                                                      getEnergyStorage

                                                                                                                                                                                      • getEnergyStorage(): number
                                                                                                                                                                                      • Returns number

                                                                                                                                                                                      getExplosionPower

                                                                                                                                                                                      • getExplosionPower(): number
                                                                                                                                                                                      • Returns number

                                                                                                                                                                                      getFacing

                                                                                                                                                                                      • getFacing(): number
                                                                                                                                                                                      • Returns number

                                                                                                                                                                                      getInterruptSound

                                                                                                                                                                                      • getInterruptSound(): string
                                                                                                                                                                                      • Returns string

                                                                                                                                                                                      getMaxPacketSize

                                                                                                                                                                                      • getMaxPacketSize(): number
                                                                                                                                                                                      • Returns number

                                                                                                                                                                                      getOperationSound

                                                                                                                                                                                      • getOperationSound(): string
                                                                                                                                                                                      • Returns string

                                                                                                                                                                                      getRelativeEnergy

                                                                                                                                                                                      • getRelativeEnergy(): number
                                                                                                                                                                                      • Returns number

                                                                                                                                                                                      getScreenByName

                                                                                                                                                                                      • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • screenName: string
                                                                                                                                                                                        • container: ItemContainer

                                                                                                                                                                                        Returns IWindow

                                                                                                                                                                                      getScreenName

                                                                                                                                                                                      • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • player: number
                                                                                                                                                                                        • coords: ItemUseCoordinates

                                                                                                                                                                                        Returns string

                                                                                                                                                                                      getStartingSound

                                                                                                                                                                                      • getStartingSound(): string
                                                                                                                                                                                      • Returns string

                                                                                                                                                                                      getTier

                                                                                                                                                                                      • getTier(): number
                                                                                                                                                                                      • Returns number

                                                                                                                                                                                      init

                                                                                                                                                                                      • init(): void
                                                                                                                                                                                      • @deprecated

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      isConductor

                                                                                                                                                                                      • isConductor(type: string): boolean
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • type: string

                                                                                                                                                                                        Returns boolean

                                                                                                                                                                                      isOcean

                                                                                                                                                                                      • isOcean(biome: number): boolean
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • biome: number

                                                                                                                                                                                        Returns boolean

                                                                                                                                                                                      isRiver

                                                                                                                                                                                      • isRiver(biome: number): boolean
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • biome: number

                                                                                                                                                                                        Returns boolean

                                                                                                                                                                                      load

                                                                                                                                                                                      • load(): void
                                                                                                                                                                                      • @deprecated

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      onCheckerTick

                                                                                                                                                                                      • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • isInitialized: boolean
                                                                                                                                                                                        • isLoaded: boolean
                                                                                                                                                                                        • wasLoaded: boolean

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      onCreate

                                                                                                                                                                                      • onCreate(): void
                                                                                                                                                                                      • Called when a TileEntity is created


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      onInit

                                                                                                                                                                                      • onInit(): void
                                                                                                                                                                                      • Called when a TileEntity is initialised in the world


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      onItemClick

                                                                                                                                                                                      • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • id: number
                                                                                                                                                                                        • count: number
                                                                                                                                                                                        • data: number
                                                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                                                        • player: number
                                                                                                                                                                                        • extra: ItemExtraData

                                                                                                                                                                                        Returns boolean

                                                                                                                                                                                      onItemUse

                                                                                                                                                                                      • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                                                      • 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

                                                                                                                                                                                      • onLoad(): void
                                                                                                                                                                                      • Called when a chunk with TileEntity is loaded


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      onRedstoneUpdate

                                                                                                                                                                                      • onRedstoneUpdate(signal: number): void
                                                                                                                                                                                      • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                                        Parameters

                                                                                                                                                                                        • signal: number

                                                                                                                                                                                          signal power (0-15)

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      onTick

                                                                                                                                                                                      • onTick(): void
                                                                                                                                                                                      • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      onUnload

                                                                                                                                                                                      • onUnload(): void
                                                                                                                                                                                      • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      preventClick

                                                                                                                                                                                      • preventClick(): void
                                                                                                                                                                                      • Prevents all actions on click


                                                                                                                                                                                        Returns void

                                                                                                                                                                                      projectileHit

                                                                                                                                                                                      • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • coords: ItemUseCoordinates
                                                                                                                                                                                        • target: ProjectileHitTarget

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      rebuildGrid

                                                                                                                                                                                      • rebuildGrid(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      redstone

                                                                                                                                                                                      • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                                                      • @deprecated

                                                                                                                                                                                        Parameters

                                                                                                                                                                                        • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                                          • onLoad: boolean
                                                                                                                                                                                          • power: number
                                                                                                                                                                                          • signal: number

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      renderModel

                                                                                                                                                                                      • renderModel(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      requireMoreLiquid

                                                                                                                                                                                      • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • liquid: string
                                                                                                                                                                                        • amount: number

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      selfDestroy

                                                                                                                                                                                      • selfDestroy(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      setActive

                                                                                                                                                                                      • setActive(isActive: boolean): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • isActive: boolean

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      setFacing

                                                                                                                                                                                      • setFacing(side: number): boolean
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • side: number

                                                                                                                                                                                        Returns boolean

                                                                                                                                                                                      setLiquidScale

                                                                                                                                                                                      • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • container: any
                                                                                                                                                                                        • window: any
                                                                                                                                                                                        • content: any
                                                                                                                                                                                        • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                                          • amount: number
                                                                                                                                                                                          • liquid: string
                                                                                                                                                                                          • scale: string

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      setupContainer

                                                                                                                                                                                      • setupContainer(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      startPlaySound

                                                                                                                                                                                      • startPlaySound(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      stopPlaySound

                                                                                                                                                                                      • stopPlaySound(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      tick

                                                                                                                                                                                      • tick(): void
                                                                                                                                                                                      • @deprecated

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      unload

                                                                                                                                                                                      • unload(): void
                                                                                                                                                                                      • @deprecated

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      updateBlockCount

                                                                                                                                                                                      • updateBlockCount(): void
                                                                                                                                                                                      • Returns void

                                                                                                                                                                                      updateLiquidScale

                                                                                                                                                                                      • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                                                      • Parameters

                                                                                                                                                                                        • scale: string
                                                                                                                                                                                        • liquid: string

                                                                                                                                                                                        Returns void

                                                                                                                                                                                      WindGenerator

                                                                                                                                                                                      WindGenerator:

                                                                                                                                                                                      constructor

                                                                                                                                                                                      __clientMethods

                                                                                                                                                                                      __clientMethods: {}

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                      • [key string]: boolean

                                                                                                                                                                                      __containerEvents

                                                                                                                                                                                      __containerEvents: {}

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                      __initialized

                                                                                                                                                                                      __initialized: boolean

                                                                                                                                                                                      __networkEvents

                                                                                                                                                                                      __networkEvents: {}

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                      audioSource

                                                                                                                                                                                      audioSource: AudioSource

                                                                                                                                                                                      readonlyblockID

                                                                                                                                                                                      blockID: number

                                                                                                                                                                                      blockSource

                                                                                                                                                                                      blockSource: BlockSource

                                                                                                                                                                                      click

                                                                                                                                                                                      click: (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData) => boolean | void

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                        • (id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean | void
                                                                                                                                                                                        • Parameters

                                                                                                                                                                                          • id: number
                                                                                                                                                                                          • count: number
                                                                                                                                                                                          • data: number
                                                                                                                                                                                          • coords: ItemUseCoordinates
                                                                                                                                                                                          • player: number
                                                                                                                                                                                          • extra: ItemExtraData

                                                                                                                                                                                          Returns boolean | void

                                                                                                                                                                                      client

                                                                                                                                                                                      client: { containerEvents: {}; events: {}; load: () => void; tick: () => void; unload: () => void }

                                                                                                                                                                                      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
                                                                                                                                                                                          • (): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                      • tick: () => void
                                                                                                                                                                                          • (): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                      • unload: () => void
                                                                                                                                                                                          • (): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                      container

                                                                                                                                                                                      container: ItemContainer

                                                                                                                                                                                      containerEvents

                                                                                                                                                                                      containerEvents: {}

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                      • [eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void

                                                                                                                                                                                      data

                                                                                                                                                                                      data: { blockCount: number; energy: number; output: number; ticker: number }

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                      • blockCount: number
                                                                                                                                                                                      • energy: number
                                                                                                                                                                                      • output: number
                                                                                                                                                                                      • ticker: number

                                                                                                                                                                                      defaultDrop

                                                                                                                                                                                      defaultDrop: number

                                                                                                                                                                                      defaultValues

                                                                                                                                                                                      defaultValues: { blockCount: number; energy: number; output: number; ticker: number }

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                      • blockCount: number
                                                                                                                                                                                      • energy: number
                                                                                                                                                                                      • output: number
                                                                                                                                                                                      • ticker: number

                                                                                                                                                                                      readonlydimension

                                                                                                                                                                                      dimension: number

                                                                                                                                                                                      energyNode

                                                                                                                                                                                      energyNode: EnergyTileNode

                                                                                                                                                                                      energyTypes

                                                                                                                                                                                      energyTypes: object

                                                                                                                                                                                      events

                                                                                                                                                                                      events: {}

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                      • [packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void

                                                                                                                                                                                      finishingSound

                                                                                                                                                                                      finishingSound: number

                                                                                                                                                                                      getGuiScreen

                                                                                                                                                                                      getGuiScreen: () => Nullable<IWindow>

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                        • (): Nullable<IWindow>
                                                                                                                                                                                        • Returns Nullable<IWindow>

                                                                                                                                                                                      isLoaded

                                                                                                                                                                                      isLoaded: boolean

                                                                                                                                                                                      liquidStorage

                                                                                                                                                                                      liquidStorage: Storage

                                                                                                                                                                                      networkData

                                                                                                                                                                                      networkData: SyncedNetworkData

                                                                                                                                                                                      networkEntity

                                                                                                                                                                                      networkEntity: NetworkEntity

                                                                                                                                                                                      networkEntityType

                                                                                                                                                                                      networkEntityType: NetworkEntityType

                                                                                                                                                                                      networkEntityTypeName

                                                                                                                                                                                      networkEntityTypeName: string

                                                                                                                                                                                      noupdate

                                                                                                                                                                                      noupdate: boolean

                                                                                                                                                                                      optionalonConnectionPlayer

                                                                                                                                                                                      onConnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                                                                        • Parameters

                                                                                                                                                                                          • client: NetworkClient

                                                                                                                                                                                          Returns void

                                                                                                                                                                                      optionalonDisconnectionPlayer

                                                                                                                                                                                      onDisconnectionPlayer?: (client: NetworkClient) => void

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                        • (client: NetworkClient): void
                                                                                                                                                                                        • Parameters

                                                                                                                                                                                          • client: NetworkClient

                                                                                                                                                                                          Returns void

                                                                                                                                                                                      region

                                                                                                                                                                                      region: WorldRegion

                                                                                                                                                                                      Interface for BlockSource of the TileEntity. Provides more functionality.

                                                                                                                                                                                      remove

                                                                                                                                                                                      remove: boolean

                                                                                                                                                                                      sendPacket

                                                                                                                                                                                      sendPacket: (name: string, data: object) => {}

                                                                                                                                                                                      Type declaration

                                                                                                                                                                                        • (name: string, data: object): {}
                                                                                                                                                                                        • Parameters

                                                                                                                                                                                          • name: string
                                                                                                                                                                                          • data: object

                                                                                                                                                                                          Returns {}

                                                                                                                                                                                        sendResponse

                                                                                                                                                                                        sendResponse: (packetName: string, someData: object) => {}

                                                                                                                                                                                        Type declaration

                                                                                                                                                                                          • (packetName: string, someData: object): {}
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • packetName: string
                                                                                                                                                                                            • someData: object

                                                                                                                                                                                            Returns {}

                                                                                                                                                                                          update

                                                                                                                                                                                          update: () => void

                                                                                                                                                                                          Type declaration

                                                                                                                                                                                            • (): void
                                                                                                                                                                                            • Returns void

                                                                                                                                                                                          optionalupgrades

                                                                                                                                                                                          upgrades?: string[]

                                                                                                                                                                                          readonlyuseNetworkItemContainer

                                                                                                                                                                                          useNetworkItemContainer: boolean

                                                                                                                                                                                          x

                                                                                                                                                                                          x: number

                                                                                                                                                                                          y

                                                                                                                                                                                          y: number

                                                                                                                                                                                          z

                                                                                                                                                                                          z: number

                                                                                                                                                                                          addLiquidTank

                                                                                                                                                                                          • addLiquidTank(name: string, limit: number, liquids?: string[]): LiquidTank
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • name: string
                                                                                                                                                                                            • limit: number
                                                                                                                                                                                            • optionalliquids: string[]

                                                                                                                                                                                            Returns LiquidTank

                                                                                                                                                                                          adjustDrop

                                                                                                                                                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • item: ItemInstance

                                                                                                                                                                                            Returns ItemInstance

                                                                                                                                                                                          canExtractEnergy

                                                                                                                                                                                          • canExtractEnergy(): boolean
                                                                                                                                                                                          • Returns boolean

                                                                                                                                                                                          canReceiveEnergy

                                                                                                                                                                                          • canReceiveEnergy(): boolean
                                                                                                                                                                                          • Returns boolean

                                                                                                                                                                                          canRotate

                                                                                                                                                                                          • canRotate(side: number): boolean
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • side: number

                                                                                                                                                                                            Returns boolean

                                                                                                                                                                                          chargeSlot

                                                                                                                                                                                          • chargeSlot(slotName: string): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • slotName: string

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          clientLoad

                                                                                                                                                                                          • clientLoad(): void
                                                                                                                                                                                          • Called when the client copy is created


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          clientTick

                                                                                                                                                                                          • clientTick(): void
                                                                                                                                                                                          • Called every tick on client thread


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          clientUnload

                                                                                                                                                                                          • clientUnload(): void
                                                                                                                                                                                          • Called on destroying the client copy


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          created

                                                                                                                                                                                          • created(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          decreaseSlot

                                                                                                                                                                                          • decreaseSlot(slot: ItemContainerSlot, count: number): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • slot: ItemContainerSlot
                                                                                                                                                                                            • count: number

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          destroy

                                                                                                                                                                                          • destroy(): boolean
                                                                                                                                                                                          • Returns boolean

                                                                                                                                                                                          destroyBlock

                                                                                                                                                                                          • destroyBlock(coords: ItemUseCoordinates, player: number): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                                                            • player: number

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          dischargeSlot

                                                                                                                                                                                          • dischargeSlot(slotName: string): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • slotName: string

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          energyReceive

                                                                                                                                                                                          • energyReceive(type: string, amount: number, voltage: number): number
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • type: string
                                                                                                                                                                                            • amount: number
                                                                                                                                                                                            • voltage: number

                                                                                                                                                                                            Returns number

                                                                                                                                                                                          energyTick

                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          getDefaultDrop

                                                                                                                                                                                          • getDefaultDrop(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          getEnergyStorage

                                                                                                                                                                                          • getEnergyStorage(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          getExplosionPower

                                                                                                                                                                                          • getExplosionPower(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          getFacing

                                                                                                                                                                                          • getFacing(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          getInterruptSound

                                                                                                                                                                                          • getInterruptSound(): string
                                                                                                                                                                                          • Returns string

                                                                                                                                                                                          getMaxPacketSize

                                                                                                                                                                                          • getMaxPacketSize(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          getOperationSound

                                                                                                                                                                                          • getOperationSound(): string
                                                                                                                                                                                          • Returns string

                                                                                                                                                                                          getRelativeEnergy

                                                                                                                                                                                          • getRelativeEnergy(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          getScreenByName

                                                                                                                                                                                          • getScreenByName(screenName: string, container: ItemContainer): IWindow
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • screenName: string
                                                                                                                                                                                            • container: ItemContainer

                                                                                                                                                                                            Returns IWindow

                                                                                                                                                                                          getScreenName

                                                                                                                                                                                          • getScreenName(player: number, coords: ItemUseCoordinates): string
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • player: number
                                                                                                                                                                                            • coords: ItemUseCoordinates

                                                                                                                                                                                            Returns string

                                                                                                                                                                                          getStartingSound

                                                                                                                                                                                          • getStartingSound(): string
                                                                                                                                                                                          • Returns string

                                                                                                                                                                                          getTier

                                                                                                                                                                                          • getTier(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          init

                                                                                                                                                                                          • init(): void
                                                                                                                                                                                          • @deprecated

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          isConductor

                                                                                                                                                                                          • isConductor(type: string): boolean
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • type: string

                                                                                                                                                                                            Returns boolean

                                                                                                                                                                                          load

                                                                                                                                                                                          • load(): void
                                                                                                                                                                                          • @deprecated

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          onCheckerTick

                                                                                                                                                                                          • onCheckerTick(isInitialized: boolean, isLoaded: boolean, wasLoaded: boolean): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • isInitialized: boolean
                                                                                                                                                                                            • isLoaded: boolean
                                                                                                                                                                                            • wasLoaded: boolean

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          onCreate

                                                                                                                                                                                          • onCreate(): void
                                                                                                                                                                                          • Called when a TileEntity is created


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          onInit

                                                                                                                                                                                          • onInit(): void
                                                                                                                                                                                          • Called when a TileEntity is initialised in the world


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          onItemClick

                                                                                                                                                                                          • onItemClick(id: number, count: number, data: number, coords: ItemUseCoordinates, player: number, extra: ItemExtraData): boolean
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • id: number
                                                                                                                                                                                            • count: number
                                                                                                                                                                                            • data: number
                                                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                                                            • player: number
                                                                                                                                                                                            • extra: ItemExtraData

                                                                                                                                                                                            Returns boolean

                                                                                                                                                                                          onItemUse

                                                                                                                                                                                          • onItemUse(coords: ItemUseCoordinates, item: ItemStack, player: number): boolean
                                                                                                                                                                                          • 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

                                                                                                                                                                                          • onLoad(): void
                                                                                                                                                                                          • Called when a chunk with TileEntity is loaded


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          onRedstoneUpdate

                                                                                                                                                                                          • onRedstoneUpdate(signal: number): void
                                                                                                                                                                                          • Occurs when redstone signal on TileEntity block was updated


                                                                                                                                                                                            Parameters

                                                                                                                                                                                            • signal: number

                                                                                                                                                                                              signal power (0-15)

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          onTick

                                                                                                                                                                                          • onTick(): void
                                                                                                                                                                                          • Called every tick and should be used for all the updates of the TileEntity


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          onUnload

                                                                                                                                                                                          • onUnload(): void
                                                                                                                                                                                          • Called when a chunk with TileEntity is unloaded


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          preventClick

                                                                                                                                                                                          • preventClick(): void
                                                                                                                                                                                          • Prevents all actions on click


                                                                                                                                                                                            Returns void

                                                                                                                                                                                          projectileHit

                                                                                                                                                                                          • projectileHit(coords: ItemUseCoordinates, target: ProjectileHitTarget): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • coords: ItemUseCoordinates
                                                                                                                                                                                            • target: ProjectileHitTarget

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          rebuildGrid

                                                                                                                                                                                          • rebuildGrid(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          redstone

                                                                                                                                                                                          • redstone(params: { onLoad: boolean; power: number; signal: number }): void
                                                                                                                                                                                          • @deprecated

                                                                                                                                                                                            Parameters

                                                                                                                                                                                            • params: { onLoad: boolean; power: number; signal: number }
                                                                                                                                                                                              • onLoad: boolean
                                                                                                                                                                                              • power: number
                                                                                                                                                                                              • signal: number

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          renderModel

                                                                                                                                                                                          • renderModel(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          requireMoreLiquid

                                                                                                                                                                                          • requireMoreLiquid(liquid: string, amount: number): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • liquid: string
                                                                                                                                                                                            • amount: number

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          selfDestroy

                                                                                                                                                                                          • selfDestroy(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          setActive

                                                                                                                                                                                          • setActive(isActive: boolean): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • isActive: boolean

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          setFacing

                                                                                                                                                                                          • setFacing(side: number): boolean
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • side: number

                                                                                                                                                                                            Returns boolean

                                                                                                                                                                                          setLiquidScale

                                                                                                                                                                                          • setLiquidScale(container: any, window: any, content: any, data: { amount: number; liquid: string; scale: string }): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • container: any
                                                                                                                                                                                            • window: any
                                                                                                                                                                                            • content: any
                                                                                                                                                                                            • data: { amount: number; liquid: string; scale: string }
                                                                                                                                                                                              • amount: number
                                                                                                                                                                                              • liquid: string
                                                                                                                                                                                              • scale: string

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          setupContainer

                                                                                                                                                                                          • setupContainer(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          startPlaySound

                                                                                                                                                                                          • startPlaySound(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          stopPlaySound

                                                                                                                                                                                          • stopPlaySound(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          tick

                                                                                                                                                                                          • tick(): void
                                                                                                                                                                                          • @deprecated

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          unload

                                                                                                                                                                                          • unload(): void
                                                                                                                                                                                          • @deprecated

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          updateBlockCount

                                                                                                                                                                                          • updateBlockCount(): void
                                                                                                                                                                                          • Returns void

                                                                                                                                                                                          updateLiquidScale

                                                                                                                                                                                          • updateLiquidScale(scale: string, liquid: string): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • scale: string
                                                                                                                                                                                            • liquid: string

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          Interfaces

                                                                                                                                                                                          IHeatConsumer

                                                                                                                                                                                          IHeatConsumer:

                                                                                                                                                                                          canReceiveHeat

                                                                                                                                                                                          • canReceiveHeat(side: number): boolean
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • side: number

                                                                                                                                                                                            Returns boolean

                                                                                                                                                                                          receiveHeat

                                                                                                                                                                                          • receiveHeat(amount: number): number
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • amount: number

                                                                                                                                                                                            Returns number

                                                                                                                                                                                          IWrenchable

                                                                                                                                                                                          IWrenchable:

                                                                                                                                                                                          adjustDrop

                                                                                                                                                                                          • adjustDrop(item: ItemInstance): ItemInstance
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • item: ItemInstance

                                                                                                                                                                                            Returns ItemInstance

                                                                                                                                                                                          canRotate

                                                                                                                                                                                          • canRotate(side: number): boolean
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • side: number

                                                                                                                                                                                            Returns boolean

                                                                                                                                                                                          getDefaultDrop

                                                                                                                                                                                          • getDefaultDrop(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          getFacing

                                                                                                                                                                                          • getFacing(): number
                                                                                                                                                                                          • Returns number

                                                                                                                                                                                          setFacing

                                                                                                                                                                                          • setFacing(side: number): void
                                                                                                                                                                                          • Parameters

                                                                                                                                                                                            • side: number

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          Functions

                                                                                                                                                                                          ClientSide

                                                                                                                                                                                          • Client side method decorator for TileEntity


                                                                                                                                                                                            Parameters

                                                                                                                                                                                            Returns void

                                                                                                                                                                                          ContainerEvent

                                                                                                                                                                                          • Adds method as container event in TileEntity


                                                                                                                                                                                            Parameters

                                                                                                                                                                                            Returns (target: TileEntityBase, propertyName: string) => void

                                                                                                                                                                                          NetworkEvent

                                                                                                                                                                                          • Adds method as network event in TileEntity


                                                                                                                                                                                            Parameters

                                                                                                                                                                                            Returns (target: TileEntityBase, propertyName: string) => void