public class CustomWeaponStaff extends java.lang.Object implements CustomWeapon
| Constructor and Description |
|---|
CustomWeaponStaff() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beam(org.bukkit.entity.Player player)
Creates a 9 block long beam, which hits the targeted entity.
|
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.
|
void |
use(org.bukkit.event.player.PlayerInteractEvent event)
Cancels the event of a staff interaction.
|
public void use(org.bukkit.event.player.PlayerInteractEvent event)
use in interface CustomItemevent - The interaction event.beam(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 beam(org.bukkit.entity.Player player)
player - The player who performs the attack.Cooldown.playerWeaponSkillUse(Player, String),
SkillUtils.callPlayerFixedDamageEvent(Player, Entity, double),
ParticleSpawner.spawnParticleLine(Location, Location, SkillParticle, int),
DurabilityCalculator.damageItem(Player, ItemStack, int, boolean)