Class SoldierTurret

All Implemented Interfaces:
org.kingdoms.abstraction.Levellable, org.kingdoms.abstraction.PlayerOperator, Keyed<SimpleLocation>, SmartObject, org.kingdoms.constants.group.model.logs.Loggable, org.kingdoms.data.Deserializable, org.kingdoms.data.Serializable, org.kingdoms.locale.provider.CascadingMessageContextProvider, org.kingdoms.locale.provider.MessageContextProvider

public class SoldierTurret extends RangedTurret
  • Constructor Details

  • Method Details

    • activate

      public void activate(org.bukkit.entity.LivingEntity target, Kingdom kingdom)
      Description copied from class: Turret
      Called when the turret successfully damages a player. This isn't the same thing as attempted damage to for example an arrow turret, where the arrow may not even hit the target. This should be called when the arrow/entity/etc. has successfully affected the player and the player wasn't able to avoid it.
      Overrides:
      activate in class Turret
    • skipTarget

      public boolean skipTarget(org.bukkit.entity.LivingEntity target)
      Overrides:
      skipTarget in class RangedTurret
    • spawnSoldiers

      public List<org.bukkit.entity.LivingEntity> spawnSoldiers(org.bukkit.entity.LivingEntity target, Kingdom kingdom, int lvl)