Fabric API

Fabric API

152M Downloads

There is no DrawBorder method in fabric api [1.21.9-rc1]

Closed this issue · 7 comments

commented

There is no DrawBorder method in fabric api [1.21.9-rc1]

commented

This doesn't seem like a problem with fabric api. Could you share more information about what the problem is and how you expect fabric to be able to solve it?

commented

It's replaced by net.minecraft.client.gui.DrawContext#drawStrokedRectangle. Not a Fabric API issue.

commented

👋 We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for either a discussion thread, or a message on our discord server. Please post your request on one of these, and the conversation can continue there.

commented

Thanks

commented

There is an issue where it only draws in gui screens. If you try and draw it into the hud it doesn’t work.

commented

It's replaced by net.minecraft.client.gui.DrawContext#drawStrokedRectangle. Not a Fabric API issue.

drawStrokedRectangle does not appear to scale to the Matrix though.

commented

Look at the implementation, it submits the draw calls to be drawn later. It won't work with HUD rendering. You can make a helper method by using DrawContext#fill.

Oddly enough, this was reverted back on 1.21.10.