mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-27 15:33:12 +00:00
Fix crash on startup - wrong name FORESTRY (need Forestry) Fix genesis crash Some refactoring
This commit is contained in:
1 parent
2f683650c0
commit
57088f03d7
10 files changed
+32
-51
No files matched your search
@@ -5,15 +5,15 @@ import net.minecraft.util.EnumChatFormatting;
|
||||
|
||||
public class MinecraftTooltip extends Tooltip {
|
||||
public static int getOutline(ITooltipType type) {
|
||||
return TypeColour.valueOf(type.toString()).getOutline();
|
||||
return TypeColor.valueOf(type.toString()).getOutline();
|
||||
}
|
||||
|
||||
public static String getTitle(ITooltipType type) {
|
||||
return TypeColour.valueOf(type.toString()).getTitle();
|
||||
return TypeColor.valueOf(type.toString()).getTitle();
|
||||
}
|
||||
|
||||
public static String getBody(ITooltipType type) {
|
||||
return TypeColour.valueOf(type.toString()).getBody();
|
||||
return TypeColor.valueOf(type.toString()).getBody();
|
||||
}
|
||||
|
||||
public enum Type implements ITooltipType {
|
||||
@@ -21,20 +21,20 @@ public class MinecraftTooltip extends Tooltip {
|
||||
WARNING
|
||||
}
|
||||
|
||||
private enum TypeColour {
|
||||
Standard(5243135, EnumChatFormatting.WHITE, EnumChatFormatting.GRAY),
|
||||
Help(5046016, EnumChatFormatting.GREEN, EnumChatFormatting.DARK_GREEN),
|
||||
Information(49151, EnumChatFormatting.AQUA, EnumChatFormatting.DARK_AQUA),
|
||||
Error(16724224, EnumChatFormatting.RED, EnumChatFormatting.DARK_RED),
|
||||
Warning(16752384, EnumChatFormatting.YELLOW, EnumChatFormatting.GOLD),
|
||||
User(9839667, EnumChatFormatting.RED, EnumChatFormatting.DARK_RED),
|
||||
Power(9006592, EnumChatFormatting.YELLOW, EnumChatFormatting.GOLD);
|
||||
private enum TypeColor {
|
||||
STANDARD(0x5000ff, EnumChatFormatting.WHITE, EnumChatFormatting.GRAY),
|
||||
HELP(0x4cff00, EnumChatFormatting.GREEN, EnumChatFormatting.DARK_GREEN),
|
||||
INFORMATION(0x00bfff, EnumChatFormatting.AQUA, EnumChatFormatting.DARK_AQUA),
|
||||
ERROR(0xff3100, EnumChatFormatting.RED, EnumChatFormatting.DARK_RED),
|
||||
WARNING(0xff9f00, EnumChatFormatting.YELLOW, EnumChatFormatting.GOLD),
|
||||
USER(0x962433, EnumChatFormatting.RED, EnumChatFormatting.DARK_RED),
|
||||
POWER(0x896e00, EnumChatFormatting.YELLOW, EnumChatFormatting.GOLD);
|
||||
|
||||
int outline;
|
||||
String mainText;
|
||||
String bodyText;
|
||||
|
||||
TypeColour(int outline, EnumChatFormatting mainText, EnumChatFormatting bodyText) {
|
||||
TypeColor(int outline, EnumChatFormatting mainText, EnumChatFormatting bodyText) {
|
||||
this.outline = outline;
|
||||
this.mainText = mainText.toString();
|
||||
this.bodyText = bodyText.toString();
|
||||
|
||||
Reference in new issue
Block a user