public abstract class TileLaserTableBase extends TileBC_Neptune implements ILaserTarget, net.minecraft.util.ITickable, IDebuggable
| Modifier and Type | Field and Description |
|---|---|
long |
avgPowerClient |
long |
power |
caps, DEBUG, deltaManager, IDS, 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| Modifier | Constructor and Description |
|---|---|
protected |
TileLaserTableBase() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
extract(ItemHandlerSimple inv,
java.util.Collection<IngredientStack> items,
boolean simulate,
boolean precise) |
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.
|
long |
getRequiredLaserPower()
Returns The amount of power this target currently needs.
|
abstract long |
getTarget() |
boolean |
isInvalidTarget()
Return true if the Tile Entity object is no longer a valid target.
|
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) |
long |
receiveLaserPower(long microJoules)
Transfers power from the laser to the target.
|
void |
update() |
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, getIdAllocator, getLocalState, getLocalTile, getNeighbourState, getNeighbourTile, getOffsetState, getOffsetTile, getOwner, getPermBlock, getUpdatePacket, getUpdateTag, handleUpdateTag, hasCapability, isBeingDebugged, markChunkDirty, migrateOldNBT, onActivated, onDataPacket, onExplode, onNeighbourBlockChanged, onPlacedBy, onPlayerClose, onPlayerOpen, onRemove, onSlotChange, receivePayload, redrawBlock, sendDebugState, sendNetworkGuiTick, sendNetworkGuiUpdate, sendNetworkUpdate, sendNetworkUpdate, setWorldCreate, shouldRefreshaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, shouldRenderInPass, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientDebugInfopublic abstract long getTarget()
public long getRequiredLaserPower()
ILaserTargetgetRequiredLaserPower in interface ILaserTargetpublic long receiveLaserPower(long microJoules)
ILaserTargetreceiveLaserPower in interface ILaserTargetmicroJoules - The number of micro Minecraft Joules to acceptILaserTarget.getRequiredLaserPower() then this will return 0.public boolean isInvalidTarget()
ILaserTargetisInvalidTarget in interface ILaserTargetpublic void update()
update in interface net.minecraft.util.ITickablepublic 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" sideprotected boolean extract(ItemHandlerSimple inv, java.util.Collection<IngredientStack> items, boolean simulate, boolean precise)