Package net.minecraft.client.world
Record Class GeneratorOptionsHolder
java.lang.Object
java.lang.Record
net.minecraft.client.world.GeneratorOptionsHolder
- Record Components:
generatorOptions
-worldSettingsStability
-dynamicRegistryManager
-dataPackContents
-
@Environment(CLIENT)
public record GeneratorOptionsHolder(GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle worldSettingsStability, DynamicRegistryManager.Immutable dynamicRegistryManager, DataPackContents dataPackContents)
extends Record
- Mappings:
Namespace Name official eoh
intermediary net/minecraft/class_7193
named net/minecraft/client/world/GeneratorOptionsHolder
official a
intermediary comp_616
named generatorOptions
official b
intermediary comp_617
named worldSettingsStability
official c
intermediary comp_618
named dynamicRegistryManager
official d
intermediary comp_619
named dataPackContents
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DataPackContents
The field for thedataPackContents
record component.private final DynamicRegistryManager.Immutable
The field for thedynamicRegistryManager
record component.private final GeneratorOptions
The field for thegeneratorOptions
record component.private final com.mojang.serialization.Lifecycle
The field for theworldSettingsStability
record component. -
Constructor Summary
ConstructorDescriptionGeneratorOptionsHolder
(GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle, DynamicRegistryManager.Immutable immutable, DataPackContents dataPackContents) -
Method Summary
Modifier and TypeMethodDescriptionapply
(GeneratorOptionsHolder.Modifier modifier) Returns the value of thedataPackContents
record component.Returns the value of thedynamicRegistryManager
record component.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.with
(GeneratorOptions generatorOptions) com.mojang.serialization.Lifecycle
Returns the value of theworldSettingsStability
record component.
-
Field Details
-
generatorOptions
The field for thegeneratorOptions
record component. -
worldSettingsStability
private final com.mojang.serialization.Lifecycle worldSettingsStabilityThe field for theworldSettingsStability
record component. -
dynamicRegistryManager
The field for thedynamicRegistryManager
record component. -
dataPackContents
The field for thedataPackContents
record component.
-
-
Constructor Details
-
GeneratorOptionsHolder
public GeneratorOptionsHolder(GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle, DynamicRegistryManager.Immutable immutable, DataPackContents dataPackContents)
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector official a
Leoh;a(Ldao;)Leoh;
intermediary method_41864
Lnet/minecraft/class_7193;method_41864(Lnet/minecraft/class_5285;)Lnet/minecraft/class_7193;
named with
Lnet/minecraft/client/world/GeneratorOptionsHolder;with(Lnet/minecraft/world/gen/GeneratorOptions;)Lnet/minecraft/client/world/GeneratorOptionsHolder;
-
apply
- Mappings:
Namespace Name Mixin selector official a
Leoh;a(Leoh$a;)Leoh;
intermediary method_41865
Lnet/minecraft/class_7193;method_41865(Lnet/minecraft/class_7193$class_7194;)Lnet/minecraft/class_7193;
named apply
Lnet/minecraft/client/world/GeneratorOptionsHolder;apply(Lnet/minecraft/client/world/GeneratorOptionsHolder$Modifier;)Lnet/minecraft/client/world/GeneratorOptionsHolder;
-
apply
- Mappings:
Namespace Name Mixin selector official a
Leoh;a(Leoh$b;)Leoh;
intermediary method_41866
Lnet/minecraft/class_7193;method_41866(Lnet/minecraft/class_7193$class_7195;)Lnet/minecraft/class_7193;
named apply
Lnet/minecraft/client/world/GeneratorOptionsHolder;apply(Lnet/minecraft/client/world/GeneratorOptionsHolder$RegistryAwareModifier;)Lnet/minecraft/client/world/GeneratorOptionsHolder;
-
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
-
worldSettingsStability
public com.mojang.serialization.Lifecycle worldSettingsStability()Returns the value of theworldSettingsStability
record component.- Returns:
- the value of the
worldSettingsStability
record component
-
dynamicRegistryManager
Returns the value of thedynamicRegistryManager
record component.- Returns:
- the value of the
dynamicRegistryManager
record component
-
dataPackContents
Returns the value of thedataPackContents
record component.- Returns:
- the value of the
dataPackContents
record component
-