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
  • 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

      public MysteryBoxTileEntity 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.