当前位置: 首页>>代码示例>>Java>>正文


Java LanguageRegistry类代码示例

本文整理汇总了Java中cpw.mods.fml.common.registry.LanguageRegistry的典型用法代码示例。如果您正苦于以下问题:Java LanguageRegistry类的具体用法?Java LanguageRegistry怎么用?Java LanguageRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


LanguageRegistry类属于cpw.mods.fml.common.registry包,在下文中一共展示了LanguageRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processCommand

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public void processCommand(final ICommandSender icommandsender, final String[] astring) {
    final File f = new File(Minecraft.getMinecraft().mcDataDir, "extrautilities_localization.txt");
    final Map<String, Properties> k = (Map<String, Properties>)ReflectionHelper.getPrivateValue((Class)LanguageRegistry.class, (Object)LanguageRegistry.instance(), new String[] { "modLanguageData" });
    final String lang = FMLCommonHandler.instance().getCurrentLanguage();
    final Properties p = k.get(lang);
    String t = "";
    for (final Map.Entry<Object, Object> entry : p.entrySet()) {
        t = t + entry.getKey() + "=" + entry.getValue() + "\n";
    }
    try {
        Files.write((CharSequence)t, f, Charsets.UTF_8);
        LogHelper.info("Dumped Language data to " + f.getAbsolutePath(), new Object[0]);
    }
    catch (Exception exception) {
        exception.printStackTrace();
    }
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:18,代码来源:CommandDumpLocalization.java

示例2: ProspectingTool

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public ProspectingTool() {
	super("prospectingTool");
	this.setMaxDamage(64);
	this.setMaxStackSize(1);
	LanguageRegistry.instance().addStringLocalization("item."+ProspectingTool.class.getCanonicalName()+".name", "en_US", "Prospecting Supplies");
	GameRegistry.addShapelessRecipe(
		new ItemStack(this), 
			new ItemStack(Items.book), 
			new ItemStack(Items.feather),
			new ItemStack(Items.dye),
			new ItemStack(Items.glass_bottle),
			new ItemStack(Items.stone_pickaxe), 
			new ItemStack(Items.stone_shovel),
			new ItemStack(Items.compass));
	GameRegistry.addRecipe(new ProspectingRepairRecipe());
	this.setCreativeTab(CreativeTabs.tabTools);
}
 
开发者ID:planetguy32,项目名称:Enterprise,代码行数:18,代码来源:ProspectingTool.java

示例3: injectLanguage

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public static void injectLanguage(File source, Side side) {
    try {
        ZipFile zf = new ZipFile(source);
        for (ZipEntry ze : Collections.list(zf.entries())) {
            Matcher matcher = Pattern.compile("(?:.+/|)([\\w_-]+).lang").matcher(ze.getName());
            if (matcher.matches()) {
                String lang = matcher.group(1);
                FMLLog.fine("Injecting found translation data for lang %s in zip file %s at %s into language system", lang, source.getName(), ze.getName());
                LanguageRegistry.instance().injectLanguage(lang, StringTranslate.parseLangFile(zf.getInputStream(ze)));
                // Ensure en_US is available to StringTranslate on the server
                if ("en_US".equals(lang) && side == Side.SERVER)
                    StringTranslate.inject(zf.getInputStream(ze));
            }
        }
        zf.close();
    } catch (Exception e) {
        Logger.logError("Could not inject language file!");
        e.printStackTrace();
    }
}
 
开发者ID:Lomeli12,项目名称:AchieveSON,代码行数:21,代码来源:AchievementHandler.java

示例4: load

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event){		
	proxy.registerRenderInformation();
	
	//Recipes
			//Crafting
				//Shapeless
					GameRegistry.addShapelessRecipe(new ItemStack(Blocks.farmland, 1), Blocks.dirt, Items.stone_hoe);
				//Shaped
					GameRegistry.addShapedRecipe(new ItemStack(Blocks.command_block), "X X", " Y ", "X X", 'X', Blocks.noteblock, 'Y', Items.redstone);
			//Smelting
					GameRegistry.addSmelting(Blocks.coal_block, new ItemStack(Blocks.water), 20f);
					GameRegistry.addSmelting(Items.iron_axe, new ItemStack(Items.diamond_axe), 600f);
	//Creativetabs
		LanguageRegistry.instance().addStringLocalization("itemGroup.tabSteamAge", "en_US", "SteamAge");
	
}
 
