mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Add CreativeTabs#getLabelColor
This commit is contained in:
1 parent
1ba084f131
commit
e4ca526d5b
2 files changed
+12
-3
No files matched your search
+6
-2
@@ -67,7 +67,7 @@
|
||||
if (this.field_147062_A.func_146179_b().isEmpty())
|
||||
{
|
||||
for (Item item : Item.field_150901_e)
|
||||
@@ -366,7 +403,7 @@
|
||||
@@ -366,10 +403,10 @@
|
||||
{
|
||||
CreativeTabs creativetabs = CreativeTabs.field_78032_a[field_147058_w];
|
||||
|
||||
@@ -75,7 +75,11 @@
|
||||
+ if (creativetabs != null && creativetabs.func_78019_g())
|
||||
{
|
||||
GlStateManager.func_179084_k();
|
||||
this.field_146289_q.func_78276_b(I18n.func_135052_a(creativetabs.func_78024_c()), 8, 6, 4210752);
|
||||
- this.field_146289_q.func_78276_b(I18n.func_135052_a(creativetabs.func_78024_c()), 8, 6, 4210752);
|
||||
+ this.field_146289_q.func_78276_b(I18n.func_135052_a(creativetabs.func_78024_c()), 8, 6, creativetabs.getLabelColor());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -401,7 +438,7 @@
|
||||
|
||||
for (CreativeTabs creativetabs : CreativeTabs.field_78032_a)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
return this.field_78033_n < 6;
|
||||
}
|
||||
|
||||
@@ -260,4 +282,45 @@
|
||||
@@ -260,4 +282,50 @@
|
||||
item.func_150895_a(this, p_78018_1_);
|
||||
}
|
||||
}
|
||||
@@ -88,5 +88,10 @@
|
||||
+ public net.minecraft.util.ResourceLocation getBackgroundImage()
|
||||
+ {
|
||||
+ return new net.minecraft.util.ResourceLocation("textures/gui/container/creative_inventory/tab_" + this.func_78015_f());
|
||||
+ }
|
||||
+
|
||||
+ public int getLabelColor()
|
||||
+ {
|
||||
+ return 4210752;
|
||||
+ }
|
||||
}
|
||||
Reference in new issue
Block a user