public enum PistonMoveBehavior extends Enum<PistonMoveBehavior>
MOVE - move as usual.
BREAK - break block and drop necessary items (e.g. flowers).
DONT_MOVE - don't move the block (e.g. bedrock).
MOVE_STICKY - move adjacent blocks too (e.g. slime block)
Enum Constant and Description |
---|
BREAK |
DONT_MOVE |
MOVE |
MOVE_STICKY |
Modifier and Type | Method and Description |
---|---|
static PistonMoveBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PistonMoveBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PistonMoveBehavior MOVE
public static final PistonMoveBehavior BREAK
public static final PistonMoveBehavior DONT_MOVE
public static final PistonMoveBehavior MOVE_STICKY
public static PistonMoveBehavior[] values()
for (PistonMoveBehavior c : PistonMoveBehavior.values()) System.out.println(c);
public static PistonMoveBehavior 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 © 2021. All rights reserved.