Package wtf.choco.veinminer.hud
Interface HudRenderComponent
- All Known Implementing Classes:
HudRenderComponentPatternWheel
,HudRenderComponentVeinMiningIcon
public interface HudRenderComponent
A simple component capable of being rendered on the Minecraft HUD.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(@NotNull net.minecraft.client.Minecraft client, @NotNull com.mojang.blaze3d.vertex.PoseStack stack, float tickDelta) Render the component to the givenPoseStack
.boolean
shouldRender
(@NotNull ClientConfig config) Check whether or not this component should be rendered to the screen.
-
Method Details
-
render
void render(@NotNull @NotNull net.minecraft.client.Minecraft client, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack stack, float tickDelta) Render the component to the givenPoseStack
.- Parameters:
client
- the client instancestack
- the stack to which the hud is being renderedtickDelta
- tick delta time
-
shouldRender
Check whether or not this component should be rendered to the screen.- Parameters:
config
- the client configuration- Returns:
- true if should be rendered, false otherwise
-