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 named net/minecraft/server/SaveLoading$ServerConfig
intermediary net/minecraft/class_7237$class_6906
official aln$c
named dataPacks
intermediary comp_634
official a
named commandEnvironment
intermediary comp_361
official b
named functionPermissionLevel
intermediary comp_362
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CommandManager.RegistrationEnvironment
The field for thecommandEnvironment
record component.private final SaveLoading.DataPacks
The field for thedataPacks
record component.private final int
The field for thefunctionPermissionLevel
record component. -
Constructor Summary
ConstructorDescriptionServerConfig
(SaveLoading.DataPacks dataPacks, CommandManager.RegistrationEnvironment registrationEnvironment, int int2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandEnvironment
record component.Returns the value of thedataPacks
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefunctionPermissionLevel
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
dataPacks
The field for thedataPacks
record component. -
commandEnvironment
The field for thecommandEnvironment
record component. -
functionPermissionLevel
private final int functionPermissionLevelThe field for thefunctionPermissionLevel
record component.
-
-
Constructor Details
-
ServerConfig
public ServerConfig(SaveLoading.DataPacks dataPacks, CommandManager.RegistrationEnvironment registrationEnvironment, int int2)
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
dataPacks
Returns the value of thedataPacks
record component.- Returns:
- the value of the
dataPacks
record component
-
commandEnvironment
Returns the value of thecommandEnvironment
record component.- Returns:
- the value of the
commandEnvironment
record component
-
functionPermissionLevel
public int functionPermissionLevel()Returns the value of thefunctionPermissionLevel
record component.- Returns:
- the value of the
functionPermissionLevel
record component
-