Package net.minecraft.server
Record Class WorldLoader.PackConfig
java.lang.Object
java.lang.Record
net.minecraft.server.WorldLoader.PackConfig
- Enclosing class:
- WorldLoader
public static record WorldLoader.PackConfig(PackRepository packRepository, WorldDataConfiguration initialDataConfig, boolean safeMode, boolean initMode)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final WorldDataConfigurationThe field for theinitialDataConfigrecord component.private final booleanThe field for theinitModerecord component.private final PackRepositoryThe field for thepackRepositoryrecord component.private final booleanThe field for thesafeModerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPackConfig(PackRepository packRepository, WorldDataConfiguration initialDataConfig, boolean safeMode, boolean initMode) Creates an instance of aPackConfigrecord class.
- 
Method SummaryModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Pair<WorldDataConfiguration,CloseableResourceManager> 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 theinitialDataConfigrecord component.booleaninitMode()Returns the value of theinitModerecord component.Returns the value of thepackRepositoryrecord component.booleansafeMode()Returns the value of thesafeModerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
packRepositoryThe field for thepackRepositoryrecord component.
- 
initialDataConfigThe field for theinitialDataConfigrecord component.
- 
safeModeprivate final boolean safeModeThe field for thesafeModerecord component.
- 
initModeprivate final boolean initModeThe field for theinitModerecord component.
 
- 
- 
Constructor Details- 
PackConfigpublic PackConfig(PackRepository packRepository, WorldDataConfiguration initialDataConfig, boolean safeMode, boolean initMode) Creates an instance of aPackConfigrecord class.- Parameters:
- packRepository- the value for the- packRepositoryrecord component
- initialDataConfig- the value for the- initialDataConfigrecord component
- safeMode- the value for the- safeModerecord component
- initMode- the value for the- initModerecord component
 
 
- 
- 
Method Details- 
createResourceManagerpublic com.mojang.datafixers.util.Pair<WorldDataConfiguration,CloseableResourceManager> createResourceManager()
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
packRepositoryReturns the value of thepackRepositoryrecord component.- Returns:
- the value of the packRepositoryrecord component
 
- 
initialDataConfigReturns the value of theinitialDataConfigrecord component.- Returns:
- the value of the initialDataConfigrecord component
 
- 
safeModepublic boolean safeMode()Returns the value of thesafeModerecord component.- Returns:
- the value of the safeModerecord component
 
- 
initModepublic boolean initMode()Returns the value of theinitModerecord component.- Returns:
- the value of the initModerecord component
 
 
-