當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。