當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。