use of binnie.core.gui.minecraft.ContainerCraftGUI in project Binnie by ForestryMC.
the class ControlFruitPressProgress method onRenderBackground.
@Override
@SideOnly(Side.CLIENT)
public void onRenderBackground(int guiWidth, int guiHeight) {
CraftGUI.RENDER.texture(ControlFruitPressProgress.PressSlot, new Point(3, 52));
ContainerCraftGUI container = Window.get(this).getContainer();
IInventory inventory = Window.get(this).getInventory();
Slot slotFromInventory = container.getSlotFromInventory(inventory, FruitPressMachine.SLOT_CURRENT);
if (slotFromInventory == null) {
return;
}
final ItemStack input = slotFromInventory.getStack();
if (input.isEmpty() || FruitPressRecipeManager.getOutput(input) == null) {
return;
}
FluidStack fluid = FruitPressRecipeManager.getOutput(input);
RenderUtil.drawFluid(new Point(4, 52), fluid);
RenderUtil.drawItem(new Point(4, 52), input);
}
Aggregations