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
Modifier and TypeClassDescriptionstatic class
Event fired around when the fight begins Allows you to swap out the PixelmonEnity is desiredstatic class
Event fired when the block is deciding what species it should spawn Use the Pre event to cancel itNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEggBlockEvent
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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()
-