Class EggBlockEvent.SelectSpecies.Pre

java.lang.Object
net.neoforged.bus.api.Event
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
EggBlockEvent.SelectSpecies

public static class EggBlockEvent.SelectSpecies.Pre extends EggBlockEvent.SelectSpecies implements net.neoforged.bus.api.ICancellableEvent
Fired before the species is decided - setting the species to null prevents the boss from spawning
  • Constructor Details

    • Pre

      public Pre(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, net.minecraft.world.level.block.state.BlockState state, @Nullable Species species)
  • Method Details

    • setSpecies

      public void setSpecies(@Nullable Species species)