Class HeatRegistrationEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
me.desht.pneumaticcraft.api.heat.HeatRegistrationEvent

@Deprecated(forRemoval=true) public class HeatRegistrationEvent extends net.minecraftforge.eventbus.api.Event
Deprecated, for removal: This API element is subject to removal in a future version.
will be removed in 1.19. This should be done purely by datapack now
Fired when block heat properties are loaded from datapacks. This event gives an opportunity to add custom block heat properties and behaviours in code.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final IHeatRegistry
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registerBlockExchanger(net.minecraft.world.level.block.Block block, double temperature, double thermalResistance)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Register a block as a heat exchanger.

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • registry

      protected final IHeatRegistry registry
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • HeatRegistrationEvent

      public HeatRegistrationEvent(IHeatRegistry registry)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • registerBlockExchanger

      public void registerBlockExchanger(net.minecraft.world.level.block.Block block, double temperature, double thermalResistance)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Register a block as a heat exchanger.

      Note: the preferred way (and only way if you want blockstate transitions) to do this is with datapack recipes. See data/pneumaticcraft/recipes/block_heat_properties/*.json

      Parameters:
      block - the block
      temperature - the block's temperature
      thermalResistance - the thermal resistance, i.e. how quickly heat will be transferred