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 SummaryFieldsModifier and TypeFieldDescriptionThe field for thebiomeRegistryrecord component.static final com.mojang.serialization.MapCodec<MultiNoiseBiomeSource.Instance>private final MultiNoiseBiomeSource.PresetThe field for thepresetrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionInstance(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomeRegistry) Creates an instance of aInstancerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thebiomeRegistryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.preset()Returns the value of thepresetrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
presetThe field for thepresetrecord component.
- 
biomeRegistryThe field for thebiomeRegistryrecord 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- 
InstanceInstance(MultiNoiseBiomeSource.Preset preset, Registry<Biome> biomeRegistry) Creates an instance of aInstancerecord class.- Parameters:
- preset- the value for the- presetrecord component
- biomeRegistry- the value for the- biomeRegistryrecord 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;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
presetReturns the value of thepresetrecord component.- Returns:
- the value of the presetrecord component
 
- 
biomeRegistryReturns the value of thebiomeRegistryrecord component.- Returns:
- the value of the biomeRegistryrecord component
 
 
-