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 Summary
Modifier and TypeFieldDescriptionprivate final WorldDataConfiguration
The field for thedataConfiguration
record component.private final RegistryAccess.Frozen
The field for thedatapackDimensions
record component.private final RegistryAccess.Frozen
The field for thedatapackWorldgen
record component.private final ResourceManager
The field for theresources
record component. -
Constructor Summary
ConstructorDescriptionDataLoadContext
(ResourceManager resources, WorldDataConfiguration dataConfiguration, RegistryAccess.Frozen datapackWorldgen, RegistryAccess.Frozen datapackDimensions) Creates an instance of aDataLoadContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataConfiguration
record component.Returns the value of thedatapackDimensions
record component.Returns the value of thedatapackWorldgen
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.Returns the value of theresources
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
resources
The field for theresources
record component. -
dataConfiguration
The field for thedataConfiguration
record component. -
datapackWorldgen
The field for thedatapackWorldgen
record component. -
datapackDimensions
The field for thedatapackDimensions
record component.
-
-
Constructor Details
-
DataLoadContext
public DataLoadContext(ResourceManager resources, WorldDataConfiguration dataConfiguration, RegistryAccess.Frozen datapackWorldgen, RegistryAccess.Frozen datapackDimensions) Creates an instance of aDataLoadContext
record class.- Parameters:
resources
- the value for theresources
record componentdataConfiguration
- the value for thedataConfiguration
record componentdatapackWorldgen
- the value for thedatapackWorldgen
record componentdatapackDimensions
- the value for thedatapackDimensions
record component
-
-
Method Details
-
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)
. -
resources
Returns the value of theresources
record component.- Returns:
- the value of the
resources
record component
-
dataConfiguration
Returns the value of thedataConfiguration
record component.- Returns:
- the value of the
dataConfiguration
record component
-
datapackWorldgen
Returns the value of thedatapackWorldgen
record component.- Returns:
- the value of the
datapackWorldgen
record component
-
datapackDimensions
Returns the value of thedatapackDimensions
record component.- Returns:
- the value of the
datapackDimensions
record component
-