public abstract class TileEngine extends TileBase implements IActivatable, IStreamableGui
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentOutput |
protected EnergyManager |
energyManager |
protected boolean |
forceCooldown |
protected int |
heat |
protected int |
maxHeat |
float |
pistonSpeedServer
Piston speed as supplied by the server
|
float |
progress |
int |
stagePiston
Indicates whether the piston is receding from or approaching the
combustion chamber
|
| Modifier | Constructor and Description |
|---|---|
protected |
TileEngine(java.lang.String hintKey,
int maxHeat,
int maxEnergy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHeat(int i) |
protected abstract void |
burn() |
protected abstract int |
dissipateHeat() |
protected abstract int |
generateHeat() |
int |
getBurnTimeRemainingScaled(int i) |
<T> T |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.EnumFacing facing) |
int |
getCurrentOutput() |
EnergyManager |
getEnergyManager() |
int |
getHeat() |
protected double |
getHeatLevel() |
java.lang.String |
getHintKey() |
protected float |
getPistonSpeed() |
TemperatureState |
getTemperatureState()
Returns the current energy state of the engine
|
boolean |
hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability,
net.minecraft.util.EnumFacing facing) |
boolean |
hasFuelMin(float percentage) |
boolean |
isActive() |
protected abstract boolean |
isBurning() |
protected boolean |
mayBurn() |
void |
readData(PacketBufferForestry data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
readGuiData(PacketBufferForestry data) |
void |
setActive(boolean active) |
void |
updateClientSide() |
protected void |
updateServerSide() |
void |
writeData(PacketBufferForestry data) |
void |
writeGuiData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
getFacing, getUnlocalizedTitle, openGui, shouldRefreshaddExternalTriggers, addInternalSidedTriggers, addInternalTriggers, canExtractItem, canInsertItem, canSlotAccept, clear, closeInventory, decrStackSize, getCoordinates, getDisplayName, getErrorLogic, getField, getFieldCount, getInternalInventory, getInventoryStackLimit, getName, getSizeInventory, getSlotsForFace, getStackInSlot, getTileCache, getUpdatePacket, getUpdateTag, getWorldObj, handleUpdateTag, hasCustomName, invalidate, isEmpty, isItemValidForSlot, isLocked, isRedstoneActivated, isUsableByPlayer, onNeighborTileChange, onRemoval, openInventory, removeStackFromSlot, sendNetworkUpdate, setField, setInternalInventory, setInventorySlotContents, setNeedsNetworkUpdate, update, updateOnInterval, validateaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCoordinatesgetContainer, getGuipublic int stagePiston
public float pistonSpeedServer
protected int currentOutput
protected int heat
protected final int maxHeat
protected boolean forceCooldown
public float progress
protected final EnergyManager energyManager
protected TileEngine(java.lang.String hintKey,
int maxHeat,
int maxEnergy)
public java.lang.String getHintKey()
protected void addHeat(int i)
protected abstract int dissipateHeat()
protected abstract int generateHeat()
protected boolean mayBurn()
protected abstract void burn()
public void updateClientSide()
updateClientSide in class TileForestryprotected void updateServerSide()
updateServerSide in class TileForestrypublic boolean isActive()
isActive in interface IActivatablepublic void setActive(boolean active)
setActive in interface IActivatableprotected double getHeatLevel()
protected abstract boolean isBurning()
public int getBurnTimeRemainingScaled(int i)
public boolean hasFuelMin(float percentage)
public int getCurrentOutput()
public int getHeat()
public TemperatureState getTemperatureState()
protected float getPistonSpeed()
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class TileForestrypublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in class TileForestrypublic void writeData(PacketBufferForestry data)
writeData in interface IStreamablewriteData in class TileForestrypublic void readData(PacketBufferForestry data) throws java.io.IOException
readData in interface IStreamablereadData in class TileForestryjava.io.IOExceptionpublic void writeGuiData(PacketBufferForestry data)
writeGuiData in interface IStreamableGuipublic void readGuiData(PacketBufferForestry data) throws java.io.IOException
readGuiData in interface IStreamableGuijava.io.IOExceptionpublic EnergyManager getEnergyManager()
public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability,
@Nullable
net.minecraft.util.EnumFacing facing)
hasCapability in interface net.minecraftforge.common.capabilities.ICapabilityProviderhasCapability in class TileForestry@Nullable
public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
@Nullable
net.minecraft.util.EnumFacing facing)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class TileForestry