本文整理匯總了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();
}
示例2: getIcon
import mezz.jei.api.gui.IDrawable; //導入依賴的package包/類
@Nullable
@Override
public IDrawable getIcon() {
return icon;
}
示例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);
}
}
示例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;
}
示例5: getBackground
import mezz.jei.api.gui.IDrawable; //導入依賴的package包/類
@Nonnull
@Override
public IDrawable getBackground() {
GlStateManager.enableAlpha();
GlStateManager.enableBlend();
return background;
}
示例6: getBackground
import mezz.jei.api.gui.IDrawable; //導入依賴的package包/類
@Override
public IDrawable getBackground() {
return background;
}
示例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);
}
示例8: getIcon
import mezz.jei.api.gui.IDrawable; //導入依賴的package包/類
@Nullable
@Override
public IDrawable getIcon() {
return null;
}
示例9: getBackground
import mezz.jei.api.gui.IDrawable; //導入依賴的package包/類
@Override
public IDrawable getBackground() {
return drawable;
}
示例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);
}
示例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);
}
示例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);
}
示例13: getBackground
import mezz.jei.api.gui.IDrawable; //導入依賴的package包/類
@Override
public IDrawable getBackground() {
return bg;
}
示例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);
}
示例15: getBackground
import mezz.jei.api.gui.IDrawable; //導入依賴的package包/類
@Override
public IDrawable getBackground() {
return background;
}