Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace TileEntity

TileEntity is a powerful mechanism that allows for creation of interactive blocks such as chests, furnaces, etc.

Index

Functions

  • destroyTileEntity(tileEntity: TileEntity): boolean
  • destroyTileEntityAtCoords(x: number, y: number, z: number, region?: BlockSource): boolean
  • If the block on the specified coordinates is a TileEntity, destroys it, dropping its container

    Parameters

    • x: number
    • y: number
    • z: number
    • Optional region: BlockSource

    Returns boolean

    true if the TileEntity was destroyed successfully, false otherwise

  • isTileEntityBlock(blockID: number): boolean
  • Parameters

    • blockID: number

      numeric block id

    Returns boolean

    true if the specified numeric block id is a TileEntity block id, false otherwise

  • isTileEntityLoaded(tileEntity: TileEntity): boolean
  • Checks whether the TileEntity is in the loaded chunk or not

    Parameters

    Returns boolean

    true if the chunk with TileEntity and some of the surrounding chunks are loaded, false otherwise. The following chunks are verified:

      • Where "#"" is the chunk containing the current TileEntity and "+" are the chunks that are also verified

Generated using TypeDoc