public class SkillQuickSlots
extends java.lang.Object
WauzPlayerSkill| Constructor and Description |
|---|
SkillQuickSlots() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getCastableInfo(org.bukkit.entity.Player player,
int slot)
Gets the display information of a castable from a player's quick slot.
|
static java.util.List<java.lang.String> |
getSkillInfo(WauzPlayerSkill skill)
Gets the display information of the given skill.
|
static boolean |
tryToUse(org.bukkit.entity.Player player)
Tries to let a player use their selected quick slot.
|
public static boolean tryToUse(org.bukkit.entity.Player player)
player - The player who tries to use a quick slot.Cooldown.playerQuickSlotUse(Player),
WauzPlayerDataSectionSkills.getActionBar(),
WauzPlayerDataSectionSkills.getSelectedCastables(),
Castable.cast(Player),
SkillAssignMenu.open(Player)public static java.util.List<java.lang.String> getCastableInfo(org.bukkit.entity.Player player,
int slot)
player - The player to get the castable info from.slot - The quick slot the castable is placed in.PlayerSkillConfigurator.getQuickSlotSkill(Player, int),
Castable.getCastableInfo()public static java.util.List<java.lang.String> getSkillInfo(WauzPlayerSkill skill)
skill - The skill to get the info from.