package org.cyclops.cyclopscore.client.gui.image;

import lombok.Data;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.util.ResourceLocation;

/**
 * A wrapper that contains a reference to a {@link net.minecraft.util.ResourceLocation} and its sheet position.
 * @author rubensworks
 */
@Data
public class Image implements IImage {

    private final ResourceLocation resourceLocation;
    private final int sheetX, sheetY, sheetWidth, sheetHeight;

    @Override
    public void draw(Gui gui, int x, int y) {
        Minecraft.getMinecraft().renderEngine.bindTexture(resourceLocation);
        gui.drawTexturedModalRect(x, y, sheetX, sheetY, sheetWidth, sheetHeight);
    }

}

@@ -491,16 +491,322 @@
 eight;%0A%0A
+    public Image(ResourceLocation resourceLocation, int sheetX, int sheetY, int sheetWidth, int sheetHeight) %7B%0A        this.resourceLocation = resourceLocation;%0A        this.sheetX = sheetX;%0A        this.sheetY = sheetY;%0A        this.sheetWidth = sheetWidth;%0A        this.sheetHeight = sheetHeight;%0A    %7D%0A%0A
     @Ove

Fix image lombok constructor