ComparatorMode .java

net.minecraft.world.level.block.state.properties.ComparatorMode (enum, 25 lines): members: COMPARE, SUBTRACT, getSerializedName, name. strings: "compare".

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

Implements

API Surface (2)

String toString()
String getSerializedName()

Fields & Constants (1)

name

String literals (2)

"compare"
"subtract"

Code Graph: Dependencies (1)

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

Full Source

ComparatorMode.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 ComparatorMode implements StringRepresentable {
6
	COMPARE("compare"),
7
	SUBTRACT("subtract");
8
9
	private final String name;
10
11
	ComparatorMode(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 ComparatorMode (net/minecraft/world/level/block/state/properties/ComparatorMode.java) with Mojang official mappings, stored verbatim on the site.