Interface Piston
-
- All Known Implementing Classes:
GPiston
public interface Piston
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidextend()Extend the piston.booleanisExtended()Determines if the piston is extended.booleanisInverted()Determines if the piston is inverted.booleanisRetracted()Determines if the piston is retracted.voidretract()Retract the piston.voidsetInverted(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.
-
-