Class GoatMock

All Implemented Interfaces:
MessageTarget, 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>, Attributable, CommandSender, Ageable, Animals, Breedable, Creature, Damageable, Entity, Goat, LivingEntity, Mob, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource

public class GoatMock extends AnimalsMock implements 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 Goat
    • setLeftHorn

      public void setLeftHorn(boolean hasHorn)
      Specified by:
      setLeftHorn in interface Goat
    • hasRightHorn

      public boolean hasRightHorn()
      Specified by:
      hasRightHorn in interface Goat
    • setRightHorn

      public void setRightHorn(boolean hasHorn)
      Specified by:
      setRightHorn in interface Goat
    • isScreaming

      public boolean isScreaming()
      Specified by:
      isScreaming in interface Goat
    • setScreaming

      public void setScreaming(boolean screaming)
      Specified by:
      setScreaming in interface Goat
    • ram

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

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

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