Class HeatBehaviourCustomTransition

All Implemented Interfaces:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class HeatBehaviourCustomTransition extends HeatBehaviourTransition
  • 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: HeatBehaviour
      This method is called by the connected IHeatExchangerLogic when 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:
      initialize in class HeatBehaviourTransition
      Parameters:
      connectedHeatLogic - the connected heat exchanger logic
      world - the world
      pos - block pos of the owning block entity
      direction - direction of this behaviour (from the block entity's point of view)
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Description copied from class: HeatBehaviour
      Unique id for this behaviour, also used in NBT saving.
      Specified by:
      getId in class HeatBehaviour
      Returns:
      a unique ID
    • isApplicable

      public boolean isApplicable()
      Description copied from class: HeatBehaviour
      Return true when this heat behaviour is applicable for this coordinate. World access methods can be used here (getWorld(), getPos(), getBlockState(), getTileEntity()).
      Overrides:
      isApplicable in class HeatBehaviourTransition
      Returns:
      true if this behaviour is applicable here
    • getMaxExchangedHeat

      protected int getMaxExchangedHeat()
      Specified by:
      getMaxExchangedHeat in class HeatBehaviourTransition
    • transformBlockHot

      protected boolean transformBlockHot()
      Overrides:
      transformBlockHot in class HeatBehaviourTransition
    • transformBlockCold

      protected boolean transformBlockCold()
      Overrides:
      transformBlockCold in class HeatBehaviourTransition