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, migrateOldNBT, onActivated, onDataPacket, onExplode, onPlacedBy, onPlayerClose, onPlayerOpen, onRemove, onSlotChange, receivePayload, redrawBlock, registerTile, sendDebugState, sendNetworkGuiTick, sendNetworkGuiUpdate, sendNetworkUpdate, sendNetworkUpdate, setWorldCreate, shouldRefresh
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getTileData, getWorld, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, shouldRenderInPass, updateContainingBlockInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClientDebugInfo
public int getUpdateRange()
ILocalBlockUpdateSubscriber
getUpdateRange
in interface ILocalBlockUpdateSubscriber
public net.minecraft.util.math.BlockPos getSubscriberPos()
ILocalBlockUpdateSubscriber
getSubscriberPos
in interface ILocalBlockUpdateSubscriber
public 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)
ILocalBlockUpdateSubscriber
setWorldUpdated
in interface ILocalBlockUpdateSubscriber
world
- 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.ITickable
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 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 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 void validate()
validate
in class net.minecraft.tileentity.TileEntity
public void invalidate()
invalidate
in class net.minecraft.tileentity.TileEntity
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox
in class net.minecraft.tileentity.TileEntity
public DetachedRenderer.IDetachedRenderer getDebugRenderer()
IAdvDebugTarget
IAdvDebugTarget.doesExistInWorld()
returns true.getDebugRenderer
in interface IAdvDebugTarget
getDebugRenderer
in class TileBC_Neptune