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 CustomItemevent - The interaction event.slam(Player),
WauzPlayerSkillExecutor.tryToUseSkill(Player, ItemStack)public java.util.List<org.bukkit.Material> getCustomItemMaterials()
getCustomItemMaterials in interface CustomItempublic boolean canHaveSkillSlot()
canHaveSkillSlot in interface CustomWeaponpublic java.util.List<java.lang.String> getCustomWeaponLores(boolean hasSkillSlot)
getCustomWeaponLores in interface CustomWeaponhasSkillSlot - 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)