public class CustomWeaponSword extends java.lang.Object implements CustomWeapon
| Constructor and Description |
|---|
CustomWeaponSword() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHaveSkillSlot()
Determines if the custom weapon can have a skillgem slot.
|
static void |
cut(org.bukkit.entity.Player player)
Lets the player perform a cut attack in front of them.
|
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 sword interaction.
|
public void use(org.bukkit.event.player.PlayerInteractEvent event)
use in interface CustomItemevent - The interaction event.cut(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 cut(org.bukkit.entity.Player player)
player - The player who performs the attack.Cooldown.playerWeaponSkillUse(Player, String),
SkillUtils.callPlayerFixedDamageEvent(Player, Entity, double),
SkillUtils.callPlayerDamageOverTimeEvent(Player, Entity, Color, int, int, int),
ParticleSpawner.spawnParticleLine(Location, Location, SkillParticle, int, double),
DurabilityCalculator.damageItem(Player, ItemStack, int, boolean)