Package net.minecraft.server
Record Class SaveLoading.ServerConfig
java.lang.Object
java.lang.Record
net.minecraft.server.SaveLoading.ServerConfig
- Record Components:
dataPacks-commandEnvironment-functionCompilationPermissions-
- Enclosing class:
SaveLoading
public static record SaveLoading.ServerConfig(SaveLoading.DataPacks dataPacks, CommandManager.RegistrationEnvironment commandEnvironment, PermissionPredicate functionCompilationPermissions)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/SaveLoading$ServerConfigintermediary net/minecraft/class_7237$class_6906official anw$cnamed dataPacksintermediary comp_634official anamed commandEnvironmentintermediary comp_361official bnamed functionCompilationPermissionsintermediary comp_4941official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandManager.RegistrationEnvironmentThe field for thecommandEnvironmentrecord component.private final SaveLoading.DataPacksThe field for thedataPacksrecord component.private final PermissionPredicateThe field for thefunctionCompilationPermissionsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionServerConfig(SaveLoading.DataPacks packConfig, CommandManager.RegistrationEnvironment commandSelection, PermissionPredicate functionCompilationPermissions) -
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.Returns the value of thefunctionCompilationPermissionsrecord 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. -
functionCompilationPermissions
The field for thefunctionCompilationPermissionsrecord component.
-
-
Constructor Details
-
ServerConfig
public ServerConfig(SaveLoading.DataPacks packConfig, CommandManager.RegistrationEnvironment commandSelection, PermissionPredicate functionCompilationPermissions) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/SaveLoading$ServerConfig;<init>(Lnet/minecraft/server/SaveLoading$DataPacks;Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;Lnet/minecraft/command/permission/PermissionPredicate;)Vintermediary <init>Lnet/minecraft/class_7237$class_6906;<init>(Lnet/minecraft/class_7237$class_7238;Lnet/minecraft/class_2170$class_5364;Lnet/minecraft/class_12096;)Vofficial <init>Lanw$c;<init>(Lanw$d;Lek$a;Lbbs;)V
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
functionCompilationPermissions
Returns the value of thefunctionCompilationPermissionsrecord component.- Returns:
- the value of the
functionCompilationPermissionsrecord component
-