Class MysteryBoxEvent
java.lang.Object
net.neoforged.bus.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.neoforged.bus.api.Event
Events relating to the operation and activation of the Mystery Box.
- Since:
- August 1, 2022
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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.
-
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.
-