Class FlyMechanic


public class FlyMechanic extends MechanicComponent
Sets the flight state and flight speed of a player. Does not persist on logout.
  • Constructor Details

    • FlyMechanic

      public FlyMechanic()
  • Method Details

    • getKey

      public String getKey()
      Specified by:
      getKey in class EffectComponent
    • doCleanUp

      protected void doCleanUp(org.bukkit.entity.LivingEntity user)
      Overrides:
      doCleanUp in class EffectComponent
    • execute

      public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force)
      Executes the component (to be implemented)
      Specified by:
      execute in class EffectComponent
      Parameters:
      caster - caster of the skill
      level - level of the skill
      targets - targets to execute on
      force - whether skill should be forced
      Returns:
      true if executed, false if conditions not met