Package net.minecraft.server
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, WorldData worldData)
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 WorldDataThe field for theworldDatarecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, LayeredRegistryAccess<RegistryLayer> registries, WorldData worldData) 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 theworldDatarecord component.
-
Field Details
-
resourceManager
The field for theresourceManagerrecord component. -
dataPackResources
The field for thedataPackResourcesrecord component. -
registries
The field for theregistriesrecord component. -
worldData
The field for theworldDatarecord component.
-
-
Constructor Details
-
WorldStem
public WorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, LayeredRegistryAccess<RegistryLayer> registries, WorldData worldData) Creates an instance of aWorldStemrecord class.- Parameters:
resourceManager- the value for theresourceManagerrecord componentdataPackResources- the value for thedataPackResourcesrecord componentregistries- the value for theregistriesrecord componentworldData- the value for theworldDatarecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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). -
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
-
worldData
Returns the value of theworldDatarecord component.- Returns:
- the value of the
worldDatarecord component
-