开发者ID:AwesomeSauwss,项目名称:SteamAge,代码行数:18,代码来源:SteamAge.java

示例5: init

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public static void init()
{
    LogHelper.debug(ConfigurationHandler.enableCarnivalClowns);
    if(ConfigurationHandler.enableCarnivalClowns == true) {
        EntityRegistry.registerModEntity(EntityCarnivalClown.class, "carnival_clown", 1, Reference.MOD_ID, 80, 3, true);
        RenderingRegistry.registerEntityRenderingHandler(EntityCarnivalClown.class, new RenderClown(new ModelCarnivalClown(), 0.5F));
        EntityRegistry.addSpawn(EntityCarnivalClown.class, 10, 1, 2, EnumCreatureType.creature, BiomeGenBase.plains);
        ModelCarnivalClown.registerEntityEgg(EntityCarnivalClown.class, 0xffffff, 0xff0000);
        LanguageRegistry.instance().addStringLocalization("entity.Carnival.carnival_clown.name", "en_US", "Carnival Clown");
    }

    //Temporarily removed while i think of a way to fix it
    /*EntityRegistry.registerModEntity(EntityDethknight.class, "dethknight", 2, Reference.MOD_ID, 80, 3, true);
    RenderingRegistry.registerEntityRenderingHandler(EntityDethknight.class, new RenderDethknight(new ModelDethknight(), 0.5F));
    EntityRegistry.addSpawn(EntityDethknight.class, 10, 1, 2, EnumCreatureType.creature, BiomeGenBase.plains);
    ModelCarnivalClown.registerEntityEgg(EntityDethknight.class, 0x000000, 0xff0000);
    LanguageRegistry.instance().addStringLocalization("entity.Carnival.dethknight.name", "en_US", "Dethknight");*/
}
 
开发者ID:DanCarlyon,项目名称:Carnival,代码行数:19,代码来源:ModEntities.java

示例6: load

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event) {
	wwbstab = new InventoryTab(CreativeTabs.getNextID(), "Bank System Tab");

	bank = new BlockBank(Config.bankBlock, Material.wood).setHardness(20f)
			.setResistance(35f).setUnlocalizedName("bank")
			.setCreativeTab(wwbstab);
	me = new BlockME(Config.MEBlock, Material.wood).setHardness(50f)
			.setResistance(150f).setUnlocalizedName("M.E.")
			.setCreativeTab(wwbstab);

	LanguageRegistry.addName(bank, "Bank");
	GameRegistry.registerBlock(bank, "wwbs");
	LanguageRegistry.addName(me, "Massive Exchange");
	GameRegistry.registerBlock(me, "massiveExchange");

	NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler());

	GameRegistry.registerTileEntity(WwmeTE.class, "wwme");

}
 
开发者ID:ArtixAllMighty,项目名称:rpginventory,代码行数:22,代码来源:mod_wwbs.java

