-
drawScreen() doesn't trigger in GuiScreen
I'm trying to create a simple gui with a few buttons which open when the player does /zm. The command isn't the problem (and I don't think the initGui() ) is, but drawScreen() never triggers. I have two debuggers to see if they trigger and initGui does but not drawScreen. Code: https://pastebin.com/CMXnWj4E What triggers: https://gyazo.com/c9398a1518962b3d4f17f90e3f990bf5.mp4 Any help is appreciated!
- ScreenGui does nothing
-
ScreenGui does nothing
bump. anyone help?
-
ScreenGui does nothing
I'm trying to make a gui to edit values and settings using a command, but the gui just does nothing apart from showing me the "init gui" message I put i the initGui() method. package xyz.jaffaaaa.zealotmanager; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.util.ChatComponentText; public class GuiHandler extends GuiScreen { private GuiButton reset; private ZealotManager zm; public GuiHandler(ZealotManager zm) { this.zm=zm; } @Override public void initGui() { super.initGui(); this.buttonList.clear(); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("init gui")); this.buttonList.add(reset = new GuiButton(0, this.width / 2 - 100, this.height / 2, "Reset Counters")); } @Override protected void actionPerformed(GuiButton button) { if (button == reset) { zm.counter.zealotsSinceLastEye = 0; zm.counter.totalEyes = 0; zm.counter.totalZealots = 0; } } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { super.drawScreen(mouseX, mouseY, partialTicks); drawDefaultBackground(); } }
-
Simulating transfering items
any help on this?
-
Simulating transfering items
I want to make a keybind where if you activate the keybind while in a chest gui, it transfers all of your cobblestone into the chest as if you were shift clicking them. All of this on clientside btw. I'm just not sure which direction to go with this. Any help is extremely appreciated.
-
Render Image over other players
Literally just render a 2D picture over a player. Not a reskin or anything. Just to draw an image on a player (and scale to how big the player is)
-
Render Image over other players
I've tried to look for help on how to just render an image over other players but every time I look for threads I can only find examples of people editing their own player's movement etc. Any help would be appreciated.
-
Jaffaaaaa joined the community
-
How to make client hold a button
I want to make a keybind where if it's pressed, the player goes forward, and holds left click until the keybind is toggled again. Any help is appreciated
IPS spam blocked by CleanTalk.