Class FoxMock

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, Fox, LivingEntity, Mob, Sittable, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource

public class FoxMock extends AnimalsMock implements Fox
Mock implementation of a Fox.
See Also:
  • Constructor Details

    • FoxMock

      public FoxMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new FoxMock 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

    • getFoxType

      @NotNull public @NotNull Fox.Type getFoxType()
      Specified by:
      getFoxType in interface Fox
    • setFoxType

      public void setFoxType(@NotNull @NotNull Fox.Type type)
      Specified by:
      setFoxType in interface Fox
    • isCrouching

      public boolean isCrouching()
      Specified by:
      isCrouching in interface Fox
    • setCrouching

      public void setCrouching(boolean crouching)
      Specified by:
      setCrouching in interface Fox
    • setSleeping

      public void setSleeping(boolean sleeping)
      Specified by:
      setSleeping in interface Fox
    • isSleeping

      public boolean isSleeping()
      Specified by:
      isSleeping in interface LivingEntity
      Overrides:
      isSleeping in class LivingEntityMock
    • getFirstTrustedPlayer

      @Nullable public @Nullable AnimalTamer getFirstTrustedPlayer()
      Specified by:
      getFirstTrustedPlayer in interface Fox
    • setFirstTrustedPlayer

      public void setFirstTrustedPlayer(@Nullable @Nullable AnimalTamer player)
      Specified by:
      setFirstTrustedPlayer in interface Fox
    • getSecondTrustedPlayer

      @Nullable public @Nullable AnimalTamer getSecondTrustedPlayer()
      Specified by:
      getSecondTrustedPlayer in interface Fox
    • setSecondTrustedPlayer

      public void setSecondTrustedPlayer(@Nullable @Nullable AnimalTamer player)
      Specified by:
      setSecondTrustedPlayer in interface Fox
    • isFaceplanted

      public boolean isFaceplanted()
      Specified by:
      isFaceplanted in interface Fox
    • setFaceplanted

      public void setFaceplanted(boolean faceplanted)
      Specified by:
      setFaceplanted in interface Fox
    • setInterested

      public void setInterested(boolean interested)
      Specified by:
      setInterested in interface Fox
    • isInterested

      public boolean isInterested()
      Specified by:
      isInterested in interface Fox
    • setLeaping

      public void setLeaping(boolean leaping)
      Specified by:
      setLeaping in interface Fox
    • isLeaping

      public boolean isLeaping()
      Specified by:
      isLeaping in interface Fox
    • setDefending

      public void setDefending(boolean defending)
      Specified by:
      setDefending in interface Fox
    • isDefending

      public boolean isDefending()
      Specified by:
      isDefending in interface Fox
    • isSitting

      public boolean isSitting()
      Specified by:
      isSitting in interface Sittable
    • setSitting

      public void setSitting(boolean sitting)
      Specified by:
      setSitting in interface Sittable
    • getType

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