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,
net.minecraft.util.math.BlockPos pos)
Gets the
TileEntity of type T at the specified BlockPos. |
static void |
linkTileEntityToGui(net.minecraft.tileentity.TileEntity te,
MalisisGui gui)
Links the
TileEntity to the MalisisGui. |
static void |
notifyUpdate(net.minecraft.tileentity.TileEntity te) |
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,
net.minecraft.util.math.BlockPos pos)
TileEntity of type T at the specified BlockPos.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 worldpos - the pospublic 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 MalisisGuipublic static void notifyUpdate(net.minecraft.tileentity.TileEntity te)