public abstract class HeatBehaviourTransition extends HeatBehaviourLiquid
| Constructor and Description |
|---|
HeatBehaviourTransition() |
| Modifier and Type | Method and Description |
|---|---|
double |
getExtractionProgress() |
protected abstract int |
getMaxExchangedHeat() |
HeatBehaviour |
initialize(IHeatExchangerLogic connectedHeatLogic,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction)
This method is called by the connected
IHeatExchangerLogic when it initialises itself as a hull
heat exchanger; this happens when the owning tile entity gets a neighbor block update. |
boolean |
isApplicable()
Return true when this heat behaviour is applicable for this coordinate.
|
void |
tick()
Called every tick to update this behaviour.
|
protected boolean |
transformBlockCold() |
protected boolean |
transformBlockHot() |
getFluiddeserializeNBT, equals, getBlockState, getCachedTileEntity, getDirection, getHeatExchanger, getId, getPos, getWorld, hashCode, serializeNBTpublic boolean isApplicable()
HeatBehaviourisApplicable in class HeatBehaviourpublic HeatBehaviour initialize(IHeatExchangerLogic connectedHeatLogic, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction direction)
HeatBehaviourIHeatExchangerLogic when it initialises itself as a hull
heat exchanger; this happens when the owning tile entity gets a neighbor block update. You can override
and extend this method, but be sure to call the super method!initialize in class HeatBehaviourconnectedHeatLogic - the connected heat exchanger logicworld - the worldpos - block pos of the owning tile entitydirection - direction of this behaviour (from the tile entity's point of view)protected abstract int getMaxExchangedHeat()
protected boolean transformBlockHot()
protected boolean transformBlockCold()
public void tick()
HeatBehaviourtick in class HeatBehaviourpublic double getExtractionProgress()