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 eoiintermediary net/minecraft/class_7193named net/minecraft/client/world/GeneratorOptionsHolderofficial aintermediary comp_616named generatorOptionsofficial bintermediary comp_617named worldSettingsStabilityofficial cintermediary comp_618named dynamicRegistryManagerofficial dintermediary comp_619named dataPackContents
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataPackContentsThe field for thedataPackContentsrecord component.private final DynamicRegistryManager.ImmutableThe field for thedynamicRegistryManagerrecord component.private final GeneratorOptionsThe field for thegeneratorOptionsrecord component.private final com.mojang.serialization.LifecycleThe field for theworldSettingsStabilityrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGeneratorOptionsHolder(GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle, DynamicRegistryManager.Immutable immutable, DataPackContents dataPackContents) -
Method Summary
Modifier and TypeMethodDescriptionapply(GeneratorOptionsHolder.Modifier modifier) Returns the value of thedataPackContentsrecord component.Returns the value of thedynamicRegistryManagerrecord component.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.with(GeneratorOptions generatorOptions) com.mojang.serialization.LifecycleReturns the value of theworldSettingsStabilityrecord component.
-
Field Details
-
generatorOptions
The field for thegeneratorOptionsrecord component. -
worldSettingsStability
private final com.mojang.serialization.Lifecycle worldSettingsStabilityThe field for theworldSettingsStabilityrecord component. -
dynamicRegistryManager
The field for thedynamicRegistryManagerrecord component. -
dataPackContents
The field for thedataPackContentsrecord 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 aLeoi;a(Ldap;)Leoi;intermediary method_41864Lnet/minecraft/class_7193;method_41864(Lnet/minecraft/class_5285;)Lnet/minecraft/class_7193;named withLnet/minecraft/client/world/GeneratorOptionsHolder;with(Lnet/minecraft/world/gen/GeneratorOptions;)Lnet/minecraft/client/world/GeneratorOptionsHolder;
-
apply
- Mappings:
Namespace Name Mixin selector official aLeoi;a(Leoi$a;)Leoi;intermediary method_41865Lnet/minecraft/class_7193;method_41865(Lnet/minecraft/class_7193$class_7194;)Lnet/minecraft/class_7193;named applyLnet/minecraft/client/world/GeneratorOptionsHolder;apply(Lnet/minecraft/client/world/GeneratorOptionsHolder$Modifier;)Lnet/minecraft/client/world/GeneratorOptionsHolder;
-
apply
- Mappings:
Namespace Name Mixin selector official aLeoi;a(Leoi$b;)Leoi;intermediary method_41866Lnet/minecraft/class_7193;method_41866(Lnet/minecraft/class_7193$class_7195;)Lnet/minecraft/class_7193;named applyLnet/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 thegeneratorOptionsrecord component.- Returns:
- the value of the
generatorOptionsrecord component
-
worldSettingsStability
public com.mojang.serialization.Lifecycle worldSettingsStability()Returns the value of theworldSettingsStabilityrecord component.- Returns:
- the value of the
worldSettingsStabilityrecord component
-
dynamicRegistryManager
Returns the value of thedynamicRegistryManagerrecord component.- Returns:
- the value of the
dynamicRegistryManagerrecord component
-
dataPackContents
Returns the value of thedataPackContentsrecord component.- Returns:
- the value of the
dataPackContentsrecord component
-