Class LegendarySpawner


public class LegendarySpawner extends TickingSpawner
The spawner responsible for legendary and mega-boss spawning.
  • Field Details

    • minDistFromCentre

      public int minDistFromCentre
    • maxDistFromCentre

      public int maxDistFromCentre
    • horizontalSliceRadius

      public int horizontalSliceRadius
    • verticalSliceRadius

      public int verticalSliceRadius
    • possibleSpawns

      public List<SpawnAction<?>> possibleSpawns
    • firesChooseEvent

      public boolean firesChooseEvent
      Whether or not this fires the legendary events onto the Pixelmon bus. This is also used to decide which config options to use for spawning frequency and chance.
  • Constructor Details

    • LegendarySpawner

      public LegendarySpawner(String name)
  • Method Details

    • fillNearby

      public static void fillNearby(ArrayList<net.minecraft.server.level.ServerPlayer> allPlayers, ArrayList<net.minecraft.server.level.ServerPlayer> cluster, net.minecraft.server.level.ServerPlayer focus)
    • forcefullySpawn

      public void forcefullySpawn(@Nullable net.minecraft.server.level.ServerPlayer onlyFocus)
    • getSpawns

      public List<SpawnAction<? extends net.minecraft.world.entity.Entity>> getSpawns(int pass)
      Description copied from class: TickingSpawner
      Performs a specific pass, where pass index starts at zero, returning a list of SpawnActions that should execute. Null or empty lists are acceptable. An implementation that doesn't use passes will ignore this parameter.
      Specified by:
      getSpawns in class TickingSpawner
    • doLegendarySpawn

      public CompletableFuture<List<SpawnAction<?>>> doLegendarySpawn(net.minecraft.server.level.ServerPlayer target)
      Attempts to perform a legendary spawn at the given target. This could fail and return null.
    • getNumPasses

      public int getNumPasses()
      Description copied from class: TickingSpawner
      Gets the number of passes. An implementation that doesn't use passes will return 1.
      Specified by:
      getNumPasses in class TickingSpawner