Record Class SubCommandEntryData.Result
java.lang.Object
java.lang.Record
org.skriptlang.skript.bukkit.command.elements.structures.util.SubCommandEntryData.Result
- Enclosing class:
SubCommandEntryData
public static record SubCommandEntryData.Result(@Nullable ScriptCommandExecutor rootExecutor, List<ScriptArgumentBuilder> arguments, Collection<String> aliases, @Nullable String description, @Nullable String usage, @Nullable String prefix, @Nullable String permission)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(@Nullable ScriptCommandExecutor rootExecutor, List<ScriptArgumentBuilder> arguments, Collection<String> aliases, @Nullable String description, @Nullable String usage, @Nullable String prefix, @Nullable String permission) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.Returns the value of theargumentsrecord component.@Nullable StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thepermissionrecord component.@Nullable Stringprefix()Returns the value of theprefixrecord component.@Nullable ScriptCommandExecutorReturns the value of therootExecutorrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringusage()Returns the value of theusagerecord component.
-
Constructor Details
-
Result
public Result(@Nullable @Nullable ScriptCommandExecutor rootExecutor, List<ScriptArgumentBuilder> arguments, Collection<String> aliases, @Nullable @Nullable String description, @Nullable @Nullable String usage, @Nullable @Nullable String prefix, @Nullable @Nullable String permission) Creates an instance of aResultrecord class.- Parameters:
rootExecutor- the value for therootExecutorrecord componentarguments- the value for theargumentsrecord componentaliases- the value for thealiasesrecord componentdescription- the value for thedescriptionrecord componentusage- the value for theusagerecord componentprefix- the value for theprefixrecord componentpermission- the value for thepermissionrecord 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). -
rootExecutor
Returns the value of therootExecutorrecord component.- Returns:
- the value of the
rootExecutorrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
aliases
Returns the value of thealiasesrecord component.- Returns:
- the value of the
aliasesrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-