Class EggBlockEvent.SelectSpecies
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.block.EggBlockEvent
com.pixelmonmod.pixelmon.api.block.EggBlockEvent.SelectSpecies
- Direct Known Subclasses:
EggBlockEvent.SelectSpecies.Post
,EggBlockEvent.SelectSpecies.Pre
- Enclosing class:
EggBlockEvent
Event fired when the block is deciding what species it should spawn
Use the Pre event to cancel it
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Fired after the species is selectedstatic class
Fired before the species is decided - setting the species to null prevents the boss from spawningNested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.block.EggBlockEvent
EggBlockEvent.BeginFight, EggBlockEvent.SelectSpecies
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.api.block.EggBlockEvent
block, level, state
-
Constructor Summary
ConstructorsConstructorDescriptionSelectSpecies
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, net.minecraft.world.level.block.state.BlockState state, Species species) -
Method Summary
Modifier and TypeMethodDescriptionIf this is null then it means the boss will not spawnMethods inherited from class com.pixelmonmod.pixelmon.api.block.EggBlockEvent
getBlock, getLevel, getState
-
Field Details
-
species
-
-
Constructor Details
-
SelectSpecies
public SelectSpecies(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, net.minecraft.world.level.block.state.BlockState state, @Nullable Species species)
-
-
Method Details
-
getSpecies
If this is null then it means the boss will not spawn- Returns:
- The species that will spawn
-