Class MechanicListener

java.lang.Object
com.sucy.skill.listener.SkillAPIListener
com.sucy.skill.listener.MechanicListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class MechanicListener extends SkillAPIListener
The listener for handling events related to dynamic mechanics
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cleans up listener data on shutdown
    boolean
    isOnGround(org.bukkit.Location loc)
     
    void
    Applies effects when specific flag keys are set
    void
    onArmorStandInteract(org.bukkit.event.player.PlayerArmorStandManipulateEvent event)
    Cancels interactions with armor stands corresponding to an Armor Stand Mechanic
    void
    onBreak(org.bukkit.event.block.BlockBreakEvent event)
    Can't break blocks from block mechanics
    void
    onChunkLoad(org.bukkit.event.world.ChunkLoadEvent event)
     
    void
    onDamageByEntity(org.bukkit.event.entity.EntityDamageByEntityEvent event)
    Applies projectile and lightning callbacks when striking an enemy
    void
    onEntityCombust(org.bukkit.event.entity.EntityCombustEvent event)
     
    void
    onEntityDamage(org.bukkit.event.entity.EntityDamageEvent event)
     
    void
    onEntityDamageCause(org.bukkit.event.entity.EntityDamageEvent event)
     
    void
    Clears speed modifiers when the flag expires
    void
    onExplode(org.bukkit.event.entity.EntityExplodeEvent event)
    Stop explosions of projectiles fired from skills
    void
    onItemPickup(org.bukkit.event.inventory.InventoryPickupItemEvent event)
    Prevent item projectiles from being absorbed by hoppers
    void
    onLand(org.bukkit.event.entity.ProjectileHitEvent event)
    Applies projectile callbacks when landing on the ground
    void
    onMove(org.bukkit.event.player.PlayerMoveEvent event)
    Checks for landing on the ground
    void
    onQuit(org.bukkit.event.player.PlayerQuitEvent event)
    Resets walk speed and clears them from the map when quitting
    void
    onSplash(org.bukkit.event.entity.PotionSplashEvent event)
    Handles when a potion projectile hits things
    void
    onSummonDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event)
    Handles when summoned monsters deal damage

    Methods inherited from class com.sucy.skill.listener.SkillAPIListener

    init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • MechanicListener

      public MechanicListener()
  • Method Details

    • cleanup

      public void cleanup()
      Cleans up listener data on shutdown
      Overrides:
      cleanup in class SkillAPIListener
    • onMove

      public void onMove(org.bukkit.event.player.PlayerMoveEvent event)
      Checks for landing on the ground
      Parameters:
      event - event details
    • isOnGround

      public boolean isOnGround(org.bukkit.Location loc)
    • onQuit

      public void onQuit(org.bukkit.event.player.PlayerQuitEvent event)
      Resets walk speed and clears them from the map when quitting
      Parameters:
      event - event details
    • onApply

      public void onApply(FlagApplyEvent event)
      Applies effects when specific flag keys are set
      Parameters:
      event - event details
    • onExpire

      public void onExpire(FlagExpireEvent event)
      Clears speed modifiers when the flag expires
      Parameters:
      event - event details
    • onLand

      public void onLand(org.bukkit.event.entity.ProjectileHitEvent event)
      Applies projectile callbacks when landing on the ground
      Parameters:
      event - event details
    • onItemPickup

      public void onItemPickup(org.bukkit.event.inventory.InventoryPickupItemEvent event)
      Prevent item projectiles from being absorbed by hoppers
      Parameters:
      event - event details
    • onExplode

      public void onExplode(org.bukkit.event.entity.EntityExplodeEvent event)
      Stop explosions of projectiles fired from skills
      Parameters:
      event - event details
    • onDamageByEntity

      public void onDamageByEntity(org.bukkit.event.entity.EntityDamageByEntityEvent event)
      Applies projectile and lightning callbacks when striking an enemy
      Parameters:
      event - event details
    • onSummonDamage

      public void onSummonDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event)
      Handles when summoned monsters deal damage
      Parameters:
      event - event details
    • onSplash

      public void onSplash(org.bukkit.event.entity.PotionSplashEvent event)
      Handles when a potion projectile hits things
      Parameters:
      event - event details
    • onBreak

      public void onBreak(org.bukkit.event.block.BlockBreakEvent event)
      Can't break blocks from block mechanics
      Parameters:
      event - event details
    • onEntityDamage

      public void onEntityDamage(org.bukkit.event.entity.EntityDamageEvent event)
    • onEntityDamageCause

      public void onEntityDamageCause(org.bukkit.event.entity.EntityDamageEvent event)
    • onEntityCombust

      public void onEntityCombust(org.bukkit.event.entity.EntityCombustEvent event)
    • onArmorStandInteract

      public void onArmorStandInteract(org.bukkit.event.player.PlayerArmorStandManipulateEvent event)
      Cancels interactions with armor stands corresponding to an Armor Stand Mechanic
      Parameters:
      event - event details
    • onChunkLoad

      public void onChunkLoad(org.bukkit.event.world.ChunkLoadEvent event)