public class CustomWeaponShield extends java.lang.Object implements CustomWeapon
Modifier and Type | Field and Description |
---|---|
private static java.util.List<org.bukkit.DyeColor> |
dyeColors
A list of valid dye colors for shield patterns.
|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper |
mythicMobs
Access to the MythicMobs API.
|
private static java.util.List<org.bukkit.block.banner.PatternType> |
patternTypes
A list of valid pattern types for shield patterns.
|
private static SkillParticle |
tauntCircleParticle
A particle, used to create the taunt circle.
|
private static SkillParticle |
tauntEntityParticle
A particle, used to mark taunted entities.
|
Constructor and Description |
---|
CustomWeaponShield() |
Modifier and Type | Method and Description |
---|---|
static void |
addPattern(org.bukkit.inventory.meta.ItemMeta shieldItemMeta)
Adds a random pattern to the given shield item meta.
|
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 |
taunt(org.bukkit.entity.Player player)
Creates a 10 block wide particle circle around the player
and taunts every entity inside of it, forcing it to attack the player.
|
void |
use(org.bukkit.event.player.PlayerInteractEvent event)
Handles the interaction with a shield.
|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper mythicMobs
private static SkillParticle tauntCircleParticle
private static SkillParticle tauntEntityParticle
private static java.util.List<org.bukkit.DyeColor> dyeColors
private static java.util.List<org.bukkit.block.banner.PatternType> patternTypes
public void use(org.bukkit.event.player.PlayerInteractEvent event)
use
in interface CustomItem
event
- The interaction event.taunt(Player)
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 taunt(org.bukkit.entity.Player player)
player
- The player that is taunting the entities.Cooldown.playerWeaponSkillUse(Player, String)
,
ParticleSpawner.spawnParticleCircle(Location, SkillParticle, double, int)
,
DurabilityCalculator.damageItem(Player, org.bukkit.inventory.ItemStack, int, boolean)
public static void addPattern(org.bukkit.inventory.meta.ItemMeta shieldItemMeta)
shieldItemMeta
- The item meta of a shield.