Record Class NoiseGeneratorSettings.DebugFunctionEntry
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseGeneratorSettings.DebugFunctionEntry
- Enclosing class:
NoiseGeneratorSettings
public static record NoiseGeneratorSettings.DebugFunctionEntry(String label, DensityFunction function)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoiseGeneratorSettings.DebugFunctionEntry> private final DensityFunctionThe field for thefunctionrecord component.private final StringThe field for thelabelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDebugFunctionEntry(String label, DensityFunction function) Creates an instance of aDebugFunctionEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
label
The field for thelabelrecord component. -
function
The field for thefunctionrecord component. -
CODEC
-
-
Constructor Details
-
DebugFunctionEntry
Creates an instance of aDebugFunctionEntryrecord class.- Parameters:
label- the value for thelabelrecord componentfunction- the value for thefunctionrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-