Skip to content

TileEntityManager

You can get the TileEntityManager using the previously retrieved Nova instance.

val tileEntityManager = Nova.tileEntityManager
TileEntityManager tileEntityManager = nova.getTileEntityManager(); // (1)!
  1. "nova" is the previously retrieved Nova instance, preferably saved in a field/variable.
    You can also call Nova.getNova().getTileEntityManager()

Getting a TileEntity at a specific location

Getting a TileEntity at a specific location is done by calling the getTileEntityAt function of the TileEntityManager. The function either returns a TileEntity or null if there is no TileEntity at the specified location.

val tileEntity: TileEntity? = tileEntityManager.getTileEntityAt(location)
TileEntity tileEntity = tileEntityManager.getTileEntityAt(location);