public static class LegendarySpawnEvent.ChoosePlayer extends LegendarySpawnEvent
LegendarySpawner
has selected which player to spawn a legendary near.
Which Pokémon will spawn has not been chosen at this point, and whether or not a legendary will
spawn is not guaranteed. This is only for deciding where to look for a legendary spawn location.
The spawner included in this event is guaranteed to be a LegendarySpawner
Cancelling this event or making the player null will prevent a legendary spawn calculation from occurring.
LegendarySpawnEvent.ChoosePlayer, LegendarySpawnEvent.DoSpawn
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.util.ArrayList<net.minecraft.entity.player.EntityPlayerMP>> |
clusters
The clusters of players that are considered during selection.
|
net.minecraft.entity.player.EntityPlayerMP |
player
The player to potentially spawn a legendary near.
|
spawner
Constructor and Description |
---|
ChoosePlayer(LegendarySpawner spawner,
net.minecraft.entity.player.EntityPlayerMP player,
java.util.ArrayList<java.util.ArrayList<net.minecraft.entity.player.EntityPlayerMP>> clusters) |
public net.minecraft.entity.player.EntityPlayerMP player
public final java.util.ArrayList<java.util.ArrayList<net.minecraft.entity.player.EntityPlayerMP>> clusters
public ChoosePlayer(LegendarySpawner spawner, net.minecraft.entity.player.EntityPlayerMP player, java.util.ArrayList<java.util.ArrayList<net.minecraft.entity.player.EntityPlayerMP>> clusters)