public static enum PowerComponent.InteractionType extends java.lang.Enum<PowerComponent.InteractionType>
PowerComponent is changed.| Enum Constant and Description |
|---|
BOTH
The
PowerComponent is affected by both right click and neighbor redstone power change. |
REDSTONE
The
PowerComponent is affected by neighbor redstone power change. |
RIGHT_CLICK
The
PowerComponent is affected by right click. |
| Modifier and Type | Method and Description |
|---|---|
static PowerComponent.InteractionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerComponent.InteractionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerComponent.InteractionType RIGHT_CLICK
PowerComponent is affected by right click.public static final PowerComponent.InteractionType REDSTONE
PowerComponent is affected by neighbor redstone power change.public static final PowerComponent.InteractionType BOTH
PowerComponent is affected by both right click and neighbor redstone power change.public static PowerComponent.InteractionType[] values()
for (PowerComponent.InteractionType c : PowerComponent.InteractionType.values()) System.out.println(c);
public static PowerComponent.InteractionType 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 null