mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-06-10 06:40:25 +02:00
30 lines
653 B
Java
30 lines
653 B
Java
package de.ellpeck.prettypipes.blocks.pipe;
|
|
|
|
import net.minecraft.util.IStringSerializable;
|
|
|
|
import java.util.Locale;
|
|
|
|
public enum ConnectionType implements IStringSerializable {
|
|
CONNECTED_PIPE(true),
|
|
CONNECTED_INVENTORY(true),
|
|
DISCONNECTED(false),
|
|
BLOCKED(false);
|
|
|
|
private final String name;
|
|
private final boolean isConnected;
|
|
|
|
ConnectionType(boolean isConnected) {
|
|
this.name = this.name().toLowerCase(Locale.ROOT);
|
|
this.isConnected = isConnected;
|
|
}
|
|
|
|
public boolean isConnected() {
|
|
return this.isConnected;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
}
|