public class ReassemblyUnitTileEntity
extends net.minecraft.tileentity.TileEntity
implements net.minecraft.tileentity.ITickableTileEntity
Modifier and Type | Class and Description |
---|---|
static class |
ReassemblyUnitTileEntity.Mode |
Constructor and Description |
---|
ReassemblyUnitTileEntity() |
Modifier and Type | Method and Description |
---|---|
void |
activate(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.block.BlockState state,
net.minecraft.item.ItemStack hand) |
ReassemblyUnitTileEntity.Mode |
getMode() |
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
Called when you receive a TileEntityData packet for the location this
TileEntity is currently in.
|
void |
onSelection(net.minecraft.entity.player.ServerPlayerEntity player,
ReassemblyUnitTileEntity.Mode mode,
StoragePosition position,
int cubeSlot) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT compound) |
void |
setMode(ReassemblyUnitTileEntity.Mode mode) |
void |
tick()
Like the old updateEntity(), except more generic.
|
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void activate(net.minecraft.entity.player.ServerPlayerEntity player, net.minecraft.block.BlockState state, net.minecraft.item.ItemStack hand)
public void onSelection(net.minecraft.entity.player.ServerPlayerEntity player, ReassemblyUnitTileEntity.Mode mode, StoragePosition position, int cubeSlot)
public void setMode(ReassemblyUnitTileEntity.Mode mode)
public ReassemblyUnitTileEntity.Mode getMode()
public void tick()
tick
in interface net.minecraft.tileentity.ITickableTileEntity
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT compound)
load
in class net.minecraft.tileentity.TileEntity
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT compound)
save
in class net.minecraft.tileentity.TileEntity
@Nullable public net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class net.minecraft.tileentity.TileEntity
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag
in class net.minecraft.tileentity.TileEntity
public void onDataPacket(net.minecraft.network.NetworkManager net, net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
onDataPacket
in interface net.minecraftforge.common.extensions.IForgeTileEntity
net
- The NetworkManager the packet originated frompkt
- The data packet