Improved creative tab implementation
This commit is contained in:
parent
8bdb919e0d
commit
6187b4ddb8
6 changed files with 13 additions and 20 deletions
|
@ -7,26 +7,14 @@ import cpw.mods.fml.relauncher.Side;
|
|||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class CreativeTabWarpDrive extends CreativeTabs {
|
||||
String topLabel;
|
||||
|
||||
public CreativeTabWarpDrive(int par1, String par2Str) {
|
||||
super(par1, par2Str);
|
||||
}
|
||||
|
||||
public CreativeTabWarpDrive(String par1Str, String topLabelIn) {
|
||||
super(par1Str);
|
||||
topLabel = topLabelIn;
|
||||
public CreativeTabWarpDrive(final String label) {
|
||||
super(label);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Item getTabIconItem() {
|
||||
return WarpDrive.itemComponent;
|
||||
// return WarpDrive.reactorLaserFocusItem;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTranslatedTabLabel() {
|
||||
return topLabel;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,6 +170,7 @@ import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
|||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLServerStartingEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import net.minecraftforge.common.BiomeDictionary;
|
||||
import net.minecraftforge.common.DimensionManager;
|
||||
import net.minecraftforge.common.ForgeChunkManager;
|
||||
|
@ -272,7 +273,7 @@ public class WarpDrive implements LoadingCallback {
|
|||
public static Field fieldBlockHardness = null;
|
||||
|
||||
// Client settings
|
||||
public static final CreativeTabs creativeTabWarpDrive = new CreativeTabWarpDrive("WarpDrive", "WarpDrive").setBackgroundImageName("warpdrive:creativeTab");
|
||||
public static final CreativeTabs creativeTabWarpDrive = new CreativeTabWarpDrive(MODID.toLowerCase());
|
||||
|
||||
@Instance(WarpDrive.MODID)
|
||||
public static WarpDrive instance;
|
||||
|
@ -298,7 +299,7 @@ public class WarpDrive implements LoadingCallback {
|
|||
RecipeSorter.register("warpdrive:particleShaped", RecipeParticleShapedOre.class, RecipeSorter.Category.SHAPED, "before:minecraft:shaped");
|
||||
RecipeSorter.register("warpdrive:tuningDriver", RecipeTuningDriver.class, RecipeSorter.Category.SHAPELESS, "before:minecraft:shapeless");
|
||||
|
||||
if (FMLCommonHandler.instance().getSide().isClient()) {
|
||||
if (event.getSide() == Side.CLIENT) {
|
||||
MinecraftForge.EVENT_BUS.register(new RenderOverlayAir());
|
||||
MinecraftForge.EVENT_BUS.register(new RenderOverlayCamera());
|
||||
|
||||
|
@ -687,10 +688,6 @@ public class WarpDrive implements LoadingCallback {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (FMLCommonHandler.instance().getEffectiveSide().isClient()) {
|
||||
creativeTabWarpDrive.setBackgroundImageName("items.png");
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
|
|
@ -14,6 +14,8 @@ death.attack.warpdrive.teleportation.player=%1$s wurde durch %2$s beim teleporti
|
|||
death.attack.warpdrive.warm=%1$s verglühte
|
||||
death.attack.warpdrive.warm.player=%1$s wurde von %2$s gebruzelt
|
||||
|
||||
itemGroup.warpdrive=WarpDrive
|
||||
|
||||
item.warpdrive.crafting.Malformed.name=Korruptes Item
|
||||
item.warpdrive.crafting.EmeraldCrystal.name=Smaragdkristall
|
||||
item.warpdrive.crafting.EnderCrystal.name=Enderkristall
|
||||
|
|
|
@ -14,6 +14,8 @@ death.attack.warpdrive.teleportation.player=%1$s was teleporkilled by %2$s
|
|||
death.attack.warpdrive.warm=%1$s died from excessive temperature
|
||||
death.attack.warpdrive.warm.player=%1$s was cooked by %2$s
|
||||
|
||||
itemGroup.warpdrive=WarpDrive
|
||||
|
||||
item.warpdrive.crafting.Malformed.name=Bad Item
|
||||
item.warpdrive.crafting.EmeraldCrystal.name=Emerald Tuned Crystal
|
||||
item.warpdrive.crafting.EnderCrystal.name=Ender Tuned Crystal
|
||||
|
|
|
@ -14,6 +14,8 @@ death.attack.warpdrive.teleportation.player=%1$s a été tué par %2$s durant sa
|
|||
death.attack.warpdrive.warm=%1$s est mort de brûlure sévère
|
||||
death.attack.warpdrive.warm.player=%1$s a été cuit par %2$s
|
||||
|
||||
itemGroup.warpdrive=WarpDrive
|
||||
|
||||
item.warpdrive.crafting.Malformed.name=Item invalide
|
||||
item.warpdrive.crafting.EmeraldCrystal.name=Cristal d'émeraude accordé
|
||||
item.warpdrive.crafting.EnderCrystal.name=Cristal de l'ender accordé
|
||||
|
|
|
@ -14,6 +14,8 @@ death.attack.warpdrive.teleportation.player=%2$s убил %1$s телепорт
|
|||
death.attack.warpdrive.warm=%1$s died from excessive temperature
|
||||
death.attack.warpdrive.warm.player=%1$s was cooked by %2$s
|
||||
|
||||
itemGroup.warpdrive=WarpDrive
|
||||
|
||||
item.warpdrive.crafting.Malformed.name=Поврежденный предмет
|
||||
item.warpdrive.crafting.EmeraldCrystal.name=Изумрудный настраиваемый кристалл
|
||||
item.warpdrive.crafting.EnderCrystal.name=Настраиваемый кристалл Края
|
||||
|
|
Loading…
Add table
Reference in a new issue