Class DolphinMock

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.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Dolphin, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.WaterMob, 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 DolphinMock extends CreatureMock implements org.bukkit.entity.Dolphin
  • Constructor Details

    • DolphinMock

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

    • getMoistness

      public int getMoistness()
      Specified by:
      getMoistness in interface org.bukkit.entity.Dolphin
    • setMoistness

      public void setMoistness(int moistness)
      Specified by:
      setMoistness in interface org.bukkit.entity.Dolphin
    • setHasFish

      public void setHasFish(boolean hasFish)
      Specified by:
      setHasFish in interface org.bukkit.entity.Dolphin
    • hasFish

      public boolean hasFish()
      Specified by:
      hasFish in interface org.bukkit.entity.Dolphin
    • getTreasureLocation

      @NotNull public @NotNull org.bukkit.Location getTreasureLocation()
      Specified by:
      getTreasureLocation in interface org.bukkit.entity.Dolphin
    • setTreasureLocation

      public void setTreasureLocation(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      setTreasureLocation in interface org.bukkit.entity.Dolphin
    • getType

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