Package net.minecraft.world.biome.source
Record Class MultiNoiseBiomeSource.Instance
java.lang.Object
java.lang.Record
net.minecraft.world.biome.source.MultiNoiseBiomeSource.Instance
- Record Components:
preset
-biomeRegistry
-
- Enclosing class:
MultiNoiseBiomeSource
private static record MultiNoiseBiomeSource.Instance(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomeRegistry)
extends Record
- Mappings:
Namespace Name official cig$b
intermediary net/minecraft/class_4766$class_5502
named net/minecraft/world/biome/source/MultiNoiseBiomeSource$Instance
official b
intermediary comp_274
named preset
official c
intermediary comp_275
named biomeRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebiomeRegistry
record component.static final com.mojang.serialization.MapCodec<MultiNoiseBiomeSource.Instance>
private final MultiNoiseBiomeSource.Preset
The field for thepreset
record component. -
Constructor Summary
ConstructorsConstructorDescriptionInstance
(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomeRegistry) Creates an instance of aInstance
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomeRegistry
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. -
biomeRegistry
The field for thebiomeRegistry
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcig$b;a:Lcom/mojang/serialization/MapCodec;
intermediary field_26694
Lnet/minecraft/class_4766$class_5502;field_26694:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/world/biome/source/MultiNoiseBiomeSource$Instance;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Instance
Instance(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomeRegistry) Creates an instance of aInstance
record class.- Parameters:
preset
- the value for thepreset
record componentbiomeRegistry
- the value for thebiomeRegistry
record component
-
-
Method Details
-
getBiomeSource
- Mappings:
Namespace Name Mixin selector official a
Lcig$b;a()Lcig;
intermediary method_31101
Lnet/minecraft/class_4766$class_5502;method_31101()Lnet/minecraft/class_4766;
named getBiomeSource
Lnet/minecraft/world/biome/source/MultiNoiseBiomeSource$Instance;getBiomeSource()Lnet/minecraft/world/biome/source/MultiNoiseBiomeSource;
-
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
-
biomeRegistry
Returns the value of thebiomeRegistry
record component.- Returns:
- the value of the
biomeRegistry
record component
-