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


Java Translator.translateToLocal方法代码示例

本文整理汇总了Java中mezz.jei.util.Translator.translateToLocal方法的典型用法代码示例。如果您正苦于以下问题:Java Translator.translateToLocal方法的具体用法?Java Translator.translateToLocal怎么用?Java Translator.translateToLocal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mezz.jei.util.Translator的用法示例。


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

示例1: drawExtras

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public void drawExtras(Minecraft minecraft) {
    super.drawExtras(minecraft);

    String text = Translator.translateToLocal("inv.spindle.throw.name");
    int x = 41 - minecraft.fontRendererObj.getStringWidth(text)/2;
    minecraft.fontRendererObj.drawString(text,x,0, Color.gray.getRGB());
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:9,代码来源:SpindleRecipeCategory.java

示例2: TataraRecipeCategory

import mezz.jei.util.Translator; //导入方法依赖的package包/类
public TataraRecipeCategory(IGuiHelper helper) {
    ResourceLocation location = new ResourceLocation(Reference.MOD_ID, "textures/gui/tatara.png");
    background = helper.createDrawable(location, 55, 16, 82, 54);

    IDrawableStatic flameDrawable = helper.createDrawable(location, 176, 0, 14, 14);
    flame = helper.createAnimatedDrawable(flameDrawable, 300, IDrawableAnimated.StartDirection.TOP, true);

    IDrawableStatic arrowDrawable = helper.createDrawable(location, 176, 14, 24, 17);
    arrow = helper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);

    localizedName = Translator.translateToLocal("inv.tatara.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:13,代码来源:TataraRecipeCategory.java

示例3: drawExtras

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public void drawExtras(Minecraft minecraft) {
    super.drawExtras(minecraft);

    String text = Translator.translateToLocal("inv.infuser.throw.name");
    int x = 41 - minecraft.fontRendererObj.getStringWidth(text)/2;
    minecraft.fontRendererObj.drawString(text,x,20, new Color(64,0,0).getRGB());
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:9,代码来源:TransmutationRecipeCategory.java

示例4: CrusherRecipeCategory

import mezz.jei.util.Translator; //导入方法依赖的package包/类
public CrusherRecipeCategory(IGuiHelper guiHelper) {
    localizedName = Translator.translateToLocal("gui.crusher.name");

    ResourceLocation location = new ResourceLocation(ModAnotherDusts.MODID, "textures/gui/crusher.png");
    background = guiHelper.createDrawable(location, 55, 16, 82, 54);

    IDrawableStatic flameDrawable = guiHelper.createDrawable(location, 176, 0, 14, 14);
    flame = guiHelper.createAnimatedDrawable(flameDrawable, 300, IDrawableAnimated.StartDirection.TOP, true);

    IDrawableStatic arrowDrawable = guiHelper.createDrawable(location, 176, 14, 24, 17);
    arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:setycz,项目名称:AnotherDustsMod,代码行数:13,代码来源:CrusherRecipeCategory.java

示例5: RecipeCategoryBanners

import mezz.jei.util.Translator; //导入方法依赖的package包/类
public RecipeCategoryBanners (IGuiHelper guiHelper) {
    
    background = guiHelper.createBlankDrawable(recipeWidth, recipeHeight);
    ResourceLocation recipeBackgroundResource = new ResourceLocation(AdditionalBanners.MOD_ID, "textures/gui/sprites.png");
    icon = guiHelper.createDrawable(recipeBackgroundResource, 240, 0, 16, 16);
    localizedName = Translator.translateToLocal("gui.additionalbanners.jei.category.banners");
    slot = guiHelper.getSlotDrawable();
}
 
开发者ID:Darkhax-Minecraft,项目名称:AdditionalBanners,代码行数:9,代码来源:RecipeCategoryBanners.java

示例6: DawnstoneAnvilCategory

import mezz.jei.util.Translator; //导入方法依赖的package包/类
public DawnstoneAnvilCategory(IGuiHelper helper)
{
    ResourceLocation location = new ResourceLocation(Soot.MODID, "textures/gui/jei_dawnstone_anvil.png");
    background = helper.createDrawable(location, 0, 0, WIDTH, HEIGHT);
    localizedName = Translator.translateToLocal(L18N_KEY);
}
 
开发者ID:DaedalusGame,项目名称:Soot,代码行数:7,代码来源:DawnstoneAnvilCategory.java

示例7: AlchemicalMixerCategory

import mezz.jei.util.Translator; //导入方法依赖的package包/类
public AlchemicalMixerCategory(IGuiHelper helper)
{
    background = helper.createDrawable(resourceLocation, 0, 0, WIDTH, HEIGHT);
    localizedName = Translator.translateToLocal(L18N_KEY);
    this.helper = helper;
}
 
开发者ID:DaedalusGame,项目名称:Soot,代码行数:7,代码来源:AlchemicalMixerCategory.java

示例8: getTitle

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
    return Translator.translateToLocal("inv.soakingbox.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:5,代码来源:SoakingBoxRecipeCategory.java

示例9: getTitle

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
    return Translator.translateToLocal("inv.spindle.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:5,代码来源:SpindleRecipeCategory.java

示例10: getTitle

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
    return Translator.translateToLocal("inv.infuser.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:5,代码来源:InfuserRecipeCategory.java

示例11: getTitle

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
    return Translator.translateToLocal("inv.dryingbox.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:5,代码来源:DryingBoxRecipeCategory.java

示例12: getTitle

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
    return Translator.translateToLocal("inv.waternet.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:5,代码来源:WaterNetRecipeCategory.java

示例13: getTitle

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
    return Translator.translateToLocal("inv.sandnet.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:5,代码来源:SandNetRecipeCategory.java

示例14: getTitle

import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
    return Translator.translateToLocal("inv.firenet.name");
}
 
开发者ID:DaedalusGame,项目名称:BetterWithAddons,代码行数:5,代码来源:FireNetRecipeCategory.java

示例15: CrystallizerFuelCategory

import mezz.jei.util.Translator; //导入方法依赖的package包/类
public CrystallizerFuelCategory(IGuiHelper guiHelper) {
	super(guiHelper);
	background = guiHelper.createDrawable(backgroundLocation, 55, 38, 18, 32, 0, 0, 0, 80);
	localizedName = Translator.translateToLocal("gui.acjei.category.fuel.crystallizer");
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:6,代码来源:CrystallizerFuelCategory.java


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