34 lines
759 B
Java
34 lines
759 B
Java
package net.minecraft.world.level;
|
|
|
|
public enum TickPriority {
|
|
EXTREMELY_HIGH(-3),
|
|
VERY_HIGH(-2),
|
|
HIGH(-1),
|
|
NORMAL(0),
|
|
LOW(1),
|
|
VERY_LOW(2),
|
|
EXTREMELY_LOW(3);
|
|
|
|
private final int value;
|
|
|
|
private TickPriority(final int integer3) {
|
|
this.value = integer3;
|
|
}
|
|
|
|
public static TickPriority byValue(final int integer) {
|
|
for (final TickPriority bkk5 : values()) {
|
|
if (bkk5.value == integer) {
|
|
return bkk5;
|
|
}
|
|
}
|
|
if (integer < TickPriority.EXTREMELY_HIGH.value) {
|
|
return TickPriority.EXTREMELY_HIGH;
|
|
}
|
|
return TickPriority.EXTREMELY_LOW;
|
|
}
|
|
|
|
public int getValue() {
|
|
return this.value;
|
|
}
|
|
}
|