Package net.minecraft.server
Record Class SaveLoader
java.lang.Object
java.lang.Record
net.minecraft.server.SaveLoader
- Record Components:
resourceManager
-dataPackContents
-combinedDynamicRegistries
-saveProperties
-
- All Implemented Interfaces:
AutoCloseable
public record SaveLoader(LifecycledResourceManager resourceManager, DataPackContents dataPackContents, CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, SaveProperties saveProperties)
extends Record
implements AutoCloseable
- Mappings:
Namespace Name named net/minecraft/server/SaveLoader
intermediary net/minecraft/class_6904
official alp
named resourceManager
intermediary comp_356
official a
named dataPackContents
intermediary comp_357
official b
named combinedDynamicRegistries
intermediary comp_358
official c
named saveProperties
intermediary comp_359
official d
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CombinedDynamicRegistries
<ServerDynamicRegistryType> The field for thecombinedDynamicRegistries
record component.private final DataPackContents
The field for thedataPackContents
record component.private final LifecycledResourceManager
The field for theresourceManager
record component.private final SaveProperties
The field for thesaveProperties
record component. -
Constructor Summary
ConstructorDescriptionSaveLoader
(LifecycledResourceManager lifecycledResourceManager, DataPackContents dataPackContents, CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, SaveProperties saveProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns the value of thecombinedDynamicRegistries
record component.Returns the value of thedataPackContents
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 theresourceManager
record component.Returns the value of thesaveProperties
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
resourceManager
The field for theresourceManager
record component. -
dataPackContents
The field for thedataPackContents
record component. -
combinedDynamicRegistries
The field for thecombinedDynamicRegistries
record component. -
saveProperties
The field for thesaveProperties
record component.
-
-
Constructor Details
-
SaveLoader
public SaveLoader(LifecycledResourceManager lifecycledResourceManager, DataPackContents dataPackContents, CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, SaveProperties saveProperties)
-
-
Method Details
-
close
public void close()- Specified by:
close
in 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 theresourceManager
record component.- Returns:
- the value of the
resourceManager
record component
-
dataPackContents
Returns the value of thedataPackContents
record component.- Returns:
- the value of the
dataPackContents
record component
-
combinedDynamicRegistries
Returns the value of thecombinedDynamicRegistries
record component.- Returns:
- the value of the
combinedDynamicRegistries
record component
-
saveProperties
Returns the value of thesaveProperties
record component.- Returns:
- the value of the
saveProperties
record component
-