本文整理汇总了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());
}
示例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");
}
示例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());
}
示例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);
}
示例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();
}
示例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);
}
示例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;
}
示例8: getTitle
import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
return Translator.translateToLocal("inv.soakingbox.name");
}
示例9: getTitle
import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
return Translator.translateToLocal("inv.spindle.name");
}
示例10: getTitle
import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
return Translator.translateToLocal("inv.infuser.name");
}
示例11: getTitle
import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
return Translator.translateToLocal("inv.dryingbox.name");
}
示例12: getTitle
import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
return Translator.translateToLocal("inv.waternet.name");
}
示例13: getTitle
import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
return Translator.translateToLocal("inv.sandnet.name");
}
示例14: getTitle
import mezz.jei.util.Translator; //导入方法依赖的package包/类
@Override
public String getTitle() {
return Translator.translateToLocal("inv.firenet.name");
}
示例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");
}