Class RaiderMock

All Implemented Interfaces:
MessageTarget, Frictional, Leashable, PersistentDataViewHolder, 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, Creature, Damageable, Enemy, Entity, LivingEntity, Mob, Monster, Raider, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource
Direct Known Subclasses:
IllagerMock, RavagerMock, WitchMock

public abstract class RaiderMock extends MonsterMock implements Raider
Mock implementation of a Raider.
See Also:
  • Constructor Details

    • RaiderMock

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

    • setRaid

      public void setRaid(@Nullable @Nullable Raid raid)
      Specified by:
      setRaid in interface Raider
    • getRaid

      @Nullable public @Nullable Raid getRaid()
      Specified by:
      getRaid in interface Raider
    • getWave

      public int getWave()
      Specified by:
      getWave in interface Raider
    • setWave

      public void setWave(int wave)
      Specified by:
      setWave in interface Raider
    • getPatrolTarget

      @Nullable public @Nullable Block getPatrolTarget()
      Specified by:
      getPatrolTarget in interface Raider
    • setPatrolTarget

      public void setPatrolTarget(@Nullable @Nullable Block block)
      Specified by:
      setPatrolTarget in interface Raider
    • isPatrolLeader

      public boolean isPatrolLeader()
      Specified by:
      isPatrolLeader in interface Raider
    • setPatrolLeader

      public void setPatrolLeader(boolean leader)
      Specified by:
      setPatrolLeader in interface Raider
    • isCanJoinRaid

      public boolean isCanJoinRaid()
      Specified by:
      isCanJoinRaid in interface Raider
    • setCanJoinRaid

      public void setCanJoinRaid(boolean join)
      Specified by:
      setCanJoinRaid in interface Raider
    • getTicksOutsideRaid

      public int getTicksOutsideRaid()
      Specified by:
      getTicksOutsideRaid in interface Raider
    • setTicksOutsideRaid

      public void setTicksOutsideRaid(int ticks)
      Specified by:
      setTicksOutsideRaid in interface Raider
    • isCelebrating

      public boolean isCelebrating()
      Specified by:
      isCelebrating in interface Raider
    • setCelebrating

      public void setCelebrating(boolean celebrating)
      Specified by:
      setCelebrating in interface Raider