public abstract class TileEntityBehaviour
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
SmartTileEntity |
tileEntity |
| Constructor and Description |
|---|
TileEntityBehaviour(SmartTileEntity te) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
static <T extends TileEntityBehaviour> |
destroy(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
BehaviourType<T> type) |
static <T extends TileEntityBehaviour> |
get(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
BehaviourType<T> type) |
static <T extends TileEntityBehaviour> |
get(net.minecraft.tileentity.TileEntity te,
BehaviourType<T> type) |
net.minecraft.util.math.BlockPos |
getPos() |
ItemRequirement |
getRequiredItems() |
abstract BehaviourType<?> |
getType() |
net.minecraft.world.World |
getWorld() |
void |
initialize() |
boolean |
isSafeNBT() |
void |
lazyTick() |
void |
onBlockChanged(net.minecraft.block.BlockState oldState) |
void |
onNeighborChanged(net.minecraft.util.math.BlockPos neighborPos) |
void |
read(net.minecraft.nbt.CompoundNBT nbt,
boolean clientPacket) |
void |
remove() |
void |
setLazyTickRate(int slowTickRate) |
void |
tick() |
void |
write(net.minecraft.nbt.CompoundNBT nbt,
boolean clientPacket) |
public SmartTileEntity tileEntity
public TileEntityBehaviour(SmartTileEntity te)
public abstract BehaviourType<?> getType()
public void initialize()
public void tick()
public void read(net.minecraft.nbt.CompoundNBT nbt,
boolean clientPacket)
public void write(net.minecraft.nbt.CompoundNBT nbt,
boolean clientPacket)
public boolean isSafeNBT()
public ItemRequirement getRequiredItems()
public void onBlockChanged(net.minecraft.block.BlockState oldState)
public void onNeighborChanged(net.minecraft.util.math.BlockPos neighborPos)
public void remove()
public void destroy()
public void setLazyTickRate(int slowTickRate)
public void lazyTick()
public net.minecraft.util.math.BlockPos getPos()
public net.minecraft.world.World getWorld()
public static <T extends TileEntityBehaviour> T get(net.minecraft.world.IBlockReader reader, net.minecraft.util.math.BlockPos pos, BehaviourType<T> type)
public static <T extends TileEntityBehaviour> void destroy(net.minecraft.world.IBlockReader reader, net.minecraft.util.math.BlockPos pos, BehaviourType<T> type)
public static <T extends TileEntityBehaviour> T get(net.minecraft.tileentity.TileEntity te, BehaviourType<T> type)