public class TileEntityUtils
extends java.lang.Object
TileEntity
.Constructor and Description |
---|
TileEntityUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getTileEntity(java.lang.Class<T> clazz,
net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
Gets the
TileEntity or type T at the specified coordinates. |
static void |
linkTileEntityToGui(net.minecraft.tileentity.TileEntity te,
MalisisGui gui)
Links the
TileEntity to the MalisisGui . |
static void |
updateGui(net.minecraft.tileentity.TileEntity te)
Notifies the currently opened
MalisisGui to update. |
public static <T> T getTileEntity(java.lang.Class<T> clazz, net.minecraft.world.IBlockAccess world, int x, int y, int z)
TileEntity
or type T at the specified coordinates.TileEntity
was found at the coordinates, or if the TileEntity
is not of type T, returns
null
instead.T
- type of TileEntity requestedclazz
- the class of the TileEntityworld
- the worldx
- the xy
- the yz
- the zpublic static void linkTileEntityToGui(net.minecraft.tileentity.TileEntity te, MalisisGui gui)
te
- the TileEntitygui
- the MalisisGuipublic static void updateGui(net.minecraft.tileentity.TileEntity te)
MalisisGui
to update.te
- the TileEntity
linked to the MalisisGui