Class CatMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.CollarColorable, 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.Cat, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Sittable, org.bukkit.entity.Tameable, 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 CatMock extends TameableAnimalMock implements org.bukkit.entity.Cat
Mock implementation of a Cat.
See Also:
  • Constructor Details

    • CatMock

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

    • getCatType

      @NotNull public @NotNull org.bukkit.entity.Cat.Type getCatType()
      Specified by:
      getCatType in interface org.bukkit.entity.Cat
    • setCatType

      public void setCatType(@NotNull @NotNull org.bukkit.entity.Cat.Type type)
      Specified by:
      setCatType in interface org.bukkit.entity.Cat
    • getCollarColor

      @NotNull public @NotNull org.bukkit.DyeColor getCollarColor()
      Specified by:
      getCollarColor in interface org.bukkit.entity.Cat
      Specified by:
      getCollarColor in interface io.papermc.paper.entity.CollarColorable
    • setCollarColor

      public void setCollarColor(@NotNull @NotNull org.bukkit.DyeColor color)
      Specified by:
      setCollarColor in interface org.bukkit.entity.Cat
      Specified by:
      setCollarColor in interface io.papermc.paper.entity.CollarColorable
    • setLyingDown

      public void setLyingDown(boolean lyingDown)
      Specified by:
      setLyingDown in interface org.bukkit.entity.Cat
    • isLyingDown

      public boolean isLyingDown()
      Specified by:
      isLyingDown in interface org.bukkit.entity.Cat
    • setHeadUp

      public void setHeadUp(boolean headUp)
      Specified by:
      setHeadUp in interface org.bukkit.entity.Cat
    • isHeadUp

      public boolean isHeadUp()
      Specified by:
      isHeadUp in interface org.bukkit.entity.Cat
    • getType

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