Class GoatMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Frictional, 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.Ageable, org.bukkit.entity.Animals, org.bukkit.entity.Breedable, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.Goat, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, 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 GoatMock extends AnimalsMock implements org.bukkit.entity.Goat
Mock implementation of a Goat.
See Also:
  • Constructor Details

    • GoatMock

      public GoatMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new GoatMock on the provided ServerMock with a specified UUID.
      Parameters:
      server - The server to create the entity on.
      uuid - The UUID of the entity.
  • Method Details

    • hasLeftHorn

      public boolean hasLeftHorn()
      Specified by:
      hasLeftHorn in interface org.bukkit.entity.Goat
    • setLeftHorn

      public void setLeftHorn(boolean hasHorn)
      Specified by:
      setLeftHorn in interface org.bukkit.entity.Goat
    • hasRightHorn

      public boolean hasRightHorn()
      Specified by:
      hasRightHorn in interface org.bukkit.entity.Goat
    • setRightHorn

      public void setRightHorn(boolean hasHorn)
      Specified by:
      setRightHorn in interface org.bukkit.entity.Goat
    • isScreaming

      public boolean isScreaming()
      Specified by:
      isScreaming in interface org.bukkit.entity.Goat
    • setScreaming

      public void setScreaming(boolean screaming)
      Specified by:
      setScreaming in interface org.bukkit.entity.Goat
    • ram

      public void ram(@NotNull @NotNull org.bukkit.entity.LivingEntity entity)
      Specified by:
      ram in interface org.bukkit.entity.Goat
    • assertEntityRammed

      public void assertEntityRammed(@NotNull @NotNull org.bukkit.entity.LivingEntity entity)
      Asserts that the goat attacked the given entity.
      Parameters:
      entity - The entity to assert.
    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock