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


Java Translator类代码示例

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


Translator类属于mezz.jei.util包,在下文中一共展示了Translator类的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: drawExtras

import mezz.jei.util.Translator; //导入依赖的package包/类
@Override
public void drawExtras(Minecraft minecraft) {
	if(Config.jei_render_machines_into_gui) {
		TextureManager texturemanager = minecraft.renderEngine;
		texturemanager.bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);

		GL11.glPushMatrix();

		RenderHelper.enableGUIStandardItemLighting();
		GlStateManager.enableRescaleNormal();

		GL11.glTranslated(46.5, 33.2, 1);
		GL11.glScaled(20, -20, 2);
		GL11.glRotated(10, 1, 0, 0);
		GL11.glRotated(45, 0, 1, 0);

		RenderItem ri = Minecraft.getMinecraft().getRenderItem();
		IBakedModel model = ri.getItemModelMesher().getItemModel(renderStackFluidDrier);
		ri.renderItem(renderStackFluidDrier, model);

		RenderHelper.disableStandardItemLighting();
		GlStateManager.disableRescaleNormal();

		GL11.glPopMatrix();
	}
	{
		FontRenderer fontRendererObj = minecraft.fontRendererObj;

		GL11.glPushMatrix();

		GL11.glScaled(.5, .5, 1);

		String display = Translator.translateToLocalFormatted(Taam.INTEGRATION_JEI_LORE_INTERNAL_CAPACITY, Config.pl_fluid_drier_capacity);
		fontRendererObj.drawString(display, 24*2, 3*2, 0x00555555, false);

		GL11.glPopMatrix();
	}
}
 
开发者ID:Team-IO,项目名称:taam,代码行数:39,代码来源:FluidDrierCategory.java

示例7: drawExtras

import mezz.jei.util.Translator; //导入依赖的package包/类
@Override
public void drawExtras(@Nonnull Minecraft minecraft) {
	if(Config.jei_render_machines_into_gui) {
		TextureManager texturemanager = minecraft.renderEngine;
		texturemanager.bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);

		GL11.glPushMatrix();

		RenderHelper.enableGUIStandardItemLighting();
		GlStateManager.enableRescaleNormal();

		GL11.glTranslated(48.5, 33.2, 1);
		GL11.glScaled(20, -20, 2);
		GL11.glRotated(10, 1, 0, 0);
		GL11.glRotated(45, 0, 1, 0);

		RenderItem ri = Minecraft.getMinecraft().getRenderItem();
		IBakedModel model = ri.getItemModelMesher().getItemModel(renderStackFluidDrier);
		ri.renderItem(renderStackFluidDrier, model);

		RenderHelper.disableStandardItemLighting();
		GlStateManager.disableRescaleNormal();

		GL11.glPopMatrix();
	}
	{
		FontRenderer fontRendererObj = minecraft.fontRendererObj;

		GL11.glPushMatrix();

		GL11.glScaled(.5, .5, 1);

		String display = Translator.translateToLocalFormatted(Taam.INTEGRATION_JEI_LORE_INTERNAL_CAPACITY_IN, Config.pl_mixer_capacity_input);
		fontRendererObj.drawString(display, 4*2, 47*2, 0x00555555, false);
		display = Translator.translateToLocalFormatted(Taam.INTEGRATION_JEI_LORE_INTERNAL_CAPACITY_OUT, Config.pl_mixer_capacity_output);
		fontRendererObj.drawString(display, 6*2, 47*2, 0x00555555, false);

		GL11.glPopMatrix();
	}
}
 
开发者ID:Team-IO,项目名称:taam,代码行数:41,代码来源:MixerCategory.java

示例8: drawExtras

import mezz.jei.util.Translator; //导入依赖的package包/类
@Override
public void drawExtras(Minecraft minecraft) {
	if(Config.jei_render_machines_into_gui) {
		TextureManager texturemanager = minecraft.renderEngine;
		texturemanager.bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);

		GL11.glPushMatrix();

		RenderHelper.enableGUIStandardItemLighting();
		GlStateManager.enableRescaleNormal();

		GL11.glTranslated(46.5, 33.2, 1);
		GL11.glScaled(20, -20, 2);
		GL11.glRotated(10, 1, 0, 0);
		GL11.glRotated(45, 0, 1, 0);

		RenderItem ri = Minecraft.getMinecraft().getRenderItem();
		IBakedModel model = ri.getItemModelMesher().getItemModel(renderStackSprayer);
		ri.renderItem(renderStackSprayer, model);

		RenderHelper.disableStandardItemLighting();
		GlStateManager.disableRescaleNormal();

		GL11.glPopMatrix();
	}
	{
		FontRenderer fontRendererObj = minecraft.fontRendererObj;

		GL11.glPushMatrix();

		GL11.glScaled(.5, .5, 1);

		String display = Translator.translateToLocalFormatted(Taam.INTEGRATION_JEI_LORE_INTERNAL_CAPACITY, Config.pl_sprayer_capacity);
		fontRendererObj.drawString(display, 24*2, 3*2, 0x00555555, false);

		GL11.glPopMatrix();
	}
}
 
开发者ID:Team-IO,项目名称:taam,代码行数:39,代码来源:SprayerCategory.java

示例9: CrystallizationRecipe

import mezz.jei.util.Translator; //导入依赖的package包/类
public CrystallizationRecipe(@Nonnull List<ItemStack> input, @Nonnull ItemStack output, ItemStack output2, float experience) {
	this.input = Collections.singletonList(input);

	outputs = new ArrayList();
	Collections.addAll(outputs, output, output2);

	if (experience > 0.0)
		experienceString = Translator.translateToLocalFormatted("gui.jei.category.smelting.experience", experience);
	else
		experienceString = null;
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:12,代码来源:CrystallizationRecipe.java

示例10: 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

示例11: 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

示例12: getTitle

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

示例13: getTitle

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

示例14: getTitle

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

示例15: getTitle

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


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