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

public static class EggBlockEvent.SelectSpecies extends EggBlockEvent
Event fired when the block is deciding what species it should spawn Use the Pre event to cancel it
  • Field Details

    • species

      protected Species 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

      public Species getSpecies()
      If this is null then it means the boss will not spawn
      Returns:
      The species that will spawn