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
-
Nested Class Summary
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
ConstructorDescriptionComparatorPower
(MysteryBoxTileEntity box, net.minecraft.world.level.block.state.BlockState blockState, int power) Fired when a Mystery Box updates its comparator output strength. -
Method Summary
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
-
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.
-