package mcjty.deepresonance.blocks.pedestal;
import mcjty.deepresonance.DeepResonance;
import mcjty.lib.container.GenericGuiContainer;
import mcjty.lib.gui.Window;
import mcjty.lib.gui.layout.PositionalLayout;
import mcjty.lib.gui.widgets.Panel;
import mcjty.lib.gui.widgets.Widget;
import net.minecraft.util.ResourceLocation;
import java.awt.*;
public class GuiPedestal extends GenericGuiContainer<PedestalTileEntity> {
public static final int PEDESTAL_WIDTH = 180;
public static final int PEDESTAL_HEIGHT = 152;
private static final ResourceLocation iconLocation = new ResourceLocation(DeepResonance.MODID, "textures/gui/pedestal.png");
public GuiPedestal(PedestalTileEntity pedestalTileEntity, PedestalContainer container) {
super(DeepResonance.instance, DeepResonance.networkHandler.getNetworkWrapper(), pedestalTileEntity, container, 0, "pedestal");
xSize = PEDESTAL_WIDTH;
ySize = PEDESTAL_HEIGHT;
}
@Override
public void initGui() {
super.initGui();
Widget toplevel = new Panel(mc, this).setBackground(iconLocation).setLayout(new PositionalLayout());
toplevel.setBounds(new Rectangle(guiLeft, guiTop, xSize, ySize));
window = new Window(this, toplevel);
}
@Override
protected void drawGuiContainerBackgroundLayer(float v, int i, int i2) {
drawWindow();
}
}