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
FieldsModifier and TypeFieldDescriptionTheSpawnSets used forcaveRockSpawner.The preset to use to create theTriggerSpawnerfor cave rock spawning.static TriggerSpawnerTheTriggerSpawnerused for cave rocks.static SpawnerCoordinatorThe coordinator being used for Pixelmon spawning.TheSpawnSets used forcurrySpawner.The preset to use to create theTriggerSpawnerfor Curry spawning.static TriggerSpawnerTheTriggerSpawnerused for curry.TheSpawnSets used forfishingSpawner.The preset to use to create theTriggerSpawnerfor fishing spawning.static TriggerSpawnerTheTriggerSpawnerused for fishing.TheSpawnSets userd forforageSpawner.The preset to use to create theTriggerSpawnerfor forage spawning.static TriggerSpawnerTheTriggerSpawneruserd for forageTheSpawnSets used forgrassSpawner.static TriggerSpawnerTheTriggerSpawnerused for Pixelmon grass.TheSpawnSets used forheadbuttSpawner.The preset to use to create theTriggerSpawnerfor Headbutt spawning.static TriggerSpawnerTheTriggerSpawnerused for Headbutt.TheSpawnSets used for the legendary spawner.static LegendarySpawnerTheLegendarySpawnerused for legendary spawning.The preset to use to create theLegendarySpawnerfor legendaries.static LegendarySpawnerTheLegendarySpawnerused for mega boss spawning.The preset to use to create theLegendarySpawners for mega bosses.TheSpawnSets used for the mega boss spawner.The NPCSpawnSets, for thePlayerTrackingSpawner.The preset to use to create theTriggerSpawnerfor Pixelmon double-grass spawning.The preset to use to create theTriggerSpawnerfor Pixelmon grass spawning.TheSpawnSets used forrocksmashSpawner.The preset to use to create theTriggerSpawnerfor Rock Smash spawning.static TriggerSpawnerTheTriggerSpawnerused for Rock Smash.TheSpawnSets used forseaweedSpawner.The preset to use to create theTriggerSpawnerfor seaweed spawning.static TriggerSpawnerTheTriggerSpawnerused for seaweed (NOT IMPLEMENTED).The standardSpawnSets, for thePlayerTrackingSpawner.TheSpawnSets used forsweetscentSpawner.The preset to use to create theTriggerSpawnerfor Sweet Scent spawning.static TriggerSpawnerTheTriggerSpawnerused for Sweet Scent.TheSpawnSets used fortallGrassSpawner.static TriggerSpawnerTheTriggerSpawnerused for tall grass (NOT IMPLEMENTED).The preset to use for all thePlayerTrackingSpawners. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddRegularSpawners(SpawnerCoordinator coordinator) static voidgetAll()Get all loaded spawn sets per spawner typestatic voidPerforms registration of allSpawnSets and initializes all spawners.static voidloadSpawnSet(SpawnSet set, net.minecraft.resources.ResourceLocation rl) static voidStarts theTrackingSpawnerCoordinator, the top class of Pixelmon's implementation of the Better Spawner.
-
Field Details
-
coordinator
The coordinator being used for Pixelmon spawning. -
standard
The standardSpawnSets, for thePlayerTrackingSpawner. -
legendaries
TheSpawnSets used for the legendary spawner. -
fishing
TheSpawnSets used forfishingSpawner. -
megas
TheSpawnSets used for the mega boss spawner. -
npcs
The NPCSpawnSets, for thePlayerTrackingSpawner. -
rocksmash
TheSpawnSets used forrocksmashSpawner. -
headbutt
TheSpawnSets used forheadbuttSpawner. -
sweetscent
TheSpawnSets used forsweetscentSpawner. -
curry
TheSpawnSets used forcurrySpawner. -
grass
TheSpawnSets used forgrassSpawner. -
tallgrass
TheSpawnSets used fortallGrassSpawner. -
seaweed
TheSpawnSets used forseaweedSpawner. -
caveRock
TheSpawnSets used forcaveRockSpawner. -
forage
TheSpawnSets userd forforageSpawner. -
legendarySpawner
TheLegendarySpawnerused for legendary spawning. -
megaBossSpawner
TheLegendarySpawnerused for mega boss spawning. -
fishingSpawner
TheTriggerSpawnerused for fishing. -
rocksmashSpawner
TheTriggerSpawnerused for Rock Smash. -
headbuttSpawner
TheTriggerSpawnerused for Headbutt. -
sweetscentSpawner
TheTriggerSpawnerused for Sweet Scent. -
currySpawner
TheTriggerSpawnerused for curry. -
grassSpawner
TheTriggerSpawnerused for Pixelmon grass. -
tallGrassSpawner
TheTriggerSpawnerused for tall grass (NOT IMPLEMENTED). -
seaweedSpawner
TheTriggerSpawnerused for seaweed (NOT IMPLEMENTED). -
caveRockSpawner
TheTriggerSpawnerused for cave rocks. -
forageSpawner
TheTriggerSpawneruserd for forage -
trackingSpawnerPreset
public static PlayerTrackingSpawner.PlayerTrackingSpawnerBuilder<PlayerTrackingSpawner> trackingSpawnerPresetThe preset to use for all thePlayerTrackingSpawners. -
legendarySpawnerPreset
The preset to use to create theLegendarySpawnerfor legendaries. -
megaBossSpawnerPreset
The preset to use to create theLegendarySpawners for mega bosses. -
rockSmashPreset
The preset to use to create theTriggerSpawnerfor Rock Smash spawning. -
headbuttPreset
The preset to use to create theTriggerSpawnerfor Headbutt spawning. -
sweetScentPreset
The preset to use to create theTriggerSpawnerfor Sweet Scent spawning. -
curryPreset
The preset to use to create theTriggerSpawnerfor Curry spawning. -
pixelmonGrassPreset
The preset to use to create theTriggerSpawnerfor Pixelmon grass spawning. -
pixelmonDoubleGrassPreset
The preset to use to create theTriggerSpawnerfor Pixelmon double-grass spawning. -
seaweedPreset
The preset to use to create theTriggerSpawnerfor seaweed spawning. -
caverockPreset
The preset to use to create theTriggerSpawnerfor cave rock spawning. -
fishingPreset
The preset to use to create theTriggerSpawnerfor fishing spawning. -
foragePreset
The preset to use to create theTriggerSpawnerfor 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 allSpawnSets 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
-