use of mezz.jei.api.gui.drawable.IDrawableStatic in project Electrodynamics by aurilisdev.
the class ModFurnaceRecipeCategory method draw.
@Override
public void draw(AbstractCookingRecipe recipe, PoseStack matrixStack, double mouseX, double mouseY) {
List<IDrawableStatic> inputSlots = INPUT_SLOTS.getUnchecked(ANIMATION_LENGTH);
IDrawableStatic image;
ScreenObjectWrapper wrapper;
for (int i = 0; i < inputSlots.size(); i++) {
image = inputSlots.get(i);
wrapper = inSlots[i];
image.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
List<IDrawableStatic> outputSlots = OUTPUT_SLOTS.getUnchecked(ANIMATION_LENGTH);
for (int i = 0; i < outputSlots.size(); i++) {
image = outputSlots.get(i);
wrapper = outSlots[i];
image.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
List<IDrawableStatic> staticArrows = STATIC_ARROWS.getUnchecked(ANIMATION_LENGTH);
for (int i = 0; i < staticArrows.size(); i++) {
image = staticArrows.get(i);
wrapper = this.staticArrows[i];
image.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
List<IDrawableAnimated> arrows = ANIMATED_ARROWS.getUnchecked(ANIMATION_LENGTH);
IDrawableAnimated arrow;
for (int i = 0; i < arrows.size(); i++) {
arrow = arrows.get(i);
wrapper = animArrows[i];
arrow.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
addDescriptions(matrixStack);
}
use of mezz.jei.api.gui.drawable.IDrawableStatic in project Electrodynamics by aurilisdev.
the class ElectrodynamicsRecipeCategory method drawStaticArrows.
public void drawStaticArrows(PoseStack matrixStack) {
if (STATIC_ARROWS != null) {
List<IDrawableStatic> arrows = STATIC_ARROWS.getUnchecked(getAnimationTime());
IDrawableStatic image;
ScreenObjectWrapper wrapper;
for (int i = 0; i < arrows.size(); i++) {
image = arrows.get(i);
wrapper = staticArrows[i];
image.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
}
}
use of mezz.jei.api.gui.drawable.IDrawableStatic in project Electrodynamics by aurilisdev.
the class ElectrodynamicsRecipeCategory method drawInputSlots.
public void drawInputSlots(PoseStack matrixStack) {
if (INPUT_SLOTS != null) {
List<IDrawableStatic> inputSlots = INPUT_SLOTS.getUnchecked(getAnimationTime());
IDrawableStatic image;
ScreenObjectWrapper wrapper;
for (int i = 0; i < inputSlots.size(); i++) {
image = inputSlots.get(i);
wrapper = inSlots[i];
image.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
}
}
use of mezz.jei.api.gui.drawable.IDrawableStatic in project Electrodynamics by aurilisdev.
the class ElectrodynamicsRecipeCategory method drawFluidInputs.
public void drawFluidInputs(PoseStack matrixStack) {
if (FLUID_INPUTS != null) {
List<IDrawableStatic> inFluidGauges = FLUID_INPUTS.getUnchecked(getAnimationTime());
IDrawableStatic image;
ScreenObjectWrapper wrapper;
for (int i = 0; i < inFluidGauges.size(); i++) {
image = inFluidGauges.get(i);
wrapper = fluidInputs[i];
image.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
}
}
use of mezz.jei.api.gui.drawable.IDrawableStatic in project Electrodynamics by aurilisdev.
the class ElectrodynamicsRecipeCategory method drawOutputSlots.
public void drawOutputSlots(PoseStack matrixStack) {
if (OUTPUT_SLOTS != null) {
List<IDrawableStatic> outputSlots = OUTPUT_SLOTS.getUnchecked(getAnimationTime());
IDrawableStatic image;
ScreenObjectWrapper wrapper;
for (int i = 0; i < outputSlots.size(); i++) {
image = outputSlots.get(i);
wrapper = outSlots[i];
image.draw(matrixStack, wrapper.getXPos(), wrapper.getYPos());
}
}
}
Aggregations