Interface MockRangedEntity<T extends MobMock>

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Damageable, Entity, Frictional, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, RangedEntity, ServerOperator, net.kyori.adventure.sound.Sound.Emitter
All Known Implementing Classes:
AbstractSkeletonMock, BoggedMock, DrownedMock, IllusionerMock, LlamaMock, PillagerMock, SkeletonMock, SnowmanMock, StrayMock, TraderLlamaMock, WitchMock, WitherSkeletonMock

public interface MockRangedEntity<T extends MobMock> extends RangedEntity
Mock implementation of a RangedEntity.
See Also:
  • Method Details

    • rangedAttack

      default void rangedAttack(@NotNull @NotNull LivingEntity target, float charge)
      Specified by:
      rangedAttack in interface RangedEntity
    • setChargingAttack

      default void setChargingAttack(boolean raiseHands)
      Specified by:
      setChargingAttack in interface RangedEntity
    • hasAttackedWithCharge

      default boolean hasAttackedWithCharge(LivingEntity target, float charge)
      Whether this ranged entity has attacked another entity with specified charge
      Parameters:
      target - The entity to have been attacked
      charge - The charge during the attack
      Returns:
      True if the ranged entity has attacked another entity with specified charge
    • hasAttackedWhileAggressive

      default boolean hasAttackedWhileAggressive(LivingEntity target)
      Whether this ranged entity has attacked another entity while aggressive
      Parameters:
      target - The entity to have been attacked
      Returns:
      True if the ranged entity has attacked another entity while aggressive