Package wtf.choco.veinminer.hud
Class HudRenderComponentPatternWheel
java.lang.Object
wtf.choco.veinminer.hud.HudRenderComponentPatternWheel
- All Implemented Interfaces:
HudRenderComponent
A
HudRenderComponent
for the pattern selection wheel in the top left.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Push a render cycle to the component.void
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.
-
Constructor Details
-
HudRenderComponentPatternWheel
public HudRenderComponentPatternWheel()
-
-
Method Details
-
render
public void render(@NotNull @NotNull net.minecraft.client.Minecraft client, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack stack, float tickDelta) 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 renderedtickDelta
- 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
-
pushRender
public void pushRender()Push a render cycle to the component.If this wheel is not being rendered, it will start rendering. If it is fading it, it will continue to fade in. If it is during its stay period, it will reset to the start of the stay period. If it is fading out, it will start fading in starting from the current fade out time.
-