Package net.minecraft.server
Record Class SaveLoading.ServerConfig
java.lang.Object
java.lang.Record
net.minecraft.server.SaveLoading.ServerConfig
- Record Components:
- dataPacks-
- commandEnvironment-
- functionPermissionLevel-
- Enclosing class:
- SaveLoading
public static record SaveLoading.ServerConfig(SaveLoading.DataPacks dataPacks, CommandManager.RegistrationEnvironment commandEnvironment, int functionPermissionLevel)
extends Record
- Mappings:
- Namespace - Name - official - adj$c- intermediary - net/minecraft/class_7237$class_6906- named - net/minecraft/server/SaveLoading$ServerConfig- official - a- intermediary - comp_634- named - dataPacks- official - b- intermediary - comp_361- named - commandEnvironment- official - c- intermediary - comp_362- named - functionPermissionLevel
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final CommandManager.RegistrationEnvironmentThe field for thecommandEnvironmentrecord component.private final SaveLoading.DataPacksThe field for thedataPacksrecord component.private final intThe field for thefunctionPermissionLevelrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionServerConfig(SaveLoading.DataPacks dataPacks, CommandManager.RegistrationEnvironment registrationEnvironment, int int2) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thecommandEnvironmentrecord component.Returns the value of thedataPacksrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefunctionPermissionLevelrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
dataPacksThe field for thedataPacksrecord component.
- 
commandEnvironmentThe field for thecommandEnvironmentrecord component.
- 
functionPermissionLevelprivate final int functionPermissionLevelThe field for thefunctionPermissionLevelrecord component.
 
- 
- 
Constructor Details- 
ServerConfigpublic ServerConfig(SaveLoading.DataPacks dataPacks, CommandManager.RegistrationEnvironment registrationEnvironment, int int2) 
 
- 
- 
Method Details- 
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 '=='.
- 
dataPacksReturns the value of thedataPacksrecord component.- Returns:
- the value of the dataPacksrecord component
 
- 
commandEnvironmentReturns the value of thecommandEnvironmentrecord component.- Returns:
- the value of the commandEnvironmentrecord component
 
- 
functionPermissionLevelpublic int functionPermissionLevel()Returns the value of thefunctionPermissionLevelrecord component.- Returns:
- the value of the functionPermissionLevelrecord component
 
 
-