Interface IHudElement

All Superinterfaces:
org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IDraggable, org.rusherhack.core.feature.IFeature, org.rusherhack.core.feature.IFeatureConfigurable, org.rusherhack.core.interfaces.IHoverable, org.rusherhack.core.interfaces.INamed, IRenderable2D, org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.IToggleable, org.rusherhack.core.serialize.JsonSerializable
All Known Implementing Classes:
HudElement, ListHudElement, ResizeableHudElement, ShortListHudElement, TextHudElement

public interface IHudElement extends org.rusherhack.core.feature.IFeatureConfigurable, IRenderable2D, org.rusherhack.core.interfaces.IToggleable, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.IDraggable, org.rusherhack.core.serialize.JsonSerializable
Hud element interface
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    renderContent(RenderContext context, double mouseX, double mouseY)
    Hud element is being called for rendering.
    default void
    renderContent(RenderContext context, int mouseX, int mouseY)
    Deprecated, for removal: This API element is subject to removal in a future version.
    default boolean
     

    Methods inherited from interface org.rusherhack.core.interfaces.IClickable

    mouseClicked, mouseReleased

    Methods inherited from interface org.rusherhack.core.interfaces.IDraggable

    isDragging, mouseMoved

    Methods inherited from interface org.rusherhack.core.feature.IFeature

    getDescription

    Methods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable

    getSetting, getSettings, registerSettings, reset

    Methods inherited from interface org.rusherhack.core.interfaces.IHoverable

    isHovered

    Methods inherited from interface org.rusherhack.core.interfaces.INamed

    getAliases, getDisplayName, getName

    Methods inherited from interface org.rusherhack.client.api.render.IRenderable2D

    getFontRenderer, getRenderer, render, render

    Methods inherited from interface org.rusherhack.core.serialize.ISerializable

    deserialize, serialize, shouldAutoSave, shouldSerialize

    Methods inherited from interface org.rusherhack.core.interfaces.ITickable

    tick

    Methods inherited from interface org.rusherhack.core.interfaces.IToggleable

    isToggled, onDisable, onEnable, setToggled, toggle
  • Method Details

    • renderContent

      @Deprecated(forRemoval=true) default void renderContent(RenderContext context, int mouseX, int mouseY)
      Deprecated, for removal: This API element is subject to removal in a future version.
      DEPRECATED! Override renderContent(RenderContext, double, double) instead.
    • renderContent

      default void renderContent(RenderContext context, double mouseX, double mouseY)
      Hud element is being called for rendering.

      Matrix is translated to the top left corner of the element before being called.

    • shouldDrawBackground

      default boolean shouldDrawBackground()
      Returns:
      whether the background should be drawn