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, 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

@PowerNukkitOnly @Since("1.4.0.0-PN") public interface RedstoneComponent
Interface, all redstone components implement, containing redstone related methods.
  • 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(@Nonnull 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(@Nonnull 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(@Nonnull 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(@Nonnull Position pos, @Nonnull 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(@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.
      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(@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.
      Parameters:
      pos - The middle of the blocks around.
      ignoredFaces - The faces, that shouldn't get updated.