41 lines
1.0 KiB
Java
41 lines
1.0 KiB
Java
package net.minecraft.advancements;
|
|
|
|
import net.minecraft.ChatFormatting;
|
|
|
|
public enum FrameType {
|
|
TASK("task", 0, ChatFormatting.GREEN),
|
|
CHALLENGE("challenge", 26, ChatFormatting.DARK_PURPLE),
|
|
GOAL("goal", 52, ChatFormatting.GREEN);
|
|
|
|
private final String name;
|
|
private final int texture;
|
|
private final ChatFormatting chatColor;
|
|
|
|
private FrameType(final String string3, final int integer4, final ChatFormatting g) {
|
|
this.name = string3;
|
|
this.texture = integer4;
|
|
this.chatColor = g;
|
|
}
|
|
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public int getTexture() {
|
|
return this.texture;
|
|
}
|
|
|
|
public static FrameType byName(final String string) {
|
|
for (final FrameType ae5 : values()) {
|
|
if (ae5.name.equals(string)) {
|
|
return ae5;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unknown frame type '" + string + "'");
|
|
}
|
|
|
|
public ChatFormatting getChatColor() {
|
|
return this.chatColor;
|
|
}
|
|
}
|