Class RaidRegistry
java.lang.Object
com.pixelmonmod.pixelmon.init.registry.RaidRegistry
Register raid spawns from JSON files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RaidRegistry.RaidCollection>Gets the list of all raids.getBiomeStarWeights(String biome) Gets the raid star weights for a given biome.static Map<String,RaidRegistry.RaidBiomeGrouping> Gets the biome to raid map.static voidregisterRaidSpawns(com.google.gson.JsonObject json) Registers raid spawns.static voidremap()
-
Method Details
-
getAllRaids
Gets the list of all raids.- Returns:
- All registered raids.
-
getBiomeToRaids
Gets the biome to raid map.- Returns:
- Biome to raid map.
-
getBiomeStarWeights
Gets the raid star weights for a given biome.- Parameters:
biome- The biome to get the star weights for.- Returns:
- The star weights for the given biome.
-
registerRaidSpawns
public static void registerRaidSpawns(com.google.gson.JsonObject json) Registers raid spawns.- Parameters:
json- The JSON object containing raid spawn data.
-
remap
public static void remap()
-