Package cn.nukkit.utils
Interface RedstoneComponent
- All Known Implementing Classes:
BlockBell
,BlockButton
,BlockButtonAcacia
,BlockButtonBirch
,BlockButtonBlackstonePolished
,BlockButtonCrimson
,BlockButtonDarkOak
,BlockButtonJungle
,BlockButtonMangrove
,BlockButtonSpruce
,BlockButtonStone
,BlockButtonWarped
,BlockButtonWooden
,BlockDaylightDetector
,BlockDaylightDetectorInverted
,BlockDispenser
,BlockDoor
,BlockDoorAcacia
,BlockDoorBirch
,BlockDoorCrimson
,BlockDoorDarkOak
,BlockDoorIron
,BlockDoorJungle
,BlockDoorMangrove
,BlockDoorSpruce
,BlockDoorWarped
,BlockDoorWood
,BlockDropper
,BlockFenceGate
,BlockFenceGateAcacia
,BlockFenceGateBirch
,BlockFenceGateCrimson
,BlockFenceGateDarkOak
,BlockFenceGateJungle
,BlockFenceGateMangrove
,BlockFenceGateSpruce
,BlockFenceGateWarped
,BlockHopper
,BlockLectern
,BlockLever
,BlockNoteblock
,BlockObserver
,BlockPiston
,BlockPistonBase
,BlockPistonSticky
,BlockPressurePlateAcacia
,BlockPressurePlateBase
,BlockPressurePlateBirch
,BlockPressurePlateBlackstonePolished
,BlockPressurePlateCrimson
,BlockPressurePlateDarkOak
,BlockPressurePlateJungle
,BlockPressurePlateMangrove
,BlockPressurePlateSpruce
,BlockPressurePlateStone
,BlockPressurePlateWarped
,BlockPressurePlateWood
,BlockRailActivator
,BlockRailDetector
,BlockRailPowered
,BlockRedstone
,BlockRedstoneComparator
,BlockRedstoneComparatorPowered
,BlockRedstoneComparatorUnpowered
,BlockRedstoneDiode
,BlockRedstoneLamp
,BlockRedstoneLampLit
,BlockRedstoneRepeater
,BlockRedstoneRepeaterPowered
,BlockRedstoneRepeaterUnpowered
,BlockRedstoneTorch
,BlockRedstoneTorchUnlit
,BlockRedstoneWire
,BlockSculkSensor
,BlockSkull
,BlockTarget
,BlockTNT
,BlockTrapdoor
,BlockTrapdoorAcacia
,BlockTrapdoorBirch
,BlockTrapdoorCrimson
,BlockTrapdoorDarkOak
,BlockTrapdoorIron
,BlockTrapdoorJungle
,BlockTrapdoorMangrove
,BlockTrapdoorSpruce
,BlockTrapdoorWarped
,BlockTripWireHook
,BlockWeightedPressurePlateHeavy
,BlockWeightedPressurePlateLight
Interface, all redstone components implement, containing redstone related methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
updateAllAroundRedstone
(Position pos, BlockFace... ignoredFaces) Send a redstone update to all blocks around the given position and also around the blocks of those updated blocks.static void
updateAllAroundRedstone
(Position pos, List<BlockFace> ignoredFaces) Send a redstone update to all blocks around the given position and also around the blocks of those updated blocks.default void
updateAllAroundRedstone
(BlockFace... ignoredFaces) Send a redstone update to all blocks around this block.default void
updateAllAroundRedstone
(List<BlockFace> ignoredFaces) Send a redstone update to all blocks around this block and also around the blocks of those updated blocks.static void
updateAroundRedstone
(Position pos, BlockFace... ignoredFaces) Send a redstone update to all blocks around the given position.static void
updateAroundRedstone
(Position pos, List<BlockFace> ignoredFaces) Send a redstone update to all blocks around the given position.default void
updateAroundRedstone
(BlockFace... ignoredFaces) Send a redstone update to all blocks around this block.default void
updateAroundRedstone
(List<BlockFace> ignoredFaces) Send a redstone update to all blocks around this block.
-
Method Details
-
updateAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") default void updateAroundRedstone(@Nullable BlockFace... ignoredFaces) Send a redstone update to all blocks around this block.- Parameters:
ignoredFaces
- The faces, that shouldn't get updated.
-
updateAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") default void updateAroundRedstone(@NotNull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around this block.- Parameters:
ignoredFaces
- The faces, that shouldn't get updated.
-
updateAllAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") default void updateAllAroundRedstone(@Nullable BlockFace... ignoredFaces) Send a redstone update to all blocks around this block.- Parameters:
ignoredFaces
- The faces, that shouldn't get updated.
-
updateAllAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") default void updateAllAroundRedstone(@NotNull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around this block and also around the blocks of those updated blocks.- Parameters:
ignoredFaces
- The faces, that shouldn't get updated.
-
updateAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") static void updateAroundRedstone(@NotNull Position pos, @Nullable BlockFace... ignoredFaces) Send a redstone update to all blocks around the given position.- Parameters:
pos
- The middle of the blocks around.ignoredFaces
- The faces, that shouldn't get updated.
-
updateAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") static void updateAroundRedstone(@NotNull Position pos, @NotNull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around the given position.- Parameters:
pos
- The middle of the blocks around.ignoredFaces
- The faces, that shouldn't get updated.
-
updateAllAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") static void updateAllAroundRedstone(@NotNull Position pos, @Nullable BlockFace... ignoredFaces) Send a redstone update to all blocks around the given position and also around the blocks of those updated blocks.- Parameters:
pos
- The middle of the blocks around.ignoredFaces
- The faces, that shouldn't get updated.
-
updateAllAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") static void updateAllAroundRedstone(@NotNull Position pos, @NotNull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around the given position and also around the blocks of those updated blocks.- Parameters:
pos
- The middle of the blocks around.ignoredFaces
- The faces, that shouldn't get updated.
-