示例7: onInit

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
@Override
public void onInit() {
	LanguageRegistry lang = LanguageRegistry.instance();
	
	if (enableBeeAnalyzer) {
		MiscPeripherals.instance.blockAlpha.registerTile(4).setClass(TileBeeAnalyzer.class).setSprites("analyzer_bee").setName("beeAnalyzer").setInfoText(MiscPeripherals.instance.descriptive ? "This block is computer powered!" : null);
		GameRegistry.registerTileEntity(TileBeeAnalyzer.class, "MiscPeripherals Bee Analyzer");
		lang.addStringLocalization("miscperipherals.beeAnalyzer.name", "Bee Analyzer");
		GameRegistry.registerCustomItemStack("beeAnalyzer", new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 4));
	}
	
	if (enableTreeAnalyzer) {
		MiscPeripherals.instance.blockAlpha.registerTile(11).setClass(TileTreeAnalyzer.class).setSprites("analyzer_tree").setName("treeAnalyzer").setInfoText(MiscPeripherals.instance.descriptive ? "This block is computer powered!" : null);
		GameRegistry.registerTileEntity(TileTreeAnalyzer.class, "MiscPeripherals Tree Analyzer");
		lang.addStringLocalization("miscperipherals.treeAnalyzer.name", "Tree Analyzer");
		GameRegistry.registerCustomItemStack("treeAnalyzer", new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 11));
	}
	
	if (enableButterflyAnalyzer) {
		MiscPeripherals.instance.blockBeta.registerTile(9).setClass(TileButterflyAnalyzer.class).setSprites("analyzer_butterfly").setName("butterflyAnalyzer").setInfoText(MiscPeripherals.instance.descriptive ? "This block is computer powered!" : null);
		GameRegistry.registerTileEntity(TileButterflyAnalyzer.class, "MiscPeripherals Butterfly Analyzer");
		lang.addStringLocalization("miscperipherals.butterflyAnalyzer.name", "Butterfly Analyzer");
		GameRegistry.registerCustomItemStack("butterflyAnalyzer", new ItemStack(MiscPeripherals.instance.blockBeta, 1, 9));
	}
}
 
开发者ID:austinv11,项目名称:PeripheralsPlusPlus,代码行数:26,代码来源:ModuleForestry.java

示例8: onInit

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
@Override
public void onInit() {
	if (enableSignalController) {
		MiscPeripherals.instance.blockAlpha.registerTile(14).setClass(TileSignalController.class).setSprites("signalBox").setName("signalController").setInfoText(MiscPeripherals.instance.descriptive ? "This block is computer powered!" : null);
		GameRegistry.registerTileEntity(TileSignalController.class, "MiscPeripherals Signal Controller");
		LanguageRegistry.instance().addStringLocalization("miscperipherals.signalController.name", "Electronic Signal Controller");
		
		ItemStack controller = GameRegistry.findItemStack("Railcraft", "signal.box.controller", 1);
		if (controller == null) controller = GameRegistry.findItemStack("Railcraft", "part.circuit.signal", 1);
		if (controller == null) controller = new ItemStack(Item.redstoneRepeater);
		ItemStack receiver = GameRegistry.findItemStack("Railcraft", "signal.box.receiver", 1);
		if (receiver == null) receiver = GameRegistry.findItemStack("Railcraft", "part.circuit.signal", 1);
		if (receiver == null) receiver = new ItemStack(Item.redstoneRepeater);
		GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 14), true, "GRG", "@D#", "GRG", 'G', Item.ingotGold, 'R', Item.redstone, 'D', Item.diamond, '@', controller, '#', receiver));
		GameRegistry.registerCustomItemStack("signalController", new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 14));
	}
}
 
开发者ID:austinv11,项目名称:PeripheralsPlusPlus,代码行数:18,代码来源:ModuleRailcraft.java

