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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionWorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, LayeredRegistryAccess<RegistryLayer> registries, WorldData worldData) Creates an instance of aWorldStemrecord class.
- 
Method SummaryModifier 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- 
resourceManagerThe field for theresourceManagerrecord component.
- 
dataPackResourcesThe field for thedataPackResourcesrecord component.
- 
registriesThe field for theregistriesrecord component.
- 
worldDataThe field for theworldDatarecord component.
 
- 
- 
Constructor Details- 
WorldStempublic WorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, LayeredRegistryAccess<RegistryLayer> registries, WorldData worldData) Creates an instance of aWorldStemrecord class.- Parameters:
- resourceManager- the value for the- resourceManagerrecord component
- dataPackResources- the value for the- dataPackResourcesrecord component
- registries- the value for the- registriesrecord component
- worldData- the value for the- worldDatarecord component
 
 
- 
- 
Method Details- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
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).
- 
resourceManagerReturns the value of theresourceManagerrecord component.- Returns:
- the value of the resourceManagerrecord component
 
- 
dataPackResourcesReturns the value of thedataPackResourcesrecord component.- Returns:
- the value of the dataPackResourcesrecord component
 
- 
registriesReturns the value of theregistriesrecord component.- Returns:
- the value of the registriesrecord component
 
- 
worldDataReturns the value of theworldDatarecord component.- Returns:
- the value of the worldDatarecord component
 
 
-