mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-12 00:17:51 +00:00
* Update build script * Update build script to import fix for shadow in dev and sources artifacts * Update fixed build script to shadow csv dependency in dev jar as well * Moved jitpack * Move new files
57 lines
1.7 KiB
Java
57 lines
1.7 KiB
Java
package codechicken.nei;
|
|
|
|
import codechicken.lib.render.CCRenderState;
|
|
import codechicken.nei.api.INEIGuiHandler;
|
|
import codechicken.nei.api.TaggedInventoryArea;
|
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
|
import net.minecraft.inventory.Container;
|
|
import net.minecraft.item.ItemStack;
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
public class GuiExtendedCreativeInv extends GuiContainer implements INEIGuiHandler
|
|
{
|
|
public GuiExtendedCreativeInv(Container par1Container) {
|
|
super(par1Container);
|
|
ySize = 198;
|
|
}
|
|
|
|
@Override
|
|
protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {
|
|
GL11.glColor4f(1, 1, 1, 1);
|
|
CCRenderState.changeTexture("nei:textures/gui/inv.png");
|
|
|
|
int x = guiLeft;
|
|
int y = guiTop - 4;
|
|
|
|
drawTexturedModalRect(x - 23, y, 0, 0, 199, 204);
|
|
}
|
|
|
|
@Override
|
|
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility) {
|
|
return currentVisibility;
|
|
}
|
|
|
|
@Override
|
|
public Iterable<Integer> getItemSpawnSlots(GuiContainer gui, ItemStack item) {
|
|
return NEIServerUtils.getRange(0, 54);
|
|
}
|
|
|
|
@Override
|
|
public List<TaggedInventoryArea> getInventoryAreas(GuiContainer gui) {
|
|
return Collections.singletonList(new TaggedInventoryArea("ExtendedCreativeInv", 0, 54, inventorySlots));
|
|
}
|
|
|
|
@Override
|
|
public boolean handleDragNDrop(GuiContainer gui, int mousex, int mousey, ItemStack draggedStack, int button) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean hideItemPanelSlot(GuiContainer gui, int x, int y, int w, int h) {
|
|
return false;
|
|
}
|
|
}
|