Class MeleeHandler
java.lang.Object
me.deecaad.weaponmechanics.weapon.melee.MeleeHandler
- All Implemented Interfaces:
me.deecaad.core.file.IValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantryUse(EntityWrapper entityWrapper, String weaponTitle, org.bukkit.inventory.ItemStack weaponStack, org.bukkit.inventory.EquipmentSlot slot, TriggerType triggerType, boolean dualWield, org.bukkit.entity.LivingEntity knownVictim) Tries to use meleevoidvalidate(me.deecaad.core.file.Configuration configuration, me.deecaad.core.file.SerializeData data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.IValidator
denyKeys, shouldValidate
-
Constructor Details
-
MeleeHandler
public MeleeHandler()Default constructor for validator -
MeleeHandler
-
-
Method Details
-
tryUse
public boolean tryUse(EntityWrapper entityWrapper, String weaponTitle, org.bukkit.inventory.ItemStack weaponStack, org.bukkit.inventory.EquipmentSlot slot, TriggerType triggerType, boolean dualWield, @Nullable org.bukkit.entity.LivingEntity knownVictim) Tries to use melee- Parameters:
entityWrapper- the entity who used triggerweaponTitle- the weapon titleweaponStack- the weapon stackslot- the slot used on triggertriggerType- the trigger type trying to activate meleedualWield- whether this was dual wield- Returns:
- true if was able to melee
-
getKeyword
- Specified by:
getKeywordin interfaceme.deecaad.core.file.IValidator
-
getAllowedPaths
- Specified by:
getAllowedPathsin interfaceme.deecaad.core.file.IValidator
-
validate
public void validate(me.deecaad.core.file.Configuration configuration, me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
validatein interfaceme.deecaad.core.file.IValidator- Throws:
me.deecaad.core.file.SerializerException
-