public class LegendarySpawner extends TickingSpawner
Modifier and Type | Class and Description |
---|---|
static class |
LegendarySpawner.LegendarySpawnerBuilder<T extends LegendarySpawner> |
TickingSpawner.TickingSpawnerBuilder<T extends TickingSpawner>
AbstractSpawner.SpawnerBuilder<T extends AbstractSpawner>
Modifier and Type | Field and Description |
---|---|
boolean |
firesChooseEvent
Whether or not this fires the legendary events onto the Pixelmon bus.
|
int |
horizontalSliceRadius |
int |
maxDistFromCentre |
int |
minDistFromCentre |
java.util.List<SpawnAction<?>> |
possibleSpawns |
int |
verticalSliceRadius |
capacity, lastCycleTime, minDistBetweenSpawns, nextSpawnTime, spawnFrequency, spawnLocationCalculator, spawnsPerPass
cacheSets, checkSpawns, conditions, isBusy, lastSpawnTime, name, rarityMultipliers, rarityTweaks, selectionAlgorithm, spawnedTracker, spawnSets, tweaks
Constructor and Description |
---|
LegendarySpawner(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.util.List<SpawnAction<?>>> |
doLegendarySpawn(net.minecraft.entity.player.ServerPlayerEntity target)
Attempts to perform a legendary spawn at the given target.
|
static void |
fillNearby(java.util.ArrayList<net.minecraft.entity.player.ServerPlayerEntity> allPlayers,
java.util.ArrayList<net.minecraft.entity.player.ServerPlayerEntity> cluster,
net.minecraft.entity.player.ServerPlayerEntity focus) |
void |
forcefullySpawn(net.minecraft.entity.player.ServerPlayerEntity onlyFocus) |
int |
getNumPasses()
Gets the number of passes.
|
java.util.List<SpawnAction<? extends net.minecraft.entity.Entity>> |
getSpawns(int pass)
Performs a specific pass, where pass index starts at zero, returning a list of
SpawnAction s
that should execute. |
canSpawn, doPass, hasCapacity, onSpawnEnded, shouldDoSpawning
calculateSpatialData, fits, getCondition, getSuitableSpawns, getTrackedBlockCollection, getTweak, getWeightedSpawnInfo, hasCondition, hasTweak
public int minDistFromCentre
public int maxDistFromCentre
public int horizontalSliceRadius
public int verticalSliceRadius
public java.util.List<SpawnAction<?>> possibleSpawns
public boolean firesChooseEvent
public static void fillNearby(java.util.ArrayList<net.minecraft.entity.player.ServerPlayerEntity> allPlayers, java.util.ArrayList<net.minecraft.entity.player.ServerPlayerEntity> cluster, net.minecraft.entity.player.ServerPlayerEntity focus)
public void forcefullySpawn(@Nullable net.minecraft.entity.player.ServerPlayerEntity onlyFocus)
public java.util.List<SpawnAction<? extends net.minecraft.entity.Entity>> getSpawns(int pass)
TickingSpawner
SpawnAction
s
that should execute. Null or empty lists are acceptable. An implementation that doesn't use passes
will ignore this parameter.getSpawns
in class TickingSpawner
public java.util.concurrent.CompletableFuture<java.util.List<SpawnAction<?>>> doLegendarySpawn(net.minecraft.entity.player.ServerPlayerEntity target)
public int getNumPasses()
TickingSpawner
getNumPasses
in class TickingSpawner