minecraft-src/net/minecraft/world/level/block/state/properties/RedstoneSide.java
2025-07-04 01:41:11 +03:00

28 lines
502 B
Java

package net.minecraft.world.level.block.state.properties;
import net.minecraft.util.StringRepresentable;
public enum RedstoneSide implements StringRepresentable {
UP("up"),
SIDE("side"),
NONE("none");
private final String name;
private RedstoneSide(final String name) {
this.name = name;
}
public String toString() {
return this.getSerializedName();
}
@Override
public String getSerializedName() {
return this.name;
}
public boolean isConnected() {
return this != NONE;
}
}