public enum PressurePlate extends Enum<PressurePlate> implements Metadata
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive() |
String |
toString() |
static PressurePlate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PressurePlate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PressurePlate INACTIVE
public static final PressurePlate ACTIVE
public static PressurePlate[] values()
for (PressurePlate c : PressurePlate.values()) System.out.println(c);
public static PressurePlate 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 nullpublic boolean isActive()
public String toString()
toString in class Enum<PressurePlate>Copyright © 2017–2019 NukkitX. All rights reserved.