Class EggBlockEvent.SelectSpecies
java.lang.Object
net.minecraftforge.eventbus.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
Modifier 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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.block.EggBlockEvent
block, level, state
-
Constructor Summary
ConstructorDescriptionSelectSpecies
(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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-