Class EggBlockEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.block.EggBlockEvent
Direct Known Subclasses:
EggBlockEvent.BeginFight, EggBlockEvent.SelectSpecies

public class EggBlockEvent extends net.minecraftforge.eventbus.api.Event
All events surrounding interactions with the PokemonEggBlock
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event fired around when the fight begins Allows you to swap out the PixelmonEnity is desired
    static class 
    Event fired when the block is deciding what species it should spawn Use the Pre event to cancel it

    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 final net.minecraft.core.BlockPos
     
    protected final net.minecraft.world.level.Level
     
    protected final net.minecraft.world.level.block.state.BlockState
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EggBlockEvent(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.BlockPos
     
    net.minecraft.world.level.Level
     
    net.minecraft.world.level.block.state.BlockState
     

    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

    • level

      protected final net.minecraft.world.level.Level level
    • block

      protected final net.minecraft.core.BlockPos block
    • state

      protected final net.minecraft.world.level.block.state.BlockState state
  • Constructor Details

    • EggBlockEvent

      public EggBlockEvent(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getLevel

      public net.minecraft.world.level.Level getLevel()
    • getBlock

      public net.minecraft.core.BlockPos getBlock()
    • getState

      public net.minecraft.world.level.block.state.BlockState getState()