Package wtf.choco.veinminer.hud
Class HudRenderComponentVeinMiningIcon
java.lang.Object
wtf.choco.veinminer.hud.HudRenderComponentVeinMiningIcon
- All Implemented Interfaces:
HudRenderComponent
A
HudRenderComponent
for the vein mining icon at the user's crosshair.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(@NotNull net.minecraft.client.Minecraft client, @NotNull com.mojang.blaze3d.vertex.PoseStack stack, float delta) Render the component to the givenPoseStack
.boolean
shouldRender
(@NotNull ClientConfig config) Check whether or not this component should be rendered to the screen.
-
Constructor Details
-
HudRenderComponentVeinMiningIcon
public HudRenderComponentVeinMiningIcon()
-
-
Method Details
-
render
public void render(@NotNull @NotNull net.minecraft.client.Minecraft client, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack stack, float delta) Description copied from interface:HudRenderComponent
Render the component to the givenPoseStack
.- Specified by:
render
in interfaceHudRenderComponent
- Parameters:
client
- the client instancestack
- the stack to which the hud is being rendereddelta
- tick delta time
-
shouldRender
Description copied from interface:HudRenderComponent
Check whether or not this component should be rendered to the screen.- Specified by:
shouldRender
in interfaceHudRenderComponent
- Parameters:
config
- the client configuration- Returns:
- true if should be rendered, false otherwise
-