public static enum PowerComponent.ComponentType extends java.lang.Enum<PowerComponent.ComponentType>
PowerComponent should receive or provide redstone power.| Enum Constant and Description |
|---|
BOTH
The
PowerComponent is both a power provider and receiver. |
NONE
The
PowerComponent doesn't provide nor react to redstone. |
PROVIDER
The
PowerComponent is a power provider and emits redstone current. |
RECEIVER
The
PowerComponent is a power receiver and reacts to redstone current. |
| Modifier and Type | Method and Description |
|---|---|
static PowerComponent.ComponentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerComponent.ComponentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerComponent.ComponentType PROVIDER
PowerComponent is a power provider and emits redstone current.public static final PowerComponent.ComponentType RECEIVER
PowerComponent is a power receiver and reacts to redstone current.public static final PowerComponent.ComponentType BOTH
PowerComponent is both a power provider and receiver.public static final PowerComponent.ComponentType NONE
PowerComponent doesn't provide nor react to redstone. (On/Off is handled by the block)public static PowerComponent.ComponentType[] values()
for (PowerComponent.ComponentType c : PowerComponent.ComponentType.values()) System.out.println(c);
public static PowerComponent.ComponentType 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