Interface RedstonePart

All Superinterfaces:
MultiPart
All Known Subinterfaces:
FaceRedstonePart, MaskedRedstonePart
All Known Implementing Classes:
ButtonPart, ButtonPart.AcaciaButtonPart, ButtonPart.BirchButtonPart, ButtonPart.CrimsonButtonPart, ButtonPart.DarkOakButtonPart, ButtonPart.JungleButtonPart, ButtonPart.OakButtonPart, ButtonPart.PolishedBlackstoneButtonPart, ButtonPart.SpruceButtonPart, ButtonPart.StoneButtonPart, ButtonPart.WarpedButtonPart, LeverPart, RedstoneTorchPart

public interface RedstonePart extends MultiPart
Interface for parts with redstone interaction

Marker interface for TRedstoneTile. This means that if a part is an instance of RedstonePart, the container tile may be cast to RedstoneTile

  • Method Details

    • strongPowerLevel

      int strongPowerLevel(int side)
      Returns the strong (indirect, through blocks) signal being emitted by this part on the specified side.
      Parameters:
      side - The side index.
      Returns:
      The redstone signal.
    • weakPowerLevel

      int weakPowerLevel(int side)
      Returns the weak (direct) being emitted by this part on the specified side.
      Parameters:
      side - The side index.
      Returns:
      The redstone signal.
    • canConnectRedstone

      boolean canConnectRedstone(int side)
      Returns weather this part can connect to redstone on the specified side.

      Blocking parts like covers will be handled by RedstoneInteractions.

      Parameters:
      side - The side index.
      Returns:
      True if redstone can connect.