public abstract class TileEngineBase_BC8 extends TileBC_Neptune implements net.minecraft.util.ITickable, IDebuggable
Modifier and Type | Class and Description |
---|---|
static interface |
TileEngineBase_BC8.ITileBuffer |
Modifier and Type | Field and Description |
---|---|
ModelVariableData |
clientModelData
The model variables, used to keep track of the various state-based variables.
|
protected net.minecraft.util.EnumFacing |
currentDirection |
long |
currentOutput |
protected double |
heat |
static double |
HEAT_PER_MJ
Heat per
MjAPI.MJ . |
static double |
IDEAL_HEAT |
protected boolean |
isPumping |
boolean |
isRedstonePowered |
static double |
MAX_HEAT |
static double |
MIN_HEAT |
IMjConnector |
mjConnector |
protected long |
power |
protected EnumPowerStage |
powerStage |
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 |
---|
TileEngineBase_BC8() |
Modifier and Type | Method and Description |
---|---|
void |
addPower(long microJoules) |
net.minecraft.util.EnumActionResult |
attemptRotation() |
protected void |
burn() |
protected EnumPowerStage |
computePowerStage() |
protected abstract IMjConnector |
createConnector() |
protected void |
engineUpdate() |
abstract float |
explosionRange() |
long |
extractPower(long min,
long max,
boolean doExtract) |
protected net.minecraft.world.biome.Biome |
getBiome() |
protected float |
getBiomeHeat() |
<T> T |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.EnumFacing facing) |
void |
getClientDebugInfo(java.util.List<java.lang.String> left,
java.util.List<java.lang.String> right,
net.minecraft.util.EnumFacing side)
Same as
IDebuggable.getDebugInfo(List, List, EnumFacing) , but only for client |
net.minecraft.util.EnumFacing |
getCurrentFacing() |
abstract long |
getCurrentOutput() |
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 |
getEnergyStored() |
double |
getHeat() |
double |
getHeatLevel() |
double |
getIdealHeatLevel() |
abstract long |
getMaxPower() |
double |
getPistonSpeed() |
double |
getPowerLevel() |
EnumPowerStage |
getPowerStage() |
float |
getProgressClient(float partialTicks) |
IMjReceiver |
getReceiverToPower(net.minecraft.tileentity.TileEntity tile,
net.minecraft.util.EnumFacing side)
Redstone engines override this to get an
IMjRedstoneReceiver instance |
TileEngineBase_BC8.ITileBuffer |
getTileBuffer(net.minecraft.util.EnumFacing side)
Temp! This should be replaced with a tile buffer!
|
boolean |
hasFastRenderer() |
void |
invalidate() |
boolean |
isActive() |
abstract boolean |
isBurning() |
boolean |
isEngineOn() |
boolean |
isPoweredTile(net.minecraft.tileentity.TileEntity tile,
net.minecraft.util.EnumFacing side) |
abstract long |
maxPowerExtracted() |
abstract long |
maxPowerReceived() |
long |
minPowerReceived() |
void |
onPlacedBy(net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
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 |
rotateIfInvalid() |
protected void |
setPumping(boolean isActive) |
void |
update() |
void |
updateHeatLevel() |
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, getCurrentState, getCurrentStateForBlock, getDebugRenderer, getIdAllocator, getLocalState, getLocalTile, getNeighbourState, getNeighbourTile, getOffsetState, getOffsetTile, getOwner, getPermBlock, getUpdatePacket, getUpdateTag, handleUpdateTag, hasCapability, isBeingDebugged, markChunkDirty, migrateOldNBT, onActivated, onDataPacket, onExplode, onNeighbourBlockChanged, onPlayerClose, onPlayerOpen, onRemove, onSlotChange, receivePayload, redrawBlock, sendDebugState, sendNetworkGuiTick, sendNetworkGuiUpdate, sendNetworkUpdate, sendNetworkUpdate, setWorldCreate, shouldRefresh
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasWorld, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, shouldRenderInPass, updateContainingBlockInfo
public static final double HEAT_PER_MJ
MjAPI.MJ
.public static final double MIN_HEAT
public static final double IDEAL_HEAT
public static final double MAX_HEAT
@Nonnull public final IMjConnector mjConnector
protected double heat
protected long power
protected EnumPowerStage powerStage
protected net.minecraft.util.EnumFacing currentDirection
public long currentOutput
public boolean isRedstonePowered
protected boolean isPumping
public final ModelVariableData clientModelData
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT
in class TileBC_Neptune
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT
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 writePayload(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side)
writePayload
in class TileBC_Neptune
public net.minecraft.util.EnumActionResult attemptRotation()
public void rotateIfInvalid()
public void onPlacedBy(net.minecraft.entity.EntityLivingBase placer, net.minecraft.item.ItemStack stack)
onPlacedBy
in class TileBC_Neptune
protected net.minecraft.world.biome.Biome getBiome()
protected float getBiomeHeat()
public double getPowerLevel()
protected EnumPowerStage computePowerStage()
public final EnumPowerStage getPowerStage()
public void updateHeatLevel()
public double getHeatLevel()
public double getIdealHeatLevel()
public double getHeat()
public double getPistonSpeed()
@Nonnull protected abstract IMjConnector createConnector()
public void update()
update
in interface net.minecraft.util.ITickable
protected void burn()
protected void engineUpdate()
public boolean isActive()
protected final void setPumping(boolean isActive)
public TileEngineBase_BC8.ITileBuffer getTileBuffer(net.minecraft.util.EnumFacing side)
public void invalidate()
invalidate
in class net.minecraft.tileentity.TileEntity
public void validate()
validate
in class net.minecraft.tileentity.TileEntity
public abstract boolean isBurning()
public void addPower(long microJoules)
public long extractPower(long min, long max, boolean doExtract)
public final boolean isPoweredTile(net.minecraft.tileentity.TileEntity tile, net.minecraft.util.EnumFacing side)
public IMjReceiver getReceiverToPower(net.minecraft.tileentity.TileEntity tile, net.minecraft.util.EnumFacing side)
IMjRedstoneReceiver
instancepublic <T> T getCapability(@Nonnull net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.util.EnumFacing facing)
getCapability
in interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
in class TileBC_Neptune
public abstract long getMaxPower()
public long minPowerReceived()
public abstract long maxPowerReceived()
public abstract long maxPowerExtracted()
public abstract float explosionRange()
public long getEnergyStored()
public abstract long getCurrentOutput()
public boolean isEngineOn()
public float getProgressClient(float partialTicks)
public net.minecraft.util.EnumFacing getCurrentFacing()
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 void getClientDebugInfo(java.util.List<java.lang.String> left, java.util.List<java.lang.String> right, net.minecraft.util.EnumFacing side)
IDebuggable
IDebuggable.getDebugInfo(List, List, EnumFacing)
, but only for clientgetClientDebugInfo
in interface IDebuggable
side
- same as for IDebuggable.getDebugInfo(List, List, EnumFacing)
public boolean hasFastRenderer()
hasFastRenderer
in class net.minecraft.tileentity.TileEntity