public class Castable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.bukkit.inventory.ItemStack |
iconItemStack
The icon of the castable.
|
private WauzPlayerSkill |
skill
The skill to be casted.
|
Constructor and Description |
---|
Castable(org.bukkit.inventory.ItemStack iconItemStack,
WauzPlayerSkill skill)
Constructs a castable skill.
|
Modifier and Type | Method and Description |
---|---|
void |
cast(org.bukkit.entity.Player player)
Lets the given player cast this castable.
|
org.bukkit.inventory.ItemStack |
getAssignmentItem()
Gets the item, used to assign this castable to a quick slot.
|
java.util.List<java.lang.String> |
getCastableInfo()
Gets the display information of this castable.
|
org.bukkit.inventory.ItemStack |
getIconItemStack() |
java.lang.String |
getQuickSlotMessage(WauzPlayerData playerData)
Gets the message to show this castable as quick slot in the casting bar.
|
private org.bukkit.inventory.ItemStack iconItemStack
private WauzPlayerSkill skill
public Castable(org.bukkit.inventory.ItemStack iconItemStack, WauzPlayerSkill skill)
iconItemStack
- The icon of the castable.skill
- The skill to be casted.public void cast(org.bukkit.entity.Player player)
player
- The player who should cast the castable.public org.bukkit.inventory.ItemStack getAssignmentItem()
SkillQuickSlots.getSkillInfo(WauzPlayerSkill)
public java.util.List<java.lang.String> getCastableInfo()
public java.lang.String getQuickSlotMessage(WauzPlayerData playerData)
playerData
- The player data for getting cooldowns etc. for this castable.public org.bukkit.inventory.ItemStack getIconItemStack()