Class MysteryBoxEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent
- Direct Known Subclasses:
MysteryBoxEvent.Activate
,MysteryBoxEvent.ComparatorPower
,MysteryBoxEvent.Feed
,MysteryBoxEvent.Open
,MysteryBoxEvent.Tick
public abstract class MysteryBoxEvent
extends net.minecraftforge.eventbus.api.Event
Events relating to the operation and activation of the Mystery Box.
- Since:
- August 1, 2022
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
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
ModifierConstructorDescriptionprotected
MysteryBoxEvent
(MysteryBoxTileEntity box, net.minecraft.world.level.block.state.BlockState blockState) Base constructor. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockState
Gets the block state associated with the Mystery Box associated with this event.getBox()
Gets the Mystery Box tile entity associated with this event.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
MysteryBoxEvent
protected MysteryBoxEvent(MysteryBoxTileEntity box, net.minecraft.world.level.block.state.BlockState blockState) Base constructor.- Parameters:
box
- The Mystery Box tile entity.blockState
- The block state of this Mystery Box.
-
-
Method Details
-
getBox
Gets the Mystery Box tile entity associated with this event.- Returns:
- The Mystery Box tile entity.
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState()Gets the block state associated with the Mystery Box associated with this event.- Returns:
- The Mystery Box block state.
-