Class PartRedstonePowerEvent
java.lang.Object
alexiil.mc.lib.multipart.api.event.MultipartEvent
alexiil.mc.lib.multipart.api.event.PartRedstonePowerEvent
- Direct Known Subclasses:
PartRedstonePowerEvent.PartStrongRedstonePowerEvent
,PartRedstonePowerEvent.PartWeakRedstonePowerEvent
Fired during
AbstractBlock.getStrongRedstonePower(BlockState, BlockView,BlockPos, Direction)
and
AbstractBlock.getWeakRedstonePower(BlockState, BlockView, BlockPos, Direction)
, however the more specific classes
PartRedstonePowerEvent.PartStrongRedstonePowerEvent
and PartRedstonePowerEvent.PartWeakRedstonePowerEvent
are only fired during their respective
method calls.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Event factory.static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
The value inMultipartProperties.getWeakRedstonePower(Direction)
(andMultipartProperties.getStrongRedstonePower(Direction)
if thisisStrong()
).final Direction
-
Method Summary
-
Field Details
-
powerProperty
public final int powerPropertyThe value inMultipartProperties.getWeakRedstonePower(Direction)
(andMultipartProperties.getStrongRedstonePower(Direction)
if thisisStrong()
). -
side
-
-
Method Details
-
set
public void set(int value) -
isStrong
public abstract boolean isStrong()
-