Skip to content

TileAPI

mc.getSendQueue().addToSendQueue(new Packet11PlayerPosition(Double.NaN, Double.NaN, Double.NaN, Double.NaN, true)) edited this page Aug 27, 2026 · 2 revisions

WIP

Functions

get

  • Args: (pos)

pos - position of TileEntity

  • Return: or false
  • Gets a TileEntity from its position

getByID

  • Args: (id)

id - block id or instance of TileEntity

  • Return:
  • Gets a TileEntity instance from its id

getAll

  • Args: (level)

level - Level instance

  • Return: Array of tiles in level

add

  • Args: (level, class, x, y, z, data)

level - Level instance, class - Class ID of Tile, x - posX, y - posY, z - posZ, data - entity data

  • Return:
  • Adds new tile to the level.

addSign

  • Args: (level, x, y, z, lines)

level - Level instance, x - posX, y - posY, z - posZ, lines - data of sign

spawnToAll

  • Args: (tile)
  • Return: None
  • Spawns tile for all players in the world.

spawnAll

  • Args: (player)
  • Return: None
  • Spawns all tiles to player

remove

  • Args: (id)
  • Return: None
  • Removes a tile from world

Clone this wiki locally