Record Class WorldLoader.InitConfig
java.lang.Object
java.lang.Record
net.minecraft.server.WorldLoader.InitConfig
- Enclosing class:
WorldLoader
public static record WorldLoader.InitConfig(WorldLoader.PackConfig packConfig, Commands.CommandSelection commandSelection, PermissionSet functionCompilationPermissions)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Commands.CommandSelectionThe field for thecommandSelectionrecord component.private final PermissionSetThe field for thefunctionCompilationPermissionsrecord component.private final WorldLoader.PackConfigThe field for thepackConfigrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInitConfig(WorldLoader.PackConfig packConfig, Commands.CommandSelection commandSelection, PermissionSet functionCompilationPermissions) Creates an instance of aInitConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandSelectionrecord 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.Returns the value of thepackConfigrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
packConfig
The field for thepackConfigrecord component. -
commandSelection
The field for thecommandSelectionrecord component. -
functionCompilationPermissions
The field for thefunctionCompilationPermissionsrecord component.
-
-
Constructor Details
-
InitConfig
public InitConfig(WorldLoader.PackConfig packConfig, Commands.CommandSelection commandSelection, PermissionSet functionCompilationPermissions) Creates an instance of aInitConfigrecord class.- Parameters:
packConfig- the value for thepackConfigrecord componentcommandSelection- the value for thecommandSelectionrecord componentfunctionCompilationPermissions- the value for thefunctionCompilationPermissionsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
packConfig
Returns the value of thepackConfigrecord component.- Returns:
- the value of the
packConfigrecord component
-
commandSelection
Returns the value of thecommandSelectionrecord component.- Returns:
- the value of the
commandSelectionrecord component
-
functionCompilationPermissions
Returns the value of thefunctionCompilationPermissionsrecord component.- Returns:
- the value of the
functionCompilationPermissionsrecord component
-