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


Java IDrawable类代码示例

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


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

示例1: getTooltipStrings

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Nonnull
@Override
public List<String> getTooltipStrings(int mouseX, int mouseY) {
    IDrawable info = WizardryJEIPlugin.manaCategory.info;
    if (mouseX >= 64 && mouseX <= 64 + info.getWidth() / 2 &&
            mouseY >= 3 && mouseY <= 3 + info.getHeight() / 2) {
        List<String> output = Lists.newArrayList();
        if (builder.isBlock())
            TooltipHelper.addToTooltip(output, "jei.recipe.block." + manaCategory.getUid());
        if (builder.doesConsume() && (!builder.isBlock() || builder.getRadius() != 0))
            TooltipHelper.addToTooltip(output, "jei.recipe.consumes." + manaCategory.getUid());
        if (builder.getRadius() != 0)
            TooltipHelper.addToTooltip(output, "jei.recipe.radius." + manaCategory.getUid(), builder.getRadius() * 2 + 1);
        return output;
    }

    return Collections.emptyList();
}
 
开发者ID:TeamWizardry,项目名称:Wizardry,代码行数:19,代码来源:ManaRecipeJEI.java

示例2: getIcon

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Nullable
@Override
public IDrawable getIcon() {
    return icon;
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:6,代码来源:JEICompressedIronCategory.java

示例3: drawAspectBar

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
public void drawAspectBar(Minecraft minecraft, AspectList.AspectRangeList aspectRange, int aspectTotal, int x, int y, String aspect) {
    int max = aspectRange.getMax(aspect);
    if (max > 0){
        int min = aspectRange.getMin(aspect);
        int u = 109;
        int v = 0;
        int width = 54;
        int height = 7;
        IDrawable ashBar = helper.createDrawable(resourceLocation, u, v, ((width *min)/aspectTotal), height);
        IDrawable ashPartialBar = helper.createDrawable(resourceLocation, u, v + 7, ((width * max)/aspectTotal), height);
        ashPartialBar.draw(minecraft, x, y);
        ashBar.draw(minecraft, x, y);
        Minecraft.getMinecraft().fontRenderer.drawStringWithShadow(min+"-"+max, x +width+6, y, 0xFFFFFF);
    }
}
 
开发者ID:DaedalusGame,项目名称:Soot,代码行数:16,代码来源:AlchemicalMixerCategory.java

示例4: copyPrepareGasRender

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Optional.Method(modid = "mekanism")
public HybridFluidRenderer<T> copyPrepareGasRender(int width, int height, int capacityMb, boolean showCapacity, @Nullable IDrawable overlay) {
    HybridFluidRenderer<T> copy = new HybridFluidRenderer<>();
    copy.gasRenderer = new GasStackRenderer(capacityMb, showCapacity, width, height, overlay);
    copy.fluidStackRenderer = this.fluidStackRenderer;
    return copy;
}
 
开发者ID:HellFirePvP,项目名称:ModularMachinery,代码行数:8,代码来源:HybridFluidRenderer.java

示例5: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Nonnull
@Override
public IDrawable getBackground() {
    GlStateManager.enableAlpha();
    GlStateManager.enableBlend();
    return background;
}
 
开发者ID:TeamWizardry,项目名称:Wizardry,代码行数:8,代码来源:FireCraftingCategory.java

示例6: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
    return background;
}
 
开发者ID:DaedalusGame,项目名称:Soot,代码行数:5,代码来源:DawnstoneAnvilCategory.java

示例7: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
    return guiHelper.createDrawable(new ResourceLocation(Reference.MOD_ID, "textures/gui/jei.png"), 0, 78, 81, 50);
}
 
开发者ID:Buuz135,项目名称:Industrial-Foregoing,代码行数:5,代码来源:SludgeRefinerRecipeCategory.java

示例8: getIcon

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Nullable
@Override
public IDrawable getIcon() {
    return null;
}
 
开发者ID:Buuz135,项目名称:Industrial-Foregoing,代码行数:6,代码来源:SludgeRefinerRecipeCategory.java

示例9: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
    return drawable;
}
 
开发者ID:Buuz135,项目名称:Industrial-Foregoing,代码行数:5,代码来源:ManualCategory.java

示例10: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
    return guiHelper.createDrawable(new ResourceLocation("minecraft", "textures/gui/container/furnace.png"), 55, 38 + 14, 18, 18, 3, 3, 0, 80);
}
 
开发者ID:Buuz135,项目名称:Industrial-Foregoing,代码行数:5,代码来源:PetrifiedBurnTimeCategory.java

示例11: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
    return guiHelper.createDrawable(new ResourceLocation(Reference.MOD_ID, "textures/gui/jei.png"), 0, 0, 82, 26);
}
 
开发者ID:Buuz135,项目名称:Industrial-Foregoing,代码行数:5,代码来源:MachineProduceCategory.java

示例12: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
    return guiHelper.createDrawable(new ResourceLocation(Reference.MOD_ID, "textures/gui/jei.png"), 0, 27, 82, 50);
}
 
开发者ID:Buuz135,项目名称:Industrial-Foregoing,代码行数:5,代码来源:ReactorRecipeCategory.java

示例13: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
	return bg;
}
 
开发者ID:Um-Mitternacht,项目名称:Bewitchment,代码行数:5,代码来源:SpinnerCategory.java

示例14: getOverlay

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
protected IDrawable getOverlay(IGuiHelper guiHelper, String name)
{
	return guiHelper.createDrawable(new ResourceLocation(HarshenCastle.MODID, "textures/gui/jei/" + name + ".png"), 0, 0, 150, 110, 150, 110);
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:5,代码来源:BaseJeiCategory.java

示例15: getBackground

import mezz.jei.api.gui.IDrawable; //导入依赖的package包/类
@Override
public IDrawable getBackground() {
	return background;
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:5,代码来源:BaseJeiCategory.java


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