Interface Piston
-
- All Known Implementing Classes:
GPiston
public interface Piston
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
extend()
Extend the piston.boolean
isExtended()
Determines if the piston is extended.boolean
isInverted()
Determines if the piston is inverted.boolean
isRetracted()
Determines if the piston is retracted.void
retract()
Retract the piston.void
setInverted(boolean inverted)
Invert the 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.
-
-