Record Class WorldCreationContext
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screens.worldselection.WorldCreationContext
public record WorldCreationContext(WorldOptions options, Registry<LevelStem> datapackDimensions, WorldDimensions selectedDimensions, LayeredRegistryAccess<RegistryLayer> worldgenRegistries, ReloadableServerResources dataPackResources, WorldDataConfiguration dataConfiguration)
extends Record
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final WorldDataConfiguration
The field for thedataConfiguration
record component.The field for thedatapackDimensions
record component.private final ReloadableServerResources
The field for thedataPackResources
record component.private final WorldOptions
The field for theoptions
record component.private final WorldDimensions
The field for theselectedDimensions
record component.private final LayeredRegistryAccess<RegistryLayer>
The field for theworldgenRegistries
record component. -
Constructor Summary
ConstructorDescriptionWorldCreationContext
(WorldGenSettings p_249130_, LayeredRegistryAccess<RegistryLayer> p_248513_, ReloadableServerResources p_251786_, WorldDataConfiguration p_248593_) WorldCreationContext
(WorldOptions options, Registry<LevelStem> datapackDimensions, WorldDimensions selectedDimensions, LayeredRegistryAccess<RegistryLayer> worldgenRegistries, ReloadableServerResources dataPackResources, WorldDataConfiguration dataConfiguration) Creates an instance of aWorldCreationContext
record class.WorldCreationContext
(WorldOptions p_249836_, WorldDimensions p_250641_, LayeredRegistryAccess<RegistryLayer> p_251794_, ReloadableServerResources p_250560_, WorldDataConfiguration p_248539_) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataConfiguration
record component.Returns the value of thedatapackDimensions
record component.Returns the value of thedataPackResources
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.options()
Returns the value of theoptions
record component.Returns the value of theselectedDimensions
record component.final String
toString()
Returns a string representation of this record class.withOptions
(WorldCreationContext.OptionsModifier p_252288_) withSettings
(WorldOptions p_249492_, WorldDimensions p_250298_) Returns the value of theworldgenRegistries
record component.
-
Field Details
-
options
The field for theoptions
record component. -
datapackDimensions
The field for thedatapackDimensions
record component. -
selectedDimensions
The field for theselectedDimensions
record component. -
worldgenRegistries
The field for theworldgenRegistries
record component. -
dataPackResources
The field for thedataPackResources
record component. -
dataConfiguration
The field for thedataConfiguration
record component.
-
-
Constructor Details
-
WorldCreationContext
public WorldCreationContext(WorldGenSettings p_249130_, LayeredRegistryAccess<RegistryLayer> p_248513_, ReloadableServerResources p_251786_, WorldDataConfiguration p_248593_) -
WorldCreationContext
public WorldCreationContext(WorldOptions p_249836_, WorldDimensions p_250641_, LayeredRegistryAccess<RegistryLayer> p_251794_, ReloadableServerResources p_250560_, WorldDataConfiguration p_248539_) -
WorldCreationContext
public WorldCreationContext(WorldOptions options, Registry<LevelStem> datapackDimensions, WorldDimensions selectedDimensions, LayeredRegistryAccess<RegistryLayer> worldgenRegistries, ReloadableServerResources dataPackResources, WorldDataConfiguration dataConfiguration) Creates an instance of aWorldCreationContext
record class.- Parameters:
options
- the value for theoptions
record componentdatapackDimensions
- the value for thedatapackDimensions
record componentselectedDimensions
- the value for theselectedDimensions
record componentworldgenRegistries
- the value for theworldgenRegistries
record componentdataPackResources
- the value for thedataPackResources
record componentdataConfiguration
- the value for thedataConfiguration
record component
-
-
Method Details
-
withSettings
-
withOptions
-
withDimensions
-
worldgenLoadContext
-
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)
. -
options
Returns the value of theoptions
record component.- Returns:
- the value of the
options
record component
-
datapackDimensions
Returns the value of thedatapackDimensions
record component.- Returns:
- the value of the
datapackDimensions
record component
-
selectedDimensions
Returns the value of theselectedDimensions
record component.- Returns:
- the value of the
selectedDimensions
record component
-
worldgenRegistries
Returns the value of theworldgenRegistries
record component.- Returns:
- the value of the
worldgenRegistries
record component
-
dataPackResources
Returns the value of thedataPackResources
record component.- Returns:
- the value of the
dataPackResources
record component
-
dataConfiguration
Returns the value of thedataConfiguration
record component.- Returns:
- the value of the
dataConfiguration
record component
-