Interface RedstoneWire

All Superinterfaces:
AnaloguePowerable, BlockData, Cloneable

public interface RedstoneWire extends AnaloguePowerable
'north', 'east', 'south', 'west' represent the types of connections this redstone wire has to adjacent blocks.
  • Method Details

    • getFace

      @NotNull RedstoneWire.Connection getFace(@NotNull BlockFace face)
      Checks the type of connection on the specified face.
      Parameters:
      face - to check
      Returns:
      connection type
    • setFace

      void setFace(@NotNull BlockFace face, @NotNull RedstoneWire.Connection connection)
      Sets the type of connection on the specified face.
      Parameters:
      face - to set
      connection - the connection type
    • getAllowedFaces

      @NotNull Set<BlockFace> getAllowedFaces()
      Gets all of this faces which may be set on this block.
      Returns:
      all allowed faces