public enum RedstoneAction extends java.lang.Enum<RedstoneAction> implements IRedstoneAction, IEnumValues<RedstoneAction>
| Enum Constant and Description |
|---|
IGNORE |
NO_REDSTONE |
ONCE |
WITH_REDSTONE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRun(IRedstoneState state) |
java.lang.String |
getName() |
RedstoneAction |
getValue(java.lang.String name) |
java.util.List<RedstoneAction> |
getValues() |
boolean |
startsOnChange() |
static RedstoneAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RedstoneAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedstoneAction IGNORE
public static final RedstoneAction NO_REDSTONE
public static final RedstoneAction WITH_REDSTONE
public static final RedstoneAction ONCE
public static RedstoneAction[] values()
for (RedstoneAction c : RedstoneAction.values()) System.out.println(c);
public static RedstoneAction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean canRun(IRedstoneState state)
canRun in interface IRedstoneActionpublic boolean startsOnChange()
startsOnChange in interface IRedstoneActionpublic java.util.List<RedstoneAction> getValues()
getValues in interface IEnumValues<RedstoneAction>public RedstoneAction getValue(java.lang.String name)
getValue in interface IEnumValues<RedstoneAction>public java.lang.String getName()
getName in interface IRedstoneAction