Class HeatBehaviourCustomTransition
java.lang.Object
me.desht.pneumaticcraft.api.heat.HeatBehaviour
me.desht.pneumaticcraft.common.heat.behaviour.HeatBehaviourLiquid
me.desht.pneumaticcraft.common.heat.behaviour.HeatBehaviourTransition
me.desht.pneumaticcraft.common.heat.behaviour.HeatBehaviourCustomTransition
- All Implemented Interfaces:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationgetId()Unique id for this behaviour, also used in NBT saving.protected intinitialize(IHeatExchangerLogic connectedHeatLogic, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) This method is called by the connectedIHeatExchangerLogicwhen it initialises itself as a hull heat exchanger; this happens when the owning block entity gets a neighbor block update.booleanReturn true when this heat behaviour is applicable for this coordinate.protected booleanprotected booleanMethods inherited from class me.desht.pneumaticcraft.common.heat.behaviour.HeatBehaviourTransition
getExtractionProgress, tickMethods inherited from class me.desht.pneumaticcraft.common.heat.behaviour.HeatBehaviourLiquid
getFluidMethods inherited from class me.desht.pneumaticcraft.api.heat.HeatBehaviour
deserializeNBT, equals, getBlockState, getCachedTileEntity, getDirection, getHeatExchanger, getPos, getWorld, hashCode, serializeNBT
-
Constructor Details
-
HeatBehaviourCustomTransition
public HeatBehaviourCustomTransition()
-
-
Method Details
-
initialize
public HeatBehaviour initialize(IHeatExchangerLogic connectedHeatLogic, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) Description copied from class:HeatBehaviourThis method is called by the connectedIHeatExchangerLogicwhen it initialises itself as a hull heat exchanger; this happens when the owning block entity gets a neighbor block update. You can override and extend this method, but be sure to call the super method!- Overrides:
initializein classHeatBehaviourTransition- Parameters:
connectedHeatLogic- the connected heat exchanger logicworld- the worldpos- block pos of the owning block entitydirection- direction of this behaviour (from the block entity's point of view)
-
getId
public net.minecraft.resources.ResourceLocation getId()Description copied from class:HeatBehaviourUnique id for this behaviour, also used in NBT saving.- Specified by:
getIdin classHeatBehaviour- Returns:
- a unique ID
-
isApplicable
public boolean isApplicable()Description copied from class:HeatBehaviourReturn true when this heat behaviour is applicable for this coordinate. World access methods can be used here (getWorld(), getPos(), getBlockState(), getTileEntity()).- Overrides:
isApplicablein classHeatBehaviourTransition- Returns:
- true if this behaviour is applicable here
-
getMaxExchangedHeat
protected int getMaxExchangedHeat()- Specified by:
getMaxExchangedHeatin classHeatBehaviourTransition
-
transformBlockHot
protected boolean transformBlockHot()- Overrides:
transformBlockHotin classHeatBehaviourTransition
-
transformBlockCold
protected boolean transformBlockCold()- Overrides:
transformBlockColdin classHeatBehaviourTransition
-