Interface Piston

  • All Known Implementing Classes:
    GPiston

    public interface Piston
    • Method Detail

      • extend

        void extend()
        Extend the piston.
      • retract

        void retract()
        Retract the piston.
      • isExtended

        boolean isExtended()
        Determines if the piston is extended.
        Returns:
        True if the piston is extended.
      • isRetracted

        boolean isRetracted()
        Determines if the piston is retracted.
        Returns:
        True if the piston is retracted.
      • setInverted

        void setInverted​(boolean inverted)
        Invert the piston.
        Parameters:
        inverted - True if the piston is inverted.
      • isInverted

        boolean isInverted()
        Determines if the piston is inverted.
        Returns:
        True if the piston is inverted.