程序包 cn.nukkit.utils
接口 RedstoneComponent
- 所有已知实现类:
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
,BlockRailPowered
,BlockRedstone
,BlockRedstoneComparator
,BlockRedstoneComparatorPowered
,BlockRedstoneComparatorUnpowered
,BlockRedstoneDiode
,BlockRedstoneLamp
,BlockRedstoneLampLit
,BlockRedstoneRepeater
,BlockRedstoneRepeaterPowered
,BlockRedstoneRepeaterUnpowered
,BlockRedstoneTorch
,BlockRedstoneTorchUnlit
,BlockRedstoneWire
,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.
-
方法概要
修饰符和类型方法说明static 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.
-
方法详细资料
-
updateAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") default void updateAroundRedstone(@Nullable BlockFace... ignoredFaces) Send a redstone update to all blocks around this block.- 参数:
ignoredFaces
- The faces, that shouldn't get updated.
-
updateAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") default void updateAroundRedstone(@Nonnull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around this block.- 参数:
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.- 参数:
ignoredFaces
- The faces, that shouldn't get updated.
-
updateAllAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") default void updateAllAroundRedstone(@Nonnull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around this block and also around the blocks of those updated blocks.- 参数:
ignoredFaces
- The faces, that shouldn't get updated.
-
updateAroundRedstone
@PowerNukkitOnly @Since("1.4.0.0-PN") static void updateAroundRedstone(@Nonnull Position pos, @Nullable BlockFace... ignoredFaces) Send a redstone update to all blocks around the given position.- 参数:
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(@Nonnull Position pos, @Nonnull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around the given position.- 参数:
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(@Nonnull 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.- 参数:
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(@Nonnull Position pos, @Nonnull List<BlockFace> ignoredFaces) Send a redstone update to all blocks around the given position and also around the blocks of those updated blocks.- 参数:
pos
- The middle of the blocks around.ignoredFaces
- The faces, that shouldn't get updated.
-