27 lines
624 B
Java
27 lines
624 B
Java
|
package net.minecraft.world.entity.animal.horse;
|
||
|
|
||
|
import java.util.function.IntFunction;
|
||
|
import net.minecraft.util.ByIdMap;
|
||
|
|
||
|
public enum Markings {
|
||
|
NONE(0),
|
||
|
WHITE(1),
|
||
|
WHITE_FIELD(2),
|
||
|
WHITE_DOTS(3),
|
||
|
BLACK_DOTS(4);
|
||
|
|
||
|
private static final IntFunction<Markings> BY_ID = ByIdMap.continuous(Markings::getId, values(), ByIdMap.OutOfBoundsStrategy.WRAP);
|
||
|
private final int id;
|
||
|
|
||
|
private Markings(final int p_30868_) {
|
||
|
this.id = p_30868_;
|
||
|
}
|
||
|
|
||
|
public int getId() {
|
||
|
return this.id;
|
||
|
}
|
||
|
|
||
|
public static Markings byId(int p_30871_) {
|
||
|
return BY_ID.apply(p_30871_);
|
||
|
}
|
||
|
}
|