Class MysteryBoxEvent.Tick.DoSpawn
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent
com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent.Tick
com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent.Tick.DoSpawn
- Enclosing class:
- MysteryBoxEvent.Tick
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent.Tick
MysteryBoxEvent.Tick.AboutToClose, MysteryBoxEvent.Tick.DoSpawn, MysteryBoxEvent.Tick.Start, MysteryBoxEvent.Tick.TrySpawn
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent
MysteryBoxEvent.Activate, MysteryBoxEvent.ComparatorPower, MysteryBoxEvent.Feed, MysteryBoxEvent.Open, MysteryBoxEvent.Tick
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionDoSpawn
(MysteryBoxTileEntity box, net.minecraft.world.level.block.state.BlockState blockState, PixelmonEntity pokemon) Fired immediately before a Mystery Box spawns a Pokémon in the world. -
Method Summary
Modifier and TypeMethodDescriptionThe Pokémon this Mystery Box wants to spawn.Methods inherited from class com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent
getBlockState, getBox
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
DoSpawn
public DoSpawn(MysteryBoxTileEntity box, net.minecraft.world.level.block.state.BlockState blockState, PixelmonEntity pokemon) Fired immediately before a Mystery Box spawns a Pokémon in the world. Cancelable.- Parameters:
box
- The Mystery Box tile entity.blockState
- The block state of this Mystery Box.pokemon
- The Pokémon this Mystery Box wants to spawn.
-
-
Method Details
-
getPokemon
The Pokémon this Mystery Box wants to spawn.- Returns:
- The Pokémon being spawned.
-