Class LlamaMock

All Implemented Interfaces:
MessageTarget, com.destroystokyo.paper.entity.RangedEntity, net.kyori.adventure.audience.Audience, net.kyori.adventure.pointer.Pointered, net.kyori.adventure.sound.Sound.Emitter, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, org.bukkit.attribute.Attributable, org.bukkit.command.CommandSender, org.bukkit.entity.AbstractHorse, org.bukkit.entity.Ageable, org.bukkit.entity.Animals, org.bukkit.entity.Breedable, org.bukkit.entity.ChestedHorse, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Llama, org.bukkit.entity.Mob, org.bukkit.entity.Tameable, org.bukkit.entity.Vehicle, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder, org.bukkit.projectiles.ProjectileSource

public class LlamaMock extends ChestedHorseMock implements org.bukkit.entity.Llama
  • Constructor Details

    • LlamaMock

      public LlamaMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
  • Method Details

    • getColor

      @NotNull public @NotNull org.bukkit.entity.Llama.Color getColor()
      Specified by:
      getColor in interface org.bukkit.entity.Llama
    • setColor

      public void setColor(@NotNull @NotNull org.bukkit.entity.Llama.Color color)
      Specified by:
      setColor in interface org.bukkit.entity.Llama
    • getStrength

      public int getStrength()
      Specified by:
      getStrength in interface org.bukkit.entity.Llama
    • setStrength

      public void setStrength(int strength)
      Specified by:
      setStrength in interface org.bukkit.entity.Llama
    • rangedAttack

      public void rangedAttack(@NotNull @NotNull org.bukkit.entity.LivingEntity target, float charge)
      Specified by:
      rangedAttack in interface com.destroystokyo.paper.entity.RangedEntity
    • setChargingAttack

      public void setChargingAttack(boolean raiseHands)
      Specified by:
      setChargingAttack in interface com.destroystokyo.paper.entity.RangedEntity
    • assertAttacked

      public void assertAttacked(org.bukkit.entity.LivingEntity entity, float charge)
      Asserts that the given entity was attacked by this llama with the given charge.
      Parameters:
      entity - The LivingEntity to check.
      charge - The charge of the attack.
    • assertAgressiveAttack

      public void assertAgressiveAttack(org.bukkit.entity.LivingEntity entity, float charge)
      Asserts that the given entity was attacked by this llama with the given charge and is agressive.
      Parameters:
      entity - The LivingEntity to check.
      charge - The charge of the attack.
    • getVariant

      @Deprecated public @NotNull org.bukkit.entity.Horse.Variant getVariant()
      Deprecated.
      Specified by:
      getVariant in interface org.bukkit.entity.AbstractHorse
    • getInventory

      @NotNull public @NotNull LlamaInventoryMock getInventory()
      Specified by:
      getInventory in interface org.bukkit.entity.AbstractHorse
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
      Specified by:
      getInventory in interface org.bukkit.entity.Llama
      Overrides:
      getInventory in class AbstractHorseMock
    • isChargingAttack

      public boolean isChargingAttack()
      Specified by:
      isChargingAttack in interface com.destroystokyo.paper.entity.RangedEntity