Class MysteryBoxEvent.ComparatorPower

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent
com.pixelmonmod.pixelmon.api.events.blocks.MysteryBoxEvent.ComparatorPower
Enclosing class:
MysteryBoxEvent

public static class MysteryBoxEvent.ComparatorPower extends MysteryBoxEvent
  • Constructor Details

    • ComparatorPower

      public ComparatorPower(MysteryBoxTileEntity box, net.minecraft.world.level.block.state.BlockState blockState, int power)
      Fired when a Mystery Box updates its comparator output strength.
      Parameters:
      box - The Mystery Box tile entity.
      blockState - The block state of this Mystery Box.
      power - The comparator power strength.
  • Method Details

    • getPower

      public int getPower()
      The power strength a comparator will read from this Mystery Box.
      Returns:
      The comparator power strength.
    • setPower

      public void setPower(int power)
      Sets the power strength a comparator will read from this Mystery Box.
      Parameters:
      power - The comparator power strength.