public class CustomWeaponAxe extends java.lang.Object implements CustomWeapon
Constructor and Description |
---|
CustomWeaponAxe() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHaveSkillSlot()
Determines if the custom weapon can have a skillgem slot.
|
java.util.List<org.bukkit.Material> |
getCustomItemMaterials()
Returns the materials that trigger events with the item.
|
java.util.List<java.lang.String> |
getCustomWeaponLores(boolean hasSkillSlot)
Gets the lores to show on an instance of the custom weapon.
|
static void |
slam(org.bukkit.entity.Player player)
Lets the player perform a slam attack in front of them.
|
void |
use(org.bukkit.event.player.PlayerInteractEvent event)
Cancels the event of an axe interaction.
|
public void use(org.bukkit.event.player.PlayerInteractEvent event)
use
in interface CustomItem
event
- The interaction event.slam(Player)
,
WauzPlayerSkillExecutor.tryToUseSkill(Player, ItemStack)
public java.util.List<org.bukkit.Material> getCustomItemMaterials()
getCustomItemMaterials
in interface CustomItem
public boolean canHaveSkillSlot()
canHaveSkillSlot
in interface CustomWeapon
public java.util.List<java.lang.String> getCustomWeaponLores(boolean hasSkillSlot)
getCustomWeaponLores
in interface CustomWeapon
hasSkillSlot
- If the weapon has a skillgem slot.public static void slam(org.bukkit.entity.Player player)
player
- The player who performs the attack.Cooldown.playerWeaponSkillUse(Player, String)
,
SkillUtils.callPlayerFixedDamageEvent(Player, Entity, double)
,
ParticleSpawner.spawnParticleWave(Location, SkillParticle, double)
,
DurabilityCalculator.damageItem(Player, ItemStack, int, boolean)