Package redempt.redlib.enchants.trigger
Class KillEntityTrigger
java.lang.Object
redempt.redlib.enchants.trigger.EnchantTrigger<org.bukkit.event.entity.EntityDeathEvent>
redempt.redlib.enchants.trigger.KillEntityTrigger
-
Field Summary
Fields inherited from class redempt.redlib.enchants.trigger.EnchantTrigger
ATTACK_ENTITY, EQUIP_ARMOR, events, HOLD_ITEM, KILL_ENTITY, MINE_BLOCK, SHOOT_ARROW, TAKE_DAMAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
defaultAppliesTo
(org.bukkit.Material type) Returns whether this EnchantTrigger applies to the given type by defaultprotected void
register()
Methods inherited from class redempt.redlib.enchants.trigger.EnchantTrigger
addListener, getEvents, getPriority, init, withPriority
-
Constructor Details
-
KillEntityTrigger
public KillEntityTrigger()
-
-
Method Details
-
register
protected void register()- Specified by:
register
in classEnchantTrigger<org.bukkit.event.entity.EntityDeathEvent>
-
defaultAppliesTo
public boolean defaultAppliesTo(org.bukkit.Material type) Description copied from class:EnchantTrigger
Returns whether this EnchantTrigger applies to the given type by default- Specified by:
defaultAppliesTo
in classEnchantTrigger<org.bukkit.event.entity.EntityDeathEvent>
- Parameters:
type
- The type to check- Returns:
- Whether this EnchantTrigger applies to the type by default
-