Class SchoolableFishMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Bucketable, io.papermc.paper.entity.Frictional, io.papermc.paper.entity.SchoolableFish, 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.Entity, org.bukkit.entity.Fish, 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
Direct Known Subclasses:
CodMock, SalmonMock, TropicalFishMock

public abstract class SchoolableFishMock extends FishMock implements io.papermc.paper.entity.SchoolableFish
Mock implementation of a SchoolableFish.
See Also:
  • Constructor Details

    • SchoolableFishMock

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

    • startFollowing

      public void startFollowing(@NotNull @NotNull io.papermc.paper.entity.SchoolableFish leader)
      Specified by:
      startFollowing in interface io.papermc.paper.entity.SchoolableFish
    • stopFollowing

      public void stopFollowing()
      Specified by:
      stopFollowing in interface io.papermc.paper.entity.SchoolableFish
    • getSchoolSize

      public int getSchoolSize()
      Specified by:
      getSchoolSize in interface io.papermc.paper.entity.SchoolableFish
    • getMaxSchoolSize

      public int getMaxSchoolSize()
      Specified by:
      getMaxSchoolSize in interface io.papermc.paper.entity.SchoolableFish
    • getSchoolLeader

      @Nullable public @Nullable io.papermc.paper.entity.SchoolableFish getSchoolLeader()
      Specified by:
      getSchoolLeader in interface io.papermc.paper.entity.SchoolableFish