public abstract class TileMiner extends TileBC_Neptune implements net.minecraft.util.ITickable, IDebuggable
| Modifier and Type | Field and Description |
|---|---|
protected MjBattery |
battery |
protected net.minecraft.util.math.BlockPos |
currentPos |
static IdAllocator |
IDS |
protected boolean |
isComplete |
static int |
NET_LED_STATUS |
static int |
NET_WANTED_Y |
protected int |
progress |
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 |
|---|
TileMiner() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract IMjReceiver |
createMjReceiver() |
protected long |
getBatteryCapacity() |
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() |
double |
getLength(float partialTicks) |
double |
getMaxRenderDistanceSquared() |
float |
getPercentFilledForRender() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
protected net.minecraft.util.math.BlockPos |
getTargetPos() |
boolean |
hasFastRenderer() |
boolean |
isComplete() |
protected void |
migrateOldNBT(int version,
net.minecraft.nbt.NBTTagCompound nbt) |
protected abstract void |
mine() |
void |
onLoad() |
void |
onRemove()
Called whenever the block is removed.
|
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 |
update() |
protected void |
updateLength() |
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, markChunkDirty, onActivated, onDataPacket, onExplode, onNeighbourBlockChanged, onPlacedBy, onPlayerClose, onPlayerOpen, onSlotChange, receivePayload, redrawBlock, sendDebugState, sendNetworkGuiTick, sendNetworkGuiUpdate, sendNetworkUpdate, sendNetworkUpdate, setWorldCreate, shouldRefreshaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDisplayName, getDistanceSq, getKey, getPos, getTileData, getWorld, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, shouldRenderInPass, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientDebugInfopublic static final IdAllocator IDS
public static final int NET_LED_STATUS
public static final int NET_WANTED_Y
protected int progress
protected net.minecraft.util.math.BlockPos currentPos
protected boolean isComplete
protected final MjBattery battery
protected abstract void mine()
protected abstract IMjReceiver createMjReceiver()
public IdAllocator getIdAllocator()
getIdAllocator in class TileBC_NeptuneIdAllocator 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)public void update()
update in interface net.minecraft.util.ITickablepublic void onLoad()
onLoad in class net.minecraft.tileentity.TileEntitypublic void onRemove()
TileBC_NeptuneTileBC_Neptune.onExplode(Explosion), and
Block.breakBlock(World, BlockPos, IBlockState)onRemove in class TileBC_Neptuneprotected void updateLength()
protected net.minecraft.util.math.BlockPos getTargetPos()
public double getLength(float partialTicks)
public boolean isComplete()
protected void migrateOldNBT(int version,
net.minecraft.nbt.NBTTagCompound nbt)
migrateOldNBT in class TileBC_Neptunepublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in class TileBC_Neptunepublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class TileBC_Neptunepublic void writePayload(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side)
writePayload in class TileBC_Neptunepublic 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_Neptunectx - The context. Will be null if this is a generic update payloadjava.io.IOException - if something went wrongpublic void getDebugInfo(java.util.List<java.lang.String> left,
java.util.List<java.lang.String> right,
net.minecraft.util.EnumFacing side)
IDebuggablegetDebugInfo in interface IDebuggableside - The side the block was clicked on, may be null if we don't know, or is the "centre" side@Nonnull public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntitypublic double getMaxRenderDistanceSquared()
getMaxRenderDistanceSquared in class net.minecraft.tileentity.TileEntitypublic boolean hasFastRenderer()
hasFastRenderer in class net.minecraft.tileentity.TileEntitypublic float getPercentFilledForRender()
protected long getBatteryCapacity()