示例9: onInit

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
@Override
public void onInit() {
	if (enableNuclearReader) {
		MiscPeripherals.instance.blockAlpha.registerTile(8).setClass(TileNuclearReader.class).setSprites("nuclearReader").setName("nuclearReader").setInfoText(MiscPeripherals.instance.descriptive ? "This block is computer powered!" : null);
		GameRegistry.registerTileEntity(TileNuclearReader.class, "MiscPeripherals Nuclear Reader");
		LanguageRegistry.instance().addStringLocalization("miscperipherals.nuclearReader.name", "Nuclear Information Reader");
		GameRegistry.addRecipe(new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 8), "GEG", "#@#", "GRG", 'G', Item.ingotGold, 'E', Item.eyeOfEnder, 'R', Item.redstone, '@', (ReflectionStore.blockNuclearControlMain == null || ReflectionStore.damageInfoPanel == null) ? Block.blockIron : new ItemStack(ReflectionStore.blockNuclearControlMain, 1, ReflectionStore.damageInfoPanel), '#', (ReflectionStore.itemUpgrade == null || ReflectionStore.damageRange == null) ? Item.ingotGold : new ItemStack(ReflectionStore.itemUpgrade, 1, ReflectionStore.damageRange));
		GameRegistry.registerCustomItemStack("nuclearReader", new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 8));
	}
	
	if (enableNuclearReaderT2) {
		MiscPeripherals.instance.blockAlpha.registerTile(9).setClass(TileNuclearReaderT2.class).setSprites("nuclearReader_t2").setName("nuclearReaderT2").setInfoText(MiscPeripherals.instance.descriptive ? "This block is computer powered!" : null);
		GameRegistry.registerTileEntity(TileNuclearReaderT2.class, "MiscPeripherals Nuclear Reader T2");
		LanguageRegistry.instance().addStringLocalization("miscperipherals.nuclearReaderT2.name", "Advanced Nuclear Information Reader");
		ItemStack stack = new ItemStack(Item.netherStar);
		stack.setItemName("Bane of Mead");
		stack.addEnchantment(Enchantment.sharpness, 7);
		stack.addEnchantment(Enchantment.thorns, 5);
		stack.addEnchantment(Enchantment.fireAspect, 10);
		for (Object o : new Object[] {Block.chest, stack})
			GameRegistry.addRecipe(new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 9), "D#D", "@*@", "[email protected]", 'D', Item.diamond, '#', enableNuclearReader ? new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 8) : Block.blockDiamond, '*', o, '@', (ReflectionStore.blockNuclearControlMain == null || ReflectionStore.damageInfoPanelExtender == null) ? Item.ingotGold : new ItemStack(ReflectionStore.blockNuclearControlMain, 1, ReflectionStore.damageInfoPanelExtender));
		GameRegistry.registerCustomItemStack("nuclearReaderT2", new ItemStack(MiscPeripherals.instance.blockAlpha, 1, 9));
	}
}
 
开发者ID:austinv11,项目名称:PeripheralsPlusPlus,代码行数:25,代码来源:ModuleNuclearControl.java

