Class GroupSpawnSettings
java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.archetypes.group.GroupSpawnSettings
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionGroupSpawnSettings
(PokemonSpecification spec, float chance, Range amountRange, net.minecraft.core.Vec3i spawnRangeMinimum, net.minecraft.core.Vec3i spawnRangeMaximum) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
spawnPokemon
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos center, SpawnLocationType spawnLocationType, int flockId, AbstractSpawner spawner, SpawnInfoPokemon info, SpawnLocation location)
-
Constructor Details
-
GroupSpawnSettings
public GroupSpawnSettings(PokemonSpecification spec, float chance, Range amountRange, net.minecraft.core.Vec3i spawnRangeMinimum, net.minecraft.core.Vec3i spawnRangeMaximum)
-
-
Method Details
-
shouldSpawn
public boolean shouldSpawn() -
getRandomAmount
public int getRandomAmount() -
spawnPokemon
public PixelmonEntity spawnPokemon(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos center, SpawnLocationType spawnLocationType, int flockId, AbstractSpawner spawner, SpawnInfoPokemon info, SpawnLocation location)
-