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, RegistryAccess.Frozen registryAccess, WorldData worldData)
extends Record
implements AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReloadableServerResourcesThe field for thedataPackResourcesrecord component.private final RegistryAccess.FrozenThe field for theregistryAccessrecord component.private final CloseableResourceManagerThe field for theresourceManagerrecord component.private final WorldDataThe field for theworldDatarecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, RegistryAccess.Frozen registryAccess, 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.static CompletableFuture<WorldStem>load(WorldStem.InitConfig p_206912_, WorldStem.DataPackConfigSupplier p_206913_, WorldStem.WorldDataSupplier p_206914_, Executor p_206915_, Executor p_206916_) Returns the value of theregistryAccessrecord component.Returns the value of theresourceManagerrecord component.final StringtoString()Returns a string representation of this record class.voidReturns the value of theworldDatarecord component.
-
Field Details
-
resourceManager
The field for theresourceManagerrecord component. -
dataPackResources
The field for thedataPackResourcesrecord component. -
registryAccess
The field for theregistryAccessrecord component. -
worldData
The field for theworldDatarecord component.
-
-
Constructor Details
-
WorldStem
public WorldStem(CloseableResourceManager resourceManager, ReloadableServerResources dataPackResources, RegistryAccess.Frozen registryAccess, WorldData worldData) Creates an instance of aWorldStemrecord class.- Parameters:
resourceManager- the value for theresourceManagerrecord componentdataPackResources- the value for thedataPackResourcesrecord componentregistryAccess- the value for theregistryAccessrecord componentworldData- the value for theworldDatarecord component
-
-
Method Details
-
load
public static CompletableFuture<WorldStem> load(WorldStem.InitConfig p_206912_, WorldStem.DataPackConfigSupplier p_206913_, WorldStem.WorldDataSupplier p_206914_, Executor p_206915_, Executor p_206916_) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
updateGlobals
public void updateGlobals() -
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
-
registryAccess
Returns the value of theregistryAccessrecord component.- Returns:
- the value of the
registryAccessrecord component
-
worldData
Returns the value of theworldDatarecord component.- Returns:
- the value of the
worldDatarecord component
-