Serializable
, Comparable<TechnicalPiston.Type>
public static enum TechnicalPiston.Type extends Enum<TechnicalPiston.Type>
Enum Constant | Description |
---|---|
NORMAL |
A normal piston which does not pull connected blocks backwards on
retraction.
|
STICKY |
A sticky piston which will also retract connected blocks.
|
Modifier and Type | Method | Description |
---|---|---|
static TechnicalPiston.Type |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static TechnicalPiston.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TechnicalPiston.Type NORMAL
public static final TechnicalPiston.Type STICKY
public static TechnicalPiston.Type[] values()
for (TechnicalPiston.Type c : TechnicalPiston.Type.values()) System.out.println(c);
public static TechnicalPiston.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.