RedstoneSide .java

net.minecraft.world.level.block.state.properties.RedstoneSide (enum): members: UP, SIDE, NONE, isConnected, getSerializedName, name. strings: "side".

net.minecraft.world.level.block.state.propertiesenum30 linescommon505 B

Implements

API Surface (3)

String toString()
String getSerializedName()
boolean isConnected()

Fields & Constants (1)

name

String literals (2)

"side"
"none"

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

RedstoneSide.java30 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block.state.properties;
2
3
import net.minecraft.util.StringRepresentable;
4
5
public enum RedstoneSide implements StringRepresentable {
6
	UP("up"),
7
	SIDE("side"),
8
	NONE("none");
9
10
	private final String name;
11
12
	RedstoneSide(final String name) {
13
		this.name = name;
14
	}
15
16
	@Override
17
	public String toString() {
18
		return this.getSerializedName();
19
	}
20
21
	@Override
22
	public String getSerializedName() {
23
		return this.name;
24
	}
25
26
	public boolean isConnected() {
27
		return this != NONE;
28
	}
29
}
30

Decompiled Minecraft 26.3 source of RedstoneSide (net/minecraft/world/level/block/state/properties/RedstoneSide.java) with Mojang official mappings, stored verbatim on the site.