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 official dhv
intermediary net/minecraft/class_7726
named net/minecraft/world/level/WorldGenSettings
official b
intermediary comp_1019
named generatorOptions
official c
intermediary comp_1020
named dimensionOptionsRegistryHolder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WorldGenSettings>
private final DimensionOptionsRegistryHolder
The field for thedimensionOptionsRegistryHolder
record component.private final GeneratorOptions
The field for thegeneratorOptions
record component. -
Constructor Summary
ConstructorDescriptionWorldGenSettings
(GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) Creates an instance of aWorldGenSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionOptionsRegistryHolder
record 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 boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegeneratorOptions
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
generatorOptions
The field for thegeneratorOptions
record component. -
dimensionOptionsRegistryHolder
The field for thedimensionOptionsRegistryHolder
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldhv;a:Lcom/mojang/serialization/Codec;
intermediary field_40366
Lnet/minecraft/class_7726;field_40366:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/level/WorldGenSettings;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
WorldGenSettings
public WorldGenSettings(GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) Creates an instance of aWorldGenSettings
record class.- Parameters:
generatorOptions
- the value for thegeneratorOptions
record componentdimensionOptionsRegistryHolder
- the value for thedimensionOptionsRegistryHolder
record component
-
-
Method Details
-
encode
public static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) - Mappings:
Namespace Name Mixin selector official a
Ldhv;a(Lcom/mojang/serialization/DynamicOps;Ldhx;Ldhu;)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;
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;
-
encode
public static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DynamicRegistryManager dynamicRegistryManager) - Mappings:
Namespace Name Mixin selector official a
Ldhv;a(Lcom/mojang/serialization/DynamicOps;Ldhx;Lhr;)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;
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;
-
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)
. -
generatorOptions
Returns the value of thegeneratorOptions
record component.- Returns:
- the value of the
generatorOptions
record component
-
dimensionOptionsRegistryHolder
Returns the value of thedimensionOptionsRegistryHolder
record component.- Returns:
- the value of the
dimensionOptionsRegistryHolder
record component
-