Interface QueuedAction
public interface QueuedAction
Object that contains all information about a queued action.
-
Method Summary
Modifier and TypeMethodDescriptioncopy
(ActionSender sender) Copy the entire queued action but change the action sender.Get the Action that has been queued.String[]
Get a list of arguments that were found in the main action.Get the colored value of this action, with all tags being removed.Set the original, raw action string, without placeholders and colors being replaced.Get the target player the placeholders should be replaced as.Get the sender of the action.getValue()
Get the raw value of this action, with all action tags being removed.placeholders
(ActionSender sender) Use the same queued action for a different user, and replace the placeholders for the new user.result()
Get the result of this queued action.void
setSender
(ActionSender sender) Set the sender of the queued action.
-
Method Details
-
placeholders
Use the same queued action for a different user, and replace the placeholders for the new user.- Parameters:
sender
- User to replace the placeholders for- Returns:
- Same queued action with a different placeholder target.
-
getPlaceholderTarget
ActionSender getPlaceholderTarget()Get the target player the placeholders should be replaced as.- Returns:
- ActionSender with the placeholder player.
-
copy
Copy the entire queued action but change the action sender.- Parameters:
sender
- New action sender.- Returns:
- Copy of the queued action with a different sender.
-
getSender
ActionSender getSender()Get the sender of the action.- Returns:
ActionSender
sender of the action.
-
setSender
Set the sender of the queued action.- Parameters:
sender
-ActionSender
sender of the action.
-
getOriginalActionString
String getOriginalActionString()Set the original, raw action string, without placeholders and colors being replaced.- Returns:
- Original, raw action string.
-
getValue
String getValue()Get the raw value of this action, with all action tags being removed.- Returns:
- Raw value of the action string, without action tags.
-
getColoredValue
String getColoredValue()Get the colored value of this action, with all tags being removed.- Returns:
- Colored value of the action string, without action tags.
-
getArguments
String[] getArguments()Get a list of arguments that were found in the main action.- Returns:
String
array with action arguments.
-
getAction
AdditionsAction getAction()Get the Action that has been queued.- Returns:
- Queued
AdditionsAction
.
-
result
QueuedAction result()Get the result of this queued action. This will replace all math and other calculus tags along with the placeholders.- Returns:
- Final executable result of this queued action.
-