Jump to content

Draw rectangle.


Recommended Posts

4 minutes ago, diesieben07 said:

You can use RenderGameOverlayEvent.Pre with ElementType.ALL to add to the HUD.

package me.kek.kekclient.event.events;

import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

public class WaterMarkThing extends GuiScreen {
    public void onRender(RenderGameOverlayEvent event) {
        if (event.getType() == RenderGameOverlayEvent.ElementType.ALL) {
            drawRect(10, 10, 10, 10, 0xb8352c);

This code does not show a rectangle :/

Do you know why it does not?

I also put it in the eventbus in the init

Link to comment
Share on other sites

This topic is now closed to further replies.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.