public class ComboManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ComboManager.AbilityInformation
Contains information on an ability used in a combo.
|
static class |
ComboManager.ComboAbilityInfo |
Constructor and Description |
---|
ComboManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addComboAbility(org.bukkit.entity.Player player,
ClickType type) |
static void |
addRecentAbility(org.bukkit.entity.Player player,
ComboManager.AbilityInformation info)
Adds an
ComboManager.AbilityInformation to the player's
recentlyUsedAbilities . |
static ComboManager.ComboAbilityInfo |
checkForValidCombo(org.bukkit.entity.Player player)
Checks if a Player's
recentlyUsedAbilities contains a valid set of moves to perform any
combos. |
static void |
cleanupOldCombos() |
static java.util.HashMap<java.lang.String,java.lang.String> |
getAuthors() |
static long |
getCleanupDelay() |
static java.util.HashMap<java.lang.String,ComboManager.ComboAbilityInfo> |
getComboAbilities() |
static java.util.ArrayList<java.lang.String> |
getCombosForElement(Element element)
Gets all of the combos for a given element.
|
static java.util.HashMap<java.lang.String,java.lang.String> |
getDescriptions() |
static java.util.HashMap<java.lang.String,java.lang.String> |
getInstructions() |
static java.util.ArrayList<ComboManager.AbilityInformation> |
getRecentlyUsedAbilities(org.bukkit.entity.Player player,
int amount)
Gets the player's most recently used abilities, up to a maximum of 10.
|
static void |
startCleanupTask() |
public static void addComboAbility(org.bukkit.entity.Player player, ClickType type)
public static void addRecentAbility(org.bukkit.entity.Player player, ComboManager.AbilityInformation info)
ComboManager.AbilityInformation
to the player's
recentlyUsedAbilities
.player
- The player to add the AbilityInformation forinfo
- The AbilityInformation to addpublic static ComboManager.ComboAbilityInfo checkForValidCombo(org.bukkit.entity.Player player)
recentlyUsedAbilities
contains a valid set of moves to perform any
combos. If it does, it returns the valid combo.player
- The player for whom to check if a valid combo has been
performedpublic static void cleanupOldCombos()
public static java.util.ArrayList<ComboManager.AbilityInformation> getRecentlyUsedAbilities(org.bukkit.entity.Player player, int amount)
player
- The player to get recent abilities foramount
- The amount of recent abilities to get, starting from most
recent and getting olderComboManager.AbilityInformation
> of the player's recently
used abilitiespublic static java.util.ArrayList<java.lang.String> getCombosForElement(Element element)
element
- The element to get combos forpublic static void startCleanupTask()
public static long getCleanupDelay()
public static java.util.HashMap<java.lang.String,ComboManager.ComboAbilityInfo> getComboAbilities()
public static java.util.HashMap<java.lang.String,java.lang.String> getAuthors()
public static java.util.HashMap<java.lang.String,java.lang.String> getDescriptions()
public static java.util.HashMap<java.lang.String,java.lang.String> getInstructions()