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

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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fired after the species is selected
    static class 
    Fired before the species is decided - setting the species to null prevents the boss from spawning

    Nested 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
    Modifier and Type
    Field
    Description
    protected Species
     

    Fields inherited from class com.pixelmonmod.pixelmon.api.block.EggBlockEvent

    block, level, state
  • Constructor Summary

    Constructors
    Constructor
    Description
    SelectSpecies(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 Type
    Method
    Description
    If this is null then it means the boss will not spawn

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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