示例10: loadDarkItems

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public static void loadDarkItems(){
	
	darkSword = new ItemDarkSword(6000, ZeroQuest.darkEssenceMaterial).setUnlocalizedName("darkSword").setTextureName(ZeroQuest.modid + ":" + "darkSword");
   	darkAxe = new ItemDarkAxe(6001, ZeroQuest.darkEssenceMaterial).setUnlocalizedName("darkAxe").setTextureName(ZeroQuest.modid + ":" + "darkAxe");
   	darkPickaxe = new ItemDarkPickaxe(6002, ZeroQuest.darkEssenceMaterial).setUnlocalizedName("darkPickaxe").setTextureName(ZeroQuest.modid + ":" + "darkPickaxe");
   	darkShovel = new ItemDarkShovel(6003, ZeroQuest.darkEssenceMaterial).setUnlocalizedName("darkShovel").setTextureName(ZeroQuest.modid + ":" + "darkShovel");
   	darkHoe = new ItemDarkHoe(6004, ZeroQuest.darkEssenceMaterial).setUnlocalizedName("darkHoe").setTextureName(ZeroQuest.modid + ":" + "darkHoe");
   	
   	//darkSpark = new ItemDarkSpark(6090).setUnlocalizedName("darkSpark").setTextureName(ZeroQuest.modid + ":" + "darkSpark");
   	
      	darkEssence = new ItemEssence(6100).setUnlocalizedName("darkEssence").setTextureName(ZeroQuest.modid + ":" + "darkEssence");
   	darkDust = new ItemDust(6101).setUnlocalizedName("darkDust").setTextureName(ZeroQuest.modid + ":" + "darkDust");
   	darkGrain = new ItemGrain(6102).setUnlocalizedName("darkGrain").setTextureName(ZeroQuest.modid + ":" + "darkGrain");
   	darkNileBone = new ItemNileBone(6103).setUnlocalizedName("nileDarkBone").setTextureName(ZeroQuest.modid + ":" + "nileDarkBone");
	LanguageRegistry.addName(darkEssence, "Dark Essence");
	LanguageRegistry.addName(darkDust, "Dark Dust");
	LanguageRegistry.addName(darkGrain, "Dark Grain");
	LanguageRegistry.addName(darkSword, "Dark Sword");
	LanguageRegistry.addName(darkAxe, "Dark Axe");
	LanguageRegistry.addName(darkPickaxe, "Dark Pickaxe");
	LanguageRegistry.addName(darkShovel, "Dark Shovel");
	LanguageRegistry.addName(darkHoe, "Dark Hoe");
	LanguageRegistry.addName(darkNileBone, "Dark Nile Bone");
	//LanguageRegistry.addName(darkSpark, "Dark Spark");
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:26,代码来源:ModItems.java

示例11: loadDarkBlocks

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public static void loadDarkBlocks(){
  
   /*darlaxStone = new BlockDarlaxStone(800,Material.rock).setUnlocalizedName("darlaxStone").setTextureName(ZeroQuest.modid + ":" + "darlaxStone");
  	GameRegistry.registerBlock(darlaxStone, ZeroQuest.modid + "." + darlaxStone.getUnlocalizedName().substring(5));
  	blockTeleporter2 = new BlockTeleporter(801).setUnlocalizedName("blockTeleporter2");
  	GameRegistry.registerBlock(blockTeleporter2, ZeroQuest.modid + "." + blockTeleporter2.getUnlocalizedName().substring(5));
  	darlaxFire = new BlockDarkFire(802).setUnlocalizedName("darlaxFire").setTextureName(ZeroQuest.modid + ":" + "darlaxFire");
  	GameRegistry.registerBlock(darlaxFire, ZeroQuest.modid + "." + darlaxFire.getUnlocalizedName().substring(5));*/
  
  darkGrainOre = new BlockDarkGrainOre(803,Material.rock).setUnlocalizedName("darkGrainOre").setTextureName(ZeroQuest.modid + ":" + "darkGrainOre");
  	GameRegistry.registerBlock(darkGrainOre, ZeroQuest.modid +"." + darkGrainOre.getUnlocalizedName().substring(5)); 
/*LanguageRegistry.addName(darlaxStone, "Darlax Stone");
LanguageRegistry.addName(blockTeleporter2, "Darlax Teleporter Block");
LanguageRegistry.addName(darlaxFire, "Darlax Fire");*/
LanguageRegistry.addName(darkGrainOre, "Dark Grain Ore");
  	
  	
 }
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:19,代码来源:ModBlocks.java

示例12: addNames

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public static void addNames() {

			LanguageRegistry.addName(nileStone, "Nile Stone");
			LanguageRegistry.addName(nileCobblestone, "Nile Cobbletone");
			LanguageRegistry.addName(vitoidPlant, "Vitoid Plant");
			//LanguageRegistry.addName(nileLog, "Nile Log");
			//LanguageRegistry.addName(nileLeaf, "Nile Leaves");
			//LanguageRegistry.addName(nileSapling, "Nile Sapling");
			LanguageRegistry.addName(nileWorktable, "Nile Crafting Table");
			LanguageRegistry.addName(nileBlackFlower, "Nile Black Flower");
			LanguageRegistry.addName(nillaxStone, "Nillax Stone");
			LanguageRegistry.addName(blockTeleporter, "Nillax Teleporter Block");
			LanguageRegistry.addName(nileFire, "Nile Fire");
			LanguageRegistry.addName(nileBlueFlower, "Nile Blue Flower");
			LanguageRegistry.addName(destroFlower, "Destro Flower");
			LanguageRegistry.addName(nilePinkFlower, "Nile Pink Flower");
			LanguageRegistry.addName(nileCoalOre, "Nile Coal Ore");
			LanguageRegistry.addName(nileGrainOre, "Nile Grain Ore");
			LanguageRegistry.addName(looseBedrock, "Loose Bedrock");
			
			
		}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:23,代码来源:ModBlocks.java

示例13: loadLanguages

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
/***
* Loads in all the Localization files.
*/
    public static void loadLanguages() {
        //For every file specified, load them into the Language Registry
        for (Localizations localization : Localizations.values()) {
         String localizationFile = Localizations.LANG_RESOURCE_LOCATION + localization.getFile();
            try {
            BufferedReader paramReader = new BufferedReader(new InputStreamReader(ZeroQuest.class.getResourceAsStream(localizationFile)));
            		String line = "";
            		while((line = paramReader.readLine()) != null) {
            			if(!line.isEmpty() && !line.startsWith("#")) {
            				String[] split = line.split("=");
            				String inGameName = split[1];
            				int count = 2;
            				while(split.length > count) {
            						inGameName += split[count] + (split.length - 1 != count ? "=" : "");
            						++count;
            				}
            				LanguageRegistry.instance().addStringLocalization(split[0], LocalizationHelper.getLocaleFromFileName(localizationFile), inGameName);
            			}
            		}
            }
            catch(Exception e) {
             e.printStackTrace();
            }
        }
    }
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:29,代码来源:LocalizationHandler.java

示例14: ItemAnnihilationManipulator

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
public ItemAnnihilationManipulator() {
    super(ToolMaterial.EMERALD);
    this.setNoRepair();
    this.setMaxStackSize(1);
    if (FMLCommonHandler.instance().getSide().isClient()) {
        this.setCreativeTab(TEProxy.tabTETools);
    }
    setUnlocalizedName("itemAnnihilationManipulator");
    LanguageRegistry.instance().addStringLocalization(
            "item.itemAnnihilationManipulator.name",
            "Annihilation Manipulator");
    MinecraftForge.EVENT_BUS.register(this);
    this.setHarvestLevel("pickaxe", 1000);
    this.setHarvestLevel("shovel", 999);
    this.setHarvestLevel("axe", 998);
}
 
开发者ID:mak326428,项目名称:EnderAmmunition,代码行数:17,代码来源:ItemAnnihilationManipulator.java

示例15: drawGuiContainerForegroundLayer

import cpw.mods.fml.common.registry.LanguageRegistry; //导入依赖的package包/类
@Override
protected void drawGuiContainerForegroundLayer(int j, int i) {
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);

    String line = LanguageRegistry.instance().getStringLocalization("gui.autochisel.name");
    //		this.drawCenteredString(fontRenderer, isExtended()?"Carve":"Carve blocks",  88, 13, 0x888888);
    fontRendererObj.drawString(line, (xSize - fontRendererObj.getStringWidth(line)) / 2, -6, 0x404040);


    line = LanguageRegistry.instance().getStringLocalization("gui.autochisel.patterns");
    fontRendererObj.drawString(line, 25, 34, 0x404040);
    line = LanguageRegistry.instance().getStringLocalization("gui.autochisel.input");
    fontRendererObj.drawString(line, 48 - fontRendererObj.getStringWidth(line), 14, 0x404040);
    line = LanguageRegistry.instance().getStringLocalization("gui.autochisel.output");

    fontRendererObj.drawString(line, 129, 14, 0x404040);
    //fontRenderer.drawString(line, 5-fontRenderer.getStringWidth(line) / 2, 13, 0x404040);

}
 
开发者ID:delta534,项目名称:Chisel,代码行数:20,代码来源:GuiAutoChisel.java


注:本文中的cpw.mods.fml.common.registry.LanguageRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。