Package net.minecraft.server
Record Class WorldLoader.DataLoadContext
java.lang.Object
java.lang.Record
net.minecraft.server.WorldLoader.DataLoadContext
- Enclosing class:
- WorldLoader
public static record WorldLoader.DataLoadContext(ResourceManager resources, WorldDataConfiguration dataConfiguration, RegistryAccess.Frozen datapackWorldgen, RegistryAccess.Frozen datapackDimensions)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final WorldDataConfigurationThe field for thedataConfigurationrecord component.private final RegistryAccess.FrozenThe field for thedatapackDimensionsrecord component.private final RegistryAccess.FrozenThe field for thedatapackWorldgenrecord component.private final ResourceManagerThe field for theresourcesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionDataLoadContext(ResourceManager resources, WorldDataConfiguration dataConfiguration, RegistryAccess.Frozen datapackWorldgen, RegistryAccess.Frozen datapackDimensions) Creates an instance of aDataLoadContextrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedataConfigurationrecord component.Returns the value of thedatapackDimensionsrecord component.Returns the value of thedatapackWorldgenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresourcesrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
resourcesThe field for theresourcesrecord component.
- 
dataConfigurationThe field for thedataConfigurationrecord component.
- 
datapackWorldgenThe field for thedatapackWorldgenrecord component.
- 
datapackDimensionsThe field for thedatapackDimensionsrecord component.
 
- 
- 
Constructor Details- 
DataLoadContextpublic DataLoadContext(ResourceManager resources, WorldDataConfiguration dataConfiguration, RegistryAccess.Frozen datapackWorldgen, RegistryAccess.Frozen datapackDimensions) Creates an instance of aDataLoadContextrecord class.- Parameters:
- resources- the value for the- resourcesrecord component
- dataConfiguration- the value for the- dataConfigurationrecord component
- datapackWorldgen- the value for the- datapackWorldgenrecord component
- datapackDimensions- the value for the- datapackDimensionsrecord component
 
 
- 
- 
Method Details- 
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).
- 
resourcesReturns the value of theresourcesrecord component.- Returns:
- the value of the resourcesrecord component
 
- 
dataConfigurationReturns the value of thedataConfigurationrecord component.- Returns:
- the value of the dataConfigurationrecord component
 
- 
datapackWorldgenReturns the value of thedatapackWorldgenrecord component.- Returns:
- the value of the datapackWorldgenrecord component
 
- 
datapackDimensionsReturns the value of thedatapackDimensionsrecord component.- Returns:
- the value of the datapackDimensionsrecord component
 
 
-