Record Class CommandParsingData.ExecutorData
java.lang.Object
java.lang.Record
org.skriptlang.skript.bukkit.command.custom.CommandParsingData.ExecutorData
- Record Components:
isSubcommandGroup- Whether this data is coming from a group of subcommands (for defining shared data among them).permission- String representing the permission theCommandSendermust have to execute the command.executableBy- Set describing what kinds ofCommandSendercan execute the command.cooldownManager- Handles cooldown management for cooldown command entries.
- Enclosing class:
CommandParsingData
public static record CommandParsingData.ExecutorData(boolean isSubcommandGroup, @Nullable String permission, @Nullable Set<ExecutableBy> executableBy, @Nullable CooldownManager cooldownManager)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorData(boolean isSubcommandGroup, @Nullable String permission, @Nullable Set<ExecutableBy> executableBy, @Nullable CooldownManager cooldownManager) Creates an instance of aExecutorDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable CooldownManagerReturns the value of thecooldownManagerrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Set<ExecutableBy> Returns the value of theexecutableByrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisSubcommandGrouprecord component.@Nullable StringReturns the value of thepermissionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExecutorData
public ExecutorData(boolean isSubcommandGroup, @Nullable @Nullable String permission, @Nullable @Nullable Set<ExecutableBy> executableBy, @Nullable @Nullable CooldownManager cooldownManager) Creates an instance of aExecutorDatarecord class.- Parameters:
isSubcommandGroup- the value for theisSubcommandGrouprecord componentpermission- the value for thepermissionrecord componentexecutableBy- the value for theexecutableByrecord componentcooldownManager- the value for thecooldownManagerrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isSubcommandGroup
public boolean isSubcommandGroup()Returns the value of theisSubcommandGrouprecord component.- Returns:
- the value of the
isSubcommandGrouprecord component
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
executableBy
Returns the value of theexecutableByrecord component.- Returns:
- the value of the
executableByrecord component
-
cooldownManager
Returns the value of thecooldownManagerrecord component.- Returns:
- the value of the
cooldownManagerrecord component
-