hey all so im making a mod as a noob modder and one of the blocks it adds is a Componet Seperator, or a BlockCS. Would anybody take a look at the GUIComponet Seperator and tell me what is wrong with it? Whenever I click on the block, instead of pulling up the block it freezes my screen until I press escape. Thanks in advance =D
And here is the Github link
Could you post the Code that your having trouble with here? I seem to be having trouble with the website you linked. -__-
package ninjapancakes87.morestuff.common;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
public class GUIComponetSeperator extends GuiContainer {
public GUIComponetSeperator(Container ContainerComponetSeperator) {
super(ContainerComponetSeperator);
}
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
this.drawDefaultBackground();
}
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
int var4 = this.mc.renderEngine.getTexture("/gui/GUIComponetSeperator.png");
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.renderEngine.bindTexture(var4);
int var5 = (this.width - this.xSize) / 2;
int var6 = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);
}
}
ok so I don't think there is anything wrong with this, but I have no idea whatsoever on how to use containers. Tips or links to something that could explain this? thanks
Uh, what do you need a GUI for if you wanna pull the block up? (By 'pulling up' I guess you mean that you wanna move the block into a higher position?) You do know what a GUI is? No offense, just asking.
by "pull up" i mean open up a GUI with slots and stuff
And here is the Github link
ok so I don't think there is anything wrong with this, but I have no idea whatsoever on how to use containers. Tips or links to something that could explain this? thanks
by "pull up" i mean open up a GUI with slots and stuff