public class TileBuilder extends TileBC_Neptune implements net.minecraft.util.ITickable, IDebuggable, ITileForTemplateBuilder, ITileForBlueprintBuilder
Modifier and Type | Field and Description |
---|---|
BlueprintBuilder |
blueprintBuilder |
static IdAllocator |
IDS |
ItemHandlerSimple |
invResources |
ItemHandlerSimple |
invSnapshot |
static int |
NET_CAN_EXCAVATE |
static int |
NET_SNAPSHOT_TYPE |
java.util.List<net.minecraft.util.math.BlockPos> |
path
Stores the real path - just a few block positions.
|
EnumSnapshotType |
snapshotType |
TemplateBuilder |
templateBuilder |
caps, DEBUG, deltaManager, itemManager, NET_ADV_DEBUG, NET_ADV_DEBUG_DISABLE, NET_GUI_DATA, NET_GUI_DELTA_CLEAR, NET_GUI_DELTA_SINGLE, NET_GUI_TICK, NET_REDRAW, NET_REN_DELTA_CLEAR, NET_REN_DELTA_SINGLE, NET_RENDER_DATA, tankManager
Constructor and Description |
---|
TileBuilder() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExcavate() |
MjBattery |
getBattery() |
Blueprint.BuildingInfo |
getBlueprintBuildingInfo() |
Box |
getBox() |
SnapshotBuilder<?> |
getBuilder() |
net.minecraft.util.math.BlockPos |
getBuilderPos() |
void |
getDebugInfo(java.util.List<java.lang.String> left,
java.util.List<java.lang.String> right,
net.minecraft.util.EnumFacing side)
Get the debug information from a tile entity as a list of strings, used for the F3 debug menu.
|
IdAllocator |
getIdAllocator() |
IItemTransactor |
getInvResources() |
double |
getMaxRenderDistanceSquared() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
TankManager |
getTankManager() |
Template.BuildingInfo |
getTemplateBuildingInfo() |
net.minecraft.world.World |
getWorldBC() |
boolean |
hasFastRenderer() |
void |
invalidate() |
void |
onPlacedBy(net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
protected void |
onSlotChange(net.minecraftforge.items.IItemHandlerModifiable handler,
int slot,
net.minecraft.item.ItemStack before,
net.minecraft.item.ItemStack after) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
readPayload(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) |
void |
sendCanExcavate(boolean newValue) |
void |
update() |
void |
validate() |
void |
writePayload(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
addDrops, canEditOther, canInteractWith, cannotUpdate, canPlayerEdit, createAndSendGuiMessage, createAndSendGuiMessage, createAndSendMessage, createAndSendMessage, createMessage, createNetworkUpdate, disableDebugging, doesExistInWorld, enableDebugging, getCapability, getCurrentState, getCurrentStateForBlock, getDebugRenderer, getLocalState, getLocalTile, getNeighbourState, getNeighbourTile, getOffsetState, getOffsetTile, getOwner, getPermBlock, getUpdatePacket, getUpdateTag, handleUpdateTag, hasCapability, isBeingDebugged, migrateOldNBT, onActivated, onDataPacket, onExplode, onNeighbourBlockChanged, onPlayerClose, onPlayerOpen, onRemove, receivePayload, redrawBlock, sendDebugState, sendNetworkGuiTick, sendNetworkGuiUpdate, sendNetworkUpdate, sendNetworkUpdate, setWorldCreate, shouldRefresh
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDisplayName, getDistanceSq, getKey, getPos, getTileData, getWorld, hasWorld, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, shouldRenderInPass, updateContainingBlockInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClientDebugInfo
getOwner
public static final IdAllocator IDS
public static final int NET_CAN_EXCAVATE
public static final int NET_SNAPSHOT_TYPE
public final ItemHandlerSimple invSnapshot
public final ItemHandlerSimple invResources
public java.util.List<net.minecraft.util.math.BlockPos> path
public EnumSnapshotType snapshotType
public TemplateBuilder templateBuilder
public BlueprintBuilder blueprintBuilder
public IdAllocator getIdAllocator()
getIdAllocator
in class TileBC_Neptune
IdAllocator
that allocates all ID's for this class, and its parent classes. All subclasses
should override this if they allocate their own ids after calling
IdAllocator.makeChild(String)
protected void onSlotChange(net.minecraftforge.items.IItemHandlerModifiable handler, int slot, @Nonnull net.minecraft.item.ItemStack before, @Nonnull net.minecraft.item.ItemStack after)
onSlotChange
in class TileBC_Neptune
public void validate()
validate
in class net.minecraft.tileentity.TileEntity
public void invalidate()
invalidate
in class net.minecraft.tileentity.TileEntity
public void onPlacedBy(net.minecraft.entity.EntityLivingBase placer, net.minecraft.item.ItemStack stack)
onPlacedBy
in class TileBC_Neptune
public void update()
update
in interface net.minecraft.util.ITickable
public void writePayload(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side)
writePayload
in class TileBC_Neptune
public void readPayload(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side, net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) throws java.io.IOException
readPayload
in class TileBC_Neptune
ctx
- The context. Will be null if this is a generic update payloadjava.io.IOException
- if something went wrongpublic void sendCanExcavate(boolean newValue)
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT
in class TileBC_Neptune
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT
in class TileBC_Neptune
public Box getBox()
public boolean hasFastRenderer()
hasFastRenderer
in class net.minecraft.tileentity.TileEntity
@Nonnull public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox
in class net.minecraft.tileentity.TileEntity
public double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared
in class net.minecraft.tileentity.TileEntity
public void getDebugInfo(java.util.List<java.lang.String> left, java.util.List<java.lang.String> right, net.minecraft.util.EnumFacing side)
IDebuggable
getDebugInfo
in interface IDebuggable
side
- The side the block was clicked on, may be null if we don't know, or is the "centre" sidepublic net.minecraft.world.World getWorldBC()
getWorldBC
in interface ITileForSnapshotBuilder
public MjBattery getBattery()
getBattery
in interface ITileForSnapshotBuilder
public net.minecraft.util.math.BlockPos getBuilderPos()
getBuilderPos
in interface ITileForSnapshotBuilder
public boolean canExcavate()
canExcavate
in interface ITileForSnapshotBuilder
public SnapshotBuilder<?> getBuilder()
getBuilder
in interface ITileForSnapshotBuilder
public Template.BuildingInfo getTemplateBuildingInfo()
getTemplateBuildingInfo
in interface ITileForTemplateBuilder
public Blueprint.BuildingInfo getBlueprintBuildingInfo()
getBlueprintBuildingInfo
in interface ITileForBlueprintBuilder
public IItemTransactor getInvResources()
getInvResources
in interface ITileForBlueprintBuilder
getInvResources
in interface ITileForTemplateBuilder
public TankManager getTankManager()
getTankManager
in interface ITileForBlueprintBuilder