StairsShape .java

net.minecraft.world.level.block.state.properties.StairsShape (enum, 28 lines): members: STRAIGHT, INNER_LEFT, INNER_RIGHT, OUTER_LEFT, OUTER_RIGHT, name.

net.minecraft.world.level.block.state.propertiesenum28 linescommon523 B

Implements

API Surface (2)

String toString()
String getSerializedName()

Fields & Constants (1)

name

String literals (5)

"straight"
"inner_left"
"inner_right"
"outer_left"
"outer_right"

Code Graph: Dependencies (1)

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

Full Source

StairsShape.java28 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 StairsShape implements StringRepresentable {
6
	STRAIGHT("straight"),
7
	INNER_LEFT("inner_left"),
8
	INNER_RIGHT("inner_right"),
9
	OUTER_LEFT("outer_left"),
10
	OUTER_RIGHT("outer_right");
11
12
	private final String name;
13
14
	StairsShape(final String name) {
15
		this.name = name;
16
	}
17
18
	@Override
19
	public String toString() {
20
		return this.name;
21
	}
22
23
	@Override
24
	public String getSerializedName() {
25
		return this.name;
26
	}
27
}
28

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