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