Jump to content

gui "fill" rendering above item tooltips


Rapid Radiance

Recommended Posts

spacer.png

Im new to modding and java and i cant find anything about this problem so if someone can help that would be nice

    private void renderinputerror(PoseStack pPoseStack){
        int x = (width - imageWidth) / 2;
        int y = (height - imageHeight) / 2;
        boolean inputinslot = getMenu().blockEntity.itemHandler.getStackInSlot(1).getCount() > 0 || getMenu().blockEntity.itemHandler.getStackInSlot(3).getCount() > 0;
        int bgcolor = new Color(198, 198, 198).getRGB();
        if(inputinslot){
            fill(pPoseStack,x + 9,y + 16,x + 49,y + 31, bgcolor);
        }
    }

 

-Rapid

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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