Package net.minecraft.world.level.biome
Record Class MultiNoiseBiomeSource.PresetInstance
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.MultiNoiseBiomeSource.PresetInstance
- Enclosing class:
- MultiNoiseBiomeSource
static record MultiNoiseBiomeSource.PresetInstance(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomes)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionThe field for thebiomes
record component.static final com.mojang.serialization.MapCodec<MultiNoiseBiomeSource.PresetInstance>
private final MultiNoiseBiomeSource.Preset
The field for thepreset
record component. -
Constructor Summary
ConstructorDescriptionPresetInstance
(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomes) Creates an instance of aPresetInstance
record class. -
Method Summary
Modifier and TypeMethodDescriptionbiomes()
Returns the value of thebiomes
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.preset()
Returns the value of thepreset
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
preset
The field for thepreset
record component. -
biomes
The field for thebiomes
record component. -
CODEC
-
-
Constructor Details
-
PresetInstance
PresetInstance(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomes) Creates an instance of aPresetInstance
record class.- Parameters:
preset
- the value for thepreset
record componentbiomes
- the value for thebiomes
record component
-
-
Method Details
-
biomeSource
-
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)
. -
preset
Returns the value of thepreset
record component.- Returns:
- the value of the
preset
record component
-
biomes
Returns the value of thebiomes
record component.- Returns:
- the value of the
biomes
record component
-