Enum Class HeatExchangerManager

java.lang.Object
java.lang.Enum<HeatExchangerManager>
me.desht.pneumaticcraft.common.heat.HeatExchangerManager
All Implemented Interfaces:
Serializable, Comparable<HeatExchangerManager>, Constable, IHeatRegistry

public enum HeatExchangerManager extends Enum<HeatExchangerManager> implements IHeatRegistry
  • Enum Constant Details

  • Method Details

    • values

      public static HeatExchangerManager[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HeatExchangerManager valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getInstance

      public static HeatExchangerManager getInstance()
    • getLogic

      @Nonnull public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> getLogic(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
    • getLogic

      @Nonnull public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> getLogic(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, BiPredicate<net.minecraft.world.level.LevelAccessor,net.minecraft.core.BlockPos> blockFilter)
    • registerHeatBehaviour

      public void registerHeatBehaviour(net.minecraft.resources.ResourceLocation id, Supplier<? extends HeatBehaviour> heatBehaviour)
      Description copied from interface: IHeatRegistry
      Register a heat behaviour instance. This can be called from a FMLCommonSetupEvent handler; do not use ParallelDispatchEvent.enqueueWork(Runnable). Alternatively, if you need to override in-built behaviour (e.g. to disable automatic furnace fueling), you can register a handler in a ServerAboutToStartEvent handler.

      This is intended to add custom behaviours to certain block entities, similar to how the vanilla furnace is handled. For general blockstate transitions (on excess heat added/removed), the correct way to do this is with datapack recipes. See data/pneumaticcraft/recipes/block_heat_properties/*.json for examples.

      Specified by:
      registerHeatBehaviour in interface IHeatRegistry
      Parameters:
      id - a unique for this heat behaviour
      heatBehaviour - a heat behaviour supplier
    • makeHeatExchangerLogic

      public IHeatExchangerLogic makeHeatExchangerLogic()
      Description copied from interface: IHeatRegistry
      Create a new ticking heat exchanger logic instance for use in block entities (or potentially other ticking objects) that you create.
      Specified by:
      makeHeatExchangerLogic in interface IHeatRegistry
      Returns:
      a heat exchanger logic