Record Class MeltingPoint
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.api.MeltingPoint
- All Implemented Interfaces:
io.github.pylonmc.rebar.fluid.RebarFluidTag
public record MeltingPoint(double temperature)
extends Record
implements io.github.pylonmc.rebar.fluid.RebarFluidTag
-
Constructor Summary
ConstructorsConstructorDescriptionMeltingPoint(double temperature) Creates an instance of aMeltingPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull net.kyori.adventure.text.Componentfinal inthashCode()Returns a hash code value for this object.doubleReturns the value of thetemperaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MeltingPoint
public MeltingPoint(double temperature) Creates an instance of aMeltingPointrecord class.- Parameters:
temperature- the value for thetemperaturerecord component
-
-
Method Details
-
getDisplayText
@NotNull public @NotNull net.kyori.adventure.text.Component getDisplayText()- Specified by:
getDisplayTextin interfaceio.github.pylonmc.rebar.fluid.RebarFluidTag
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
temperature
public double temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-