public class HeatBehaviourCustomTransition extends HeatBehaviourTransition
| Constructor and Description |
|---|
HeatBehaviourCustomTransition() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ResourceLocation |
getId()
Unique id for this behaviour, also used in NBT saving.
|
protected 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.
|
protected boolean |
transformBlockCold() |
protected boolean |
transformBlockHot() |
getExtractionProgress, tickgetFluiddeserializeNBT, equals, getBlockState, getDirection, getHeatExchanger, getPos, getTileEntity, getWorld, hashCode, serializeNBTpublic 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 HeatBehaviourTransitionconnectedHeatLogic - 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)public net.minecraft.util.ResourceLocation getId()
HeatBehaviourgetId in class HeatBehaviour<net.minecraft.tileentity.TileEntity>public boolean isApplicable()
HeatBehaviourisApplicable in class HeatBehaviourTransitionprotected int getMaxExchangedHeat()
getMaxExchangedHeat in class HeatBehaviourTransitionprotected boolean transformBlockHot()
transformBlockHot in class HeatBehaviourTransitionprotected boolean transformBlockCold()
transformBlockCold in class HeatBehaviourTransition