Record Class PNC2MekHeatProvider.PNC2MekHeatAdapter

java.lang.Object
java.lang.Record
me.desht.pneumaticcraft.common.thirdparty.mekanism.PNC2MekHeatProvider.PNC2MekHeatAdapter
All Implemented Interfaces:
mekanism.api.heat.IHeatHandler, mekanism.api.heat.ISidedHeatHandler
Enclosing class:
PNC2MekHeatProvider

public static record PNC2MekHeatProvider.PNC2MekHeatAdapter(net.minecraft.core.Direction side, net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> heatExchanger) extends Record implements mekanism.api.heat.ISidedHeatHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
    PNC2MekHeatAdapter(net.minecraft.core.Direction side, net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> heatExchanger)
    Creates an instance of a PNC2MekHeatAdapter record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    getHeatCapacitorCount(net.minecraft.core.Direction direction)
     
    double
    getHeatCapacity(int i, net.minecraft.core.Direction direction)
     
    net.minecraft.core.Direction
     
    double
    getInverseConduction(int i, net.minecraft.core.Direction direction)
     
    double
    getTemperature(int i, net.minecraft.core.Direction direction)
     
    void
    handleHeat(int i, double amount, net.minecraft.core.Direction direction)
     
    final int
    Returns a hash code value for this object.
    net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic>
    Returns the value of the heatExchanger record component.
    net.minecraft.core.Direction
    Returns the value of the side record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface mekanism.api.heat.IHeatHandler

    getTotalHeatCapacity, getTotalInverseConduction, getTotalTemperature, handleHeat

    Methods inherited from interface mekanism.api.heat.ISidedHeatHandler

    getHeatCapacitorCount, getHeatCapacity, getInverseConduction, getTemperature, getTotalHeatCapacity, getTotalInverseConductionCoefficient, getTotalTemperature, handleHeat, handleHeat
  • Constructor Details

    • PNC2MekHeatAdapter

      public PNC2MekHeatAdapter(net.minecraft.core.Direction side, net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> heatExchanger)
      Creates an instance of a PNC2MekHeatAdapter record class.
      Parameters:
      side - the value for the side record component
      heatExchanger - the value for the heatExchanger record component
  • Method Details

    • getHeatSideFor

      @Nullable public net.minecraft.core.Direction getHeatSideFor()
      Specified by:
      getHeatSideFor in interface mekanism.api.heat.ISidedHeatHandler
    • getHeatCapacitorCount

      public int getHeatCapacitorCount(@Nullable net.minecraft.core.Direction direction)
      Specified by:
      getHeatCapacitorCount in interface mekanism.api.heat.ISidedHeatHandler
    • getTemperature

      public double getTemperature(int i, @Nullable net.minecraft.core.Direction direction)
      Specified by:
      getTemperature in interface mekanism.api.heat.ISidedHeatHandler
    • getInverseConduction

      public double getInverseConduction(int i, @Nullable net.minecraft.core.Direction direction)
      Specified by:
      getInverseConduction in interface mekanism.api.heat.ISidedHeatHandler
    • getHeatCapacity

      public double getHeatCapacity(int i, @Nullable net.minecraft.core.Direction direction)
      Specified by:
      getHeatCapacity in interface mekanism.api.heat.ISidedHeatHandler
    • handleHeat

      public void handleHeat(int i, double amount, @Nullable net.minecraft.core.Direction direction)
      Specified by:
      handleHeat in interface mekanism.api.heat.ISidedHeatHandler
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • side

      public net.minecraft.core.Direction side()
      Returns the value of the side record component.
      Returns:
      the value of the side record component
    • heatExchanger

      public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> heatExchanger()
      Returns the value of the heatExchanger record component.
      Returns:
      the value of the heatExchanger record component