PistonMoveType

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.event.block.piston.PistonMoveType;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

PistonMoveType is an enum with 2 constants. They are accessible like so:

script.zs
// PistonMoveType.EXTEND
<constant:neoforge:event/piston/move_type:extend>
// PistonMoveType.RETRACT
<constant:neoforge:event/piston/move_type:retract>

Members

Getter
script.zs
// PistonMoveType.extend as bool
<constant:neoforge:event/piston/move_type:extend>.extend

Return Type: bool