Package net.minecraft.world.level
Record Class WorldGenSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.WorldGenSettings
- Record Components:
- generatorOptions-
- dimensionOptionsRegistryHolder-
public record WorldGenSettings(GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/world/level/WorldGenSettings- intermediary - net/minecraft/class_7726- official - edp- named - generatorOptions- intermediary - comp_1019- official - b- named - dimensionOptionsRegistryHolder- intermediary - comp_1020- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WorldGenSettings> private final DimensionOptionsRegistryHolderThe field for thedimensionOptionsRegistryHolderrecord component.private final GeneratorOptionsThe field for thegeneratorOptionsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionWorldGenSettings(GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) Creates an instance of aWorldGenSettingsrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedimensionOptionsRegistryHolderrecord component.static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DynamicRegistryManager dynamicRegistryManager) static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorOptionsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
generatorOptionsThe field for thegeneratorOptionsrecord component.
- 
dimensionOptionsRegistryHolderThe field for thedimensionOptionsRegistryHolderrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/world/level/WorldGenSettings;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_40366- Lnet/minecraft/class_7726;field_40366:Lcom/mojang/serialization/Codec;- official - a- Ledp;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
WorldGenSettingspublic WorldGenSettings(GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) Creates an instance of aWorldGenSettingsrecord class.- Parameters:
- generatorOptions- the value for the- generatorOptionsrecord component
- dimensionOptionsRegistryHolder- the value for the- dimensionOptionsRegistryHolderrecord component
 
 
- 
- 
Method Details- 
encodepublic static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) - Mappings:
- Namespace - Name - Mixin selector - named - encode- Lnet/minecraft/world/level/WorldGenSettings;encode(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;)Lcom/mojang/serialization/DataResult;- intermediary - method_45538- Lnet/minecraft/class_7726;method_45538(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5285;Lnet/minecraft/class_7723;)Lcom/mojang/serialization/DataResult;- official - a- Ledp;a(Lcom/mojang/serialization/DynamicOps;Ledr;Ledo;)Lcom/mojang/serialization/DataResult;
 
- 
encodepublic static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DynamicRegistryManager dynamicRegistryManager) - Mappings:
- Namespace - Name - Mixin selector - named - encode- Lnet/minecraft/world/level/WorldGenSettings;encode(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/registry/DynamicRegistryManager;)Lcom/mojang/serialization/DataResult;- intermediary - method_45539- Lnet/minecraft/class_7726;method_45539(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5285;Lnet/minecraft/class_5455;)Lcom/mojang/serialization/DataResult;- official - a- Ledp;a(Lcom/mojang/serialization/DynamicOps;Ledr;Lkf;)Lcom/mojang/serialization/DataResult;
 
- 
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).
- 
generatorOptionsReturns the value of thegeneratorOptionsrecord component.- Returns:
- the value of the generatorOptionsrecord component
 
- 
dimensionOptionsRegistryHolderReturns the value of thedimensionOptionsRegistryHolderrecord component.- Returns:
- the value of the dimensionOptionsRegistryHolderrecord component
 
 
-