public class TileLaser extends TileBC_Neptune implements net.minecraft.util.ITickable, IDebuggable, ILocalBlockUpdateSubscriber
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.util.math.Vec3d |
laserPos |
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| Constructor and Description |
|---|
TileLaser() |
| Modifier and Type | Method and Description |
|---|---|
long |
getAverageClient() |
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.
|
DetachedRenderer.IDetachedRenderer |
getDebugRenderer()
Called on the client to actually render off the target.
|
long |
getMaxPowerPerTick() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.math.BlockPos |
getSubscriberPos()
Returns the position of the subscriber.
|
int |
getUpdateRange()
The distance from the @{BlockPos} that subscribers should be notified about updates.
|
void |
invalidate() |
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 |
setWorldUpdated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos eventPos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState,
int flags)
Called to indicate an update happened within the listener's update range returned by the @{getUpdateRange} call.
|
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, 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, getTileData, getWorld, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, shouldRenderInPass, updateContainingBlockInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientDebugInfopublic int getUpdateRange()
ILocalBlockUpdateSubscribergetUpdateRange in interface ILocalBlockUpdateSubscriberpublic net.minecraft.util.math.BlockPos getSubscriberPos()
ILocalBlockUpdateSubscribergetSubscriberPos in interface ILocalBlockUpdateSubscriberpublic void setWorldUpdated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos eventPos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState,
int flags)
ILocalBlockUpdateSubscribersetWorldUpdated in interface ILocalBlockUpdateSubscriberworld - from the block update eventeventPos - from the block update eventoldState - from the block update eventnewState - from the block update eventflags - from the block update eventpublic long getAverageClient()
public long getMaxPowerPerTick()
public 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" sidepublic void validate()
validate in class net.minecraft.tileentity.TileEntitypublic void invalidate()
invalidate in class net.minecraft.tileentity.TileEntity@Nonnull public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntitypublic DetachedRenderer.IDetachedRenderer getDebugRenderer()
IAdvDebugTargetIAdvDebugTarget.doesExistInWorld() returns true.getDebugRenderer in interface IAdvDebugTargetgetDebugRenderer in class TileBC_Neptune