Class PixelmonSpawning
java.lang.Object
com.pixelmonmod.pixelmon.spawning.PixelmonSpawning
Managing class for Pixelmon's implementation of the Better Spawner. This class
is responsible for housing the used
SpawnerCoordinator
, many of the set
list references, and the trigger spawners used directly in the different sections
of the codebase such as in fishing and external moves.
It is strongly advised to add to or configure Pixelmon's implementation instead of attempting to bypass this class.
-
Field Summary
Modifier and TypeFieldDescriptionTheSpawnSet
s used forcaveRockSpawner
.The preset to use to create theTriggerSpawner
for cave rock spawning.static TriggerSpawner
TheTriggerSpawner
used for cave rocks.static SpawnerCoordinator
The coordinator being used for Pixelmon spawning.TheSpawnSet
s used forcurrySpawner
.The preset to use to create theTriggerSpawner
for Curry spawning.static TriggerSpawner
TheTriggerSpawner
used for curry.TheSpawnSet
s used forfishingSpawner
.The preset to use to create theTriggerSpawner
for fishing spawning.static TriggerSpawner
TheTriggerSpawner
used for fishing.TheSpawnSet
s userd forforageSpawner
.The preset to use to create theTriggerSpawner
for forage spawning.static TriggerSpawner
TheTriggerSpawner
userd for forageTheSpawnSet
s used forgrassSpawner
.static TriggerSpawner
TheTriggerSpawner
used for Pixelmon grass.TheSpawnSet
s used forheadbuttSpawner
.The preset to use to create theTriggerSpawner
for Headbutt spawning.static TriggerSpawner
TheTriggerSpawner
used for Headbutt.TheSpawnSet
s used for the legendary spawner.static LegendarySpawner
TheLegendarySpawner
used for legendary spawning.The preset to use to create theLegendarySpawner
for legendaries.static LegendarySpawner
TheLegendarySpawner
used for mega boss spawning.The preset to use to create theLegendarySpawner
s for mega bosses.TheSpawnSet
s used for the mega boss spawner.The NPCSpawnSet
s, for thePlayerTrackingSpawner
.The preset to use to create theTriggerSpawner
for Pixelmon double-grass spawning.The preset to use to create theTriggerSpawner
for Pixelmon grass spawning.TheSpawnSet
s used forrocksmashSpawner
.The preset to use to create theTriggerSpawner
for Rock Smash spawning.static TriggerSpawner
TheTriggerSpawner
used for Rock Smash.TheSpawnSet
s used forseaweedSpawner
.The preset to use to create theTriggerSpawner
for seaweed spawning.static TriggerSpawner
TheTriggerSpawner
used for seaweed (NOT IMPLEMENTED).The standardSpawnSet
s, for thePlayerTrackingSpawner
.TheSpawnSet
s used forsweetscentSpawner
.The preset to use to create theTriggerSpawner
for Sweet Scent spawning.static TriggerSpawner
TheTriggerSpawner
used for Sweet Scent.TheSpawnSet
s used fortallGrassSpawner
.static TriggerSpawner
TheTriggerSpawner
used for tall grass (NOT IMPLEMENTED).The preset to use for all thePlayerTrackingSpawner
s. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addRegularSpawners
(SpawnerCoordinator coordinator) static void
getAll()
Get all loaded spawn sets per spawner typestatic void
Performs registration of allSpawnSet
s and initializes all spawners.static void
loadSpawnSet
(SpawnSet set, net.minecraft.resources.ResourceLocation rl) static void
Starts theTrackingSpawnerCoordinator
, the top class of Pixelmon's implementation of the Better Spawner.
-
Field Details
-
coordinator
The coordinator being used for Pixelmon spawning. -
standard
The standardSpawnSet
s, for thePlayerTrackingSpawner
. -
legendaries
TheSpawnSet
s used for the legendary spawner. -
fishing
TheSpawnSet
s used forfishingSpawner
. -
megas
TheSpawnSet
s used for the mega boss spawner. -
npcs
The NPCSpawnSet
s, for thePlayerTrackingSpawner
. -
rocksmash
TheSpawnSet
s used forrocksmashSpawner
. -
headbutt
TheSpawnSet
s used forheadbuttSpawner
. -
sweetscent
TheSpawnSet
s used forsweetscentSpawner
. -
curry
TheSpawnSet
s used forcurrySpawner
. -
grass
TheSpawnSet
s used forgrassSpawner
. -
tallgrass
TheSpawnSet
s used fortallGrassSpawner
. -
seaweed
TheSpawnSet
s used forseaweedSpawner
. -
caveRock
TheSpawnSet
s used forcaveRockSpawner
. -
forage
TheSpawnSet
s userd forforageSpawner
. -
legendarySpawner
TheLegendarySpawner
used for legendary spawning. -
megaBossSpawner
TheLegendarySpawner
used for mega boss spawning. -
fishingSpawner
TheTriggerSpawner
used for fishing. -
rocksmashSpawner
TheTriggerSpawner
used for Rock Smash. -
headbuttSpawner
TheTriggerSpawner
used for Headbutt. -
sweetscentSpawner
TheTriggerSpawner
used for Sweet Scent. -
currySpawner
TheTriggerSpawner
used for curry. -
grassSpawner
TheTriggerSpawner
used for Pixelmon grass. -
tallGrassSpawner
TheTriggerSpawner
used for tall grass (NOT IMPLEMENTED). -
seaweedSpawner
TheTriggerSpawner
used for seaweed (NOT IMPLEMENTED). -
caveRockSpawner
TheTriggerSpawner
used for cave rocks. -
forageSpawner
TheTriggerSpawner
userd for forage -
trackingSpawnerPreset
public static PlayerTrackingSpawner.PlayerTrackingSpawnerBuilder<PlayerTrackingSpawner> trackingSpawnerPresetThe preset to use for all thePlayerTrackingSpawner
s. -
legendarySpawnerPreset
The preset to use to create theLegendarySpawner
for legendaries. -
megaBossSpawnerPreset
The preset to use to create theLegendarySpawner
s for mega bosses. -
rockSmashPreset
The preset to use to create theTriggerSpawner
for Rock Smash spawning. -
headbuttPreset
The preset to use to create theTriggerSpawner
for Headbutt spawning. -
sweetScentPreset
The preset to use to create theTriggerSpawner
for Sweet Scent spawning. -
curryPreset
The preset to use to create theTriggerSpawner
for Curry spawning. -
pixelmonGrassPreset
The preset to use to create theTriggerSpawner
for Pixelmon grass spawning. -
pixelmonDoubleGrassPreset
The preset to use to create theTriggerSpawner
for Pixelmon double-grass spawning. -
seaweedPreset
The preset to use to create theTriggerSpawner
for seaweed spawning. -
caverockPreset
The preset to use to create theTriggerSpawner
for cave rock spawning. -
fishingPreset
The preset to use to create theTriggerSpawner
for fishing spawning. -
foragePreset
The preset to use to create theTriggerSpawner
for forage spawning.
-
-
Constructor Details
-
PixelmonSpawning
public PixelmonSpawning()
-
-
Method Details
-
startTrackingSpawner
public static void startTrackingSpawner()Starts theTrackingSpawnerCoordinator
, the top class of Pixelmon's implementation of the Better Spawner. -
clearSpawning
public static void clearSpawning() -
loadSpawnSet
-
initialize
public static void initialize()Performs registration of allSpawnSet
s and initializes all spawners. This does not start the tracking coordinator yet. -
addRegularSpawners
-
getAll
Get all loaded spawn sets per spawner type- Returns:
- hashmap of spawner-type to list of spawnsets
-