Class RabbitMock

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.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Rabbit, 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 RabbitMock extends AnimalsMock implements org.bukkit.entity.Rabbit
  • Constructor Details

    • RabbitMock

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

    • getRabbitType

      @NotNull public org.bukkit.entity.Rabbit.Type getRabbitType()
      Specified by:
      getRabbitType in interface org.bukkit.entity.Rabbit
    • setRabbitType

      public void setRabbitType(@NotNull @NotNull org.bukkit.entity.Rabbit.Type type)
      Specified by:
      setRabbitType in interface org.bukkit.entity.Rabbit
    • setMoreCarrotTicks

      public void setMoreCarrotTicks(int ticks)
      Specified by:
      setMoreCarrotTicks in interface org.bukkit.entity.Rabbit
    • getMoreCarrotTicks

      public int getMoreCarrotTicks()
      Specified by:
      getMoreCarrotTicks in interface org.bukkit.entity.Rabbit
    • getType

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