Class HudRenderComponentPatternWheel

java.lang.Object
wtf.choco.veinminer.hud.HudRenderComponentPatternWheel
All Implemented Interfaces:
HudRenderComponent

public final class HudRenderComponentPatternWheel extends Object implements HudRenderComponent
A HudRenderComponent for the pattern selection wheel in the top left.
  • 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 given PoseStack.
      Specified by:
      render in interface HudRenderComponent
      Parameters:
      client - the client instance
      stack - the stack to which the hud is being rendered
      tickDelta - tick delta time
    • shouldRender

      public boolean shouldRender(@NotNull @NotNull ClientConfig config)
      Description copied from interface: HudRenderComponent
      Check whether or not this component should be rendered to the screen.
      Specified by:
      shouldRender in interface HudRenderComponent
      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.