Class RaiderMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Frictional, io.papermc.paper.entity.Leashable, io.papermc.paper.persistence.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>, org.bukkit.attribute.Attributable, org.bukkit.command.CommandSender, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Enemy, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Monster, org.bukkit.entity.Raider, 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:
IllagerMock, RavagerMock, WitchMock

public abstract class RaiderMock extends MonsterMock implements org.bukkit.entity.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 org.bukkit.Raid raid)
      Specified by:
      setRaid in interface org.bukkit.entity.Raider
    • getRaid

      @Nullable public @Nullable org.bukkit.Raid getRaid()
      Specified by:
      getRaid in interface org.bukkit.entity.Raider
    • getWave

      public int getWave()
      Specified by:
      getWave in interface org.bukkit.entity.Raider
    • setWave

      public void setWave(int wave)
      Specified by:
      setWave in interface org.bukkit.entity.Raider
    • getPatrolTarget

      @Nullable public @Nullable org.bukkit.block.Block getPatrolTarget()
      Specified by:
      getPatrolTarget in interface org.bukkit.entity.Raider
    • setPatrolTarget

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

      public boolean isPatrolLeader()
      Specified by:
      isPatrolLeader in interface org.bukkit.entity.Raider
    • setPatrolLeader

      public void setPatrolLeader(boolean leader)
      Specified by:
      setPatrolLeader in interface org.bukkit.entity.Raider
    • isCanJoinRaid

      public boolean isCanJoinRaid()
      Specified by:
      isCanJoinRaid in interface org.bukkit.entity.Raider
    • setCanJoinRaid

      public void setCanJoinRaid(boolean join)
      Specified by:
      setCanJoinRaid in interface org.bukkit.entity.Raider
    • getTicksOutsideRaid

      public int getTicksOutsideRaid()
      Specified by:
      getTicksOutsideRaid in interface org.bukkit.entity.Raider
    • setTicksOutsideRaid

      public void setTicksOutsideRaid(int ticks)
      Specified by:
      setTicksOutsideRaid in interface org.bukkit.entity.Raider
    • isCelebrating

      public boolean isCelebrating()
      Specified by:
      isCelebrating in interface org.bukkit.entity.Raider
    • setCelebrating

      public void setCelebrating(boolean celebrating)
      Specified by:
      setCelebrating in interface org.bukkit.entity.Raider