public static class MysteryBoxEvent.ComparatorPower extends MysteryBoxEvent
MysteryBoxEvent.Activate, MysteryBoxEvent.ComparatorPower, MysteryBoxEvent.Feed, MysteryBoxEvent.Open, MysteryBoxEvent.Tick| Constructor and Description |
|---|
ComparatorPower(MysteryBoxTileEntity box,
net.minecraft.block.BlockState blockState,
int power)
Fired when a Mystery Box updates its comparator output strength.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPower()
The power strength a comparator will read from this Mystery Box.
|
void |
setPower(int power)
Sets the power strength a comparator will read from this Mystery Box.
|
getBlockState, getBoxpublic ComparatorPower(MysteryBoxTileEntity box, net.minecraft.block.BlockState blockState, int power)
box - The Mystery Box tile entity.blockState - The block state of this Mystery Box.power - The comparator power strength.public int getPower()
public void setPower(int power)
power - The comparator power strength.