Code/net/minecraft/world/level/block/state/properties/Tilt.java

27 lines
662 B
Java
Raw Permalink Normal View History

2025-07-01 06:20:03 +00:00
package net.minecraft.world.level.block.state.properties;
import net.minecraft.util.StringRepresentable;
public enum Tilt implements StringRepresentable {
NONE("none", true),
UNSTABLE("unstable", false),
PARTIAL("partial", true),
FULL("full", true);
private final String name;
private final boolean causesVibration;
private Tilt(final String p_156082_, final boolean p_156083_) {
this.name = p_156082_;
this.causesVibration = p_156083_;
}
@Override
public String getSerializedName() {
return this.name;
}
public boolean causesVibration() {
return this.causesVibration;
}
}