Tilt .java

net.minecraft.world.level.block.state.properties.Tilt (enum, 28 lines): members: NONE, UNSTABLE, PARTIAL, FULL, causesVibration, getSerializedName, name.

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

Implements

API Surface (2)

String getSerializedName()
boolean causesVibration()

Fields & Constants (2)

name
causesVibration

String literals (4)

"none"
"unstable"
"partial"
"full"

Code Graph: Dependencies (1)

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

Full Source

Tilt.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 Tilt implements StringRepresentable {
6
	NONE("none", true),
7
	UNSTABLE("unstable", false),
8
	PARTIAL("partial", true),
9
	FULL("full", true);
10
11
	private final String name;
12
	private final boolean causesVibration;
13
14
	Tilt(final String name, final boolean causesVibration) {
15
		this.name = name;
16
		this.causesVibration = causesVibration;
17
	}
18
19
	@Override
20
	public String getSerializedName() {
21
		return this.name;
22
	}
23
24
	public boolean causesVibration() {
25
		return this.causesVibration;
26
	}
27
}
28

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