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 - alu- 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 SummaryFieldsModifier and TypeFieldDescriptionprivate final CombinedDynamicRegistries<ServerDynamicRegistryType> The field for thecombinedDynamicRegistriesrecord component.private final DataPackContentsThe field for thedataPackContentsrecord component.private final LifecycledResourceManagerThe field for theresourceManagerrecord component.private final SavePropertiesThe field for thesavePropertiesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSaveLoader(LifecycledResourceManager lifecycledResourceManager, DataPackContents dataPackContents, CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, SaveProperties saveProperties) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Returns the value of thecombinedDynamicRegistriesrecord component.Returns the value of thedataPackContentsrecord 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 theresourceManagerrecord component.Returns the value of thesavePropertiesrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
resourceManagerThe field for theresourceManagerrecord component.
- 
dataPackContentsThe field for thedataPackContentsrecord component.
- 
combinedDynamicRegistriesThe field for thecombinedDynamicRegistriesrecord component.
- 
savePropertiesThe field for thesavePropertiesrecord component.
 
- 
- 
Constructor Details- 
SaveLoaderpublic SaveLoader(LifecycledResourceManager lifecycledResourceManager, DataPackContents dataPackContents, CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, SaveProperties saveProperties) 
 
- 
- 
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
 
- 
dataPackContentsReturns the value of thedataPackContentsrecord component.- Returns:
- the value of the dataPackContentsrecord component
 
- 
combinedDynamicRegistriesReturns the value of thecombinedDynamicRegistriesrecord component.- Returns:
- the value of the combinedDynamicRegistriesrecord component
 
- 
savePropertiesReturns the value of thesavePropertiesrecord component.- Returns:
- the value of the savePropertiesrecord component
 
 
-