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
ConstructorsConstructorDescriptionPNC2MekHeatAdapter(net.minecraft.core.Direction side, net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> heatExchanger) Creates an instance of aPNC2MekHeatAdapterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgetHeatCapacitorCount(net.minecraft.core.Direction direction) doublegetHeatCapacity(int i, net.minecraft.core.Direction direction) net.minecraft.core.DirectiondoublegetInverseConduction(int i, net.minecraft.core.Direction direction) doublegetTemperature(int i, net.minecraft.core.Direction direction) voidhandleHeat(int i, double amount, net.minecraft.core.Direction direction) final inthashCode()Returns a hash code value for this object.net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic>Returns the value of theheatExchangerrecord component.net.minecraft.core.Directionside()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mekanism.api.heat.IHeatHandler
getTotalHeatCapacity, getTotalInverseConduction, getTotalTemperature, handleHeatMethods 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 aPNC2MekHeatAdapterrecord class.- Parameters:
side- the value for thesiderecord componentheatExchanger- the value for theheatExchangerrecord component
-
-
Method Details
-
getHeatSideFor
@Nullable public net.minecraft.core.Direction getHeatSideFor()- Specified by:
getHeatSideForin interfacemekanism.api.heat.ISidedHeatHandler
-
getHeatCapacitorCount
public int getHeatCapacitorCount(@Nullable net.minecraft.core.Direction direction) - Specified by:
getHeatCapacitorCountin interfacemekanism.api.heat.ISidedHeatHandler
-
getTemperature
public double getTemperature(int i, @Nullable net.minecraft.core.Direction direction) - Specified by:
getTemperaturein interfacemekanism.api.heat.ISidedHeatHandler
-
getInverseConduction
public double getInverseConduction(int i, @Nullable net.minecraft.core.Direction direction) - Specified by:
getInverseConductionin interfacemekanism.api.heat.ISidedHeatHandler
-
getHeatCapacity
public double getHeatCapacity(int i, @Nullable net.minecraft.core.Direction direction) - Specified by:
getHeatCapacityin interfacemekanism.api.heat.ISidedHeatHandler
-
handleHeat
public void handleHeat(int i, double amount, @Nullable net.minecraft.core.Direction direction) - Specified by:
handleHeatin interfacemekanism.api.heat.ISidedHeatHandler
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
side
public net.minecraft.core.Direction side()Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-
heatExchanger
Returns the value of theheatExchangerrecord component.- Returns:
- the value of the
heatExchangerrecord component
-