本文整理汇总了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;
}