Record Class WorldStem
java.lang.Object
java.lang.Record
net.minecraft.server.WorldStem
- All Implemented Interfaces:
AutoCloseable
public record WorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, LayeredRegistryAccess<RegistryLayer> registries, LevelDataAndDimensions.WorldDataAndGenSettings worldDataAndGenSettings)
extends Record
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReloadableServerResourcesThe field for thedataPackResourcesrecord component.private final LayeredRegistryAccess<RegistryLayer> The field for theregistriesrecord component.private final CloseableResourceManagerThe field for theresourceManagerrecord component.private final LevelDataAndDimensions.WorldDataAndGenSettingsThe field for theworldDataAndGenSettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, LayeredRegistryAccess<RegistryLayer> registries, LevelDataAndDimensions.WorldDataAndGenSettings worldDataAndGenSettings) Creates an instance of aWorldStemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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.Returns the value of theregistriesrecord component.Returns the value of theresourceManagerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworldDataAndGenSettingsrecord component.
-
Field Details
-
resourceManager
The field for theresourceManagerrecord component. -
dataPackResources
The field for thedataPackResourcesrecord component. -
registries
The field for theregistriesrecord component. -
worldDataAndGenSettings
The field for theworldDataAndGenSettingsrecord component.
-
-
Constructor Details
-
WorldStem
public WorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, LayeredRegistryAccess<RegistryLayer> registries, LevelDataAndDimensions.WorldDataAndGenSettings worldDataAndGenSettings) Creates an instance of aWorldStemrecord class.- Parameters:
resourceManager- the value for theresourceManagerrecord componentdataPackResources- the value for thedataPackResourcesrecord componentregistries- the value for theregistriesrecord componentworldDataAndGenSettings- the value for theworldDataAndGenSettingsrecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
toString
-
hashCode
-
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). -
resourceManager
Returns the value of theresourceManagerrecord component.- Returns:
- the value of the
resourceManagerrecord component
-
dataPackResources
Returns the value of thedataPackResourcesrecord component.- Returns:
- the value of the
dataPackResourcesrecord component
-
registries
Returns the value of theregistriesrecord component.- Returns:
- the value of the
registriesrecord component
-
worldDataAndGenSettings
Returns the value of theworldDataAndGenSettingsrecord component.- Returns:
- the value of the
worldDataAndGenSettingsrecord component
-