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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEvent factory.static final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe 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()
-