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 SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final WorldDataConfigurationThe field for thedataConfigurationrecord component.The field for thedatapackDimensionsrecord component.private final ReloadableServerResourcesThe field for thedataPackResourcesrecord component.private final WorldOptionsThe field for theoptionsrecord component.private final WorldDimensionsThe field for theselectedDimensionsrecord component.private final LayeredRegistryAccess<RegistryLayer>The field for theworldgenRegistriesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionWorldCreationContext(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 aWorldCreationContextrecord class.WorldCreationContext(WorldOptions p_249836_, WorldDimensions p_250641_, LayeredRegistryAccess<RegistryLayer> p_251794_, ReloadableServerResources p_250560_, WorldDataConfiguration p_248539_) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedataConfigurationrecord component.Returns the value of thedatapackDimensionsrecord component.Returns the value of thedataPackResourcesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.options()Returns the value of theoptionsrecord component.Returns the value of theselectedDimensionsrecord component.final StringtoString()Returns a string representation of this record class.withDataConfiguration(WorldDataConfiguration dataConfiguration) withOptions(WorldCreationContext.OptionsModifier p_252288_) withSettings(WorldOptions p_249492_, WorldDimensions p_250298_) Returns the value of theworldgenRegistriesrecord component.
- 
Field Details- 
optionsThe field for theoptionsrecord component.
- 
datapackDimensionsThe field for thedatapackDimensionsrecord component.
- 
selectedDimensionsThe field for theselectedDimensionsrecord component.
- 
worldgenRegistriesThe field for theworldgenRegistriesrecord component.
- 
dataPackResourcesThe field for thedataPackResourcesrecord component.
- 
dataConfigurationThe field for thedataConfigurationrecord component.
 
- 
- 
Constructor Details- 
WorldCreationContextpublic WorldCreationContext(WorldGenSettings p_249130_, LayeredRegistryAccess<RegistryLayer> p_248513_, ReloadableServerResources p_251786_, WorldDataConfiguration p_248593_) 
- 
WorldCreationContextpublic WorldCreationContext(WorldOptions p_249836_, WorldDimensions p_250641_, LayeredRegistryAccess<RegistryLayer> p_251794_, ReloadableServerResources p_250560_, WorldDataConfiguration p_248539_) 
- 
WorldCreationContextpublic WorldCreationContext(WorldOptions options, Registry<LevelStem> datapackDimensions, WorldDimensions selectedDimensions, LayeredRegistryAccess<RegistryLayer> worldgenRegistries, ReloadableServerResources dataPackResources, WorldDataConfiguration dataConfiguration) Creates an instance of aWorldCreationContextrecord class.- Parameters:
- options- the value for the- optionsrecord component
- datapackDimensions- the value for the- datapackDimensionsrecord component
- selectedDimensions- the value for the- selectedDimensionsrecord component
- worldgenRegistries- the value for the- worldgenRegistriesrecord component
- dataPackResources- the value for the- dataPackResourcesrecord component
- dataConfiguration- the value for the- dataConfigurationrecord component
 
 
- 
- 
Method Details- 
withSettings
- 
withOptions
- 
withDimensions
- 
withDataConfiguration
- 
worldgenLoadContext
- 
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).
- 
optionsReturns the value of theoptionsrecord component.- Returns:
- the value of the optionsrecord component
 
- 
datapackDimensionsReturns the value of thedatapackDimensionsrecord component.- Returns:
- the value of the datapackDimensionsrecord component
 
- 
selectedDimensionsReturns the value of theselectedDimensionsrecord component.- Returns:
- the value of the selectedDimensionsrecord component
 
- 
worldgenRegistriesReturns the value of theworldgenRegistriesrecord component.- Returns:
- the value of the worldgenRegistriesrecord component
 
- 
dataPackResourcesReturns the value of thedataPackResourcesrecord component.- Returns:
- the value of the dataPackResourcesrecord component
 
- 
dataConfigurationReturns the value of thedataConfigurationrecord component.- Returns:
- the value of the dataConfigurationrecord component
 
 
-