Interface ZoomOverlay

All Known Implementing Classes:
SpyglassZoomOverlay

public interface ZoomOverlay
The zoom overlay is a sub-instance that handles the rendering of an overlay.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Determines if the zoom overlay should cancel the rendering of anything rendered after that.
    boolean
    Gets the active state of the zoom overlay.
    net.minecraft.util.Identifier
    Gets the identifier of the zoom overlay.
    void
    renderOverlay(net.minecraft.client.util.math.MatrixStack matrices)
    Renders the overlay itself.
    void
    tick(boolean active, double divisor, double transitionMultiplier)
    The tick method.
    default void
    The tick method used right before the overlay is rendered.
  • Method Details

    • getIdentifier

      net.minecraft.util.Identifier getIdentifier()
      Gets the identifier of the zoom overlay.
      Returns:
      the zoom overlay's identifier
    • getActive

      boolean getActive()
      Gets the active state of the zoom overlay.
      Returns:
      the zoom overlay's active state
    • cancelOverlayRendering

      default boolean cancelOverlayRendering()
      Determines if the zoom overlay should cancel the rendering of anything rendered after that. By default, it returns false.
      Returns:
      the state that will be used in order to cancel the rendering or not
    • renderOverlay

      void renderOverlay(net.minecraft.client.util.math.MatrixStack matrices)
      Renders the overlay itself. It's injected by LibZoomer itself.
      Parameters:
      matrices - the in-game HUD's matrices
    • tick

      void tick(boolean active, double divisor, double transitionMultiplier)
      The tick method. Used in order to keep the internal variables accurate and the overlay functional.
      Parameters:
      active - the zoom state
      divisor - the zoom divisor
      transitionMultiplier - the transition mode's internal multiplier
    • tickBeforeRender

      default void tickBeforeRender()
      The tick method used right before the overlay is rendered.

      This isn't required to be implemented.