Class HudRenderer
java.lang.Object
meteordevelopment.meteorclient.systems.hud.HudRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoublenet.minecraft.client.gui.DrawContextstatic final HudRenderer -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(net.minecraft.client.gui.DrawContext drawContext) voidend()voidentity(net.minecraft.client.gui.DrawContext context, float x, float y, int size, float yaw, float pitch, net.minecraft.entity.LivingEntity entity) Draws an entity to the screen.voiditem(net.minecraft.item.ItemStack itemStack, int x, int y, float scale, boolean overlay) voiditem(net.minecraft.item.ItemStack itemStack, int x, int y, float scale, boolean overlay, String countOverlay) voidvoidvoidvoidquad(double x, double y, double width, double height, Color cTopLeft, Color cTopRight, Color cBottomRight, Color cBottomLeft) doubledoubledoubledoubletextHeight(boolean shadow) doubletextHeight(boolean shadow, double scale) voidtexture(net.minecraft.util.Identifier id, double x, double y, double width, double height, Color color) doubledoubledoubledoublevoid
-
Field Details
-
INSTANCE
-
drawContext
public net.minecraft.client.gui.DrawContext drawContext -
delta
public double delta
-
-
Method Details
-
begin
public void begin(net.minecraft.client.gui.DrawContext drawContext) -
end
public void end() -
line
-
quad
-
quad
-
triangle
-
texture
public void texture(net.minecraft.util.Identifier id, double x, double y, double width, double height, Color color) -
text
-
text
-
textWidth
-
textWidth
-
textWidth
-
textWidth
-
textHeight
public double textHeight(boolean shadow, double scale) -
textHeight
public double textHeight(boolean shadow) -
textHeight
public double textHeight() -
post
-
item
public void item(net.minecraft.item.ItemStack itemStack, int x, int y, float scale, boolean overlay, String countOverlay) -
item
public void item(net.minecraft.item.ItemStack itemStack, int x, int y, float scale, boolean overlay) -
entity
public void entity(net.minecraft.client.gui.DrawContext context, float x, float y, int size, float yaw, float pitch, net.minecraft.entity.LivingEntity entity) Draws an entity to the screen. The default version provided by InventoryScreen has had its parameters changed such that it's no longer appropriate for this use case. As the new version uses rotation based on the mouse position relative to itself, it causes some odd angle positioning that may also look "stuck" to one corner, and the model's facing may change depending on how we reposition the element. Additionally, it uses OpenGL scissors, which causes the player model to get cut when the Minecraft GUI scale is not 1x. This version should fix these issues.
-