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$ServerConfigintermediary net/minecraft/class_7237$class_6906official alo$cnamed dataPacksintermediary comp_634official anamed commandEnvironmentintermediary comp_361official bnamed functionPermissionLevelintermediary comp_362official c
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionServerConfig(SaveLoading.DataPacks dataPacks, CommandManager.RegistrationEnvironment registrationEnvironment, int int2) -
Method Summary
Modifier 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
-
dataPacks
The field for thedataPacksrecord component. -
commandEnvironment
The field for thecommandEnvironmentrecord component. -
functionPermissionLevel
private final int functionPermissionLevelThe field for thefunctionPermissionLevelrecord 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 thedataPacksrecord component.- Returns:
- the value of the
dataPacksrecord component
-
commandEnvironment
Returns the value of thecommandEnvironmentrecord component.- Returns:
- the value of the
commandEnvironmentrecord component
-
functionPermissionLevel
public int functionPermissionLevel()Returns the value of thefunctionPermissionLevelrecord component.- Returns:
- the value of the
functionPermissionLevelrecord component
-