Half .java

net.minecraft.world.level.block.state.properties.Half (enum, 25 lines): members: TOP, BOTTOM, getSerializedName, name. strings: "bottom".

net.minecraft.world.level.block.state.propertiesenum25 linescommon406 B

Implements

API Surface (2)

String toString()
String getSerializedName()

Fields & Constants (1)

name

String literals (1)

"bottom"

Code Graph: Dependencies (1)

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

Full Source

Half.java25 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 Half implements StringRepresentable {
6
	TOP("top"),
7
	BOTTOM("bottom");
8
9
	private final String name;
10
11
	Half(final String name) {
12
		this.name = name;
13
	}
14
15
	@Override
16
	public String toString() {
17
		return this.name;
18
	}
19
20
	@Override
21
	public String getSerializedName() {
22
		return this.name;
23
	}
24
}
25

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