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 TypeMethodDescriptiondefault voidrenderContent(RenderContext context, double mouseX, double mouseY) Hud element is being called for rendering.default voidrenderContent(RenderContext context, int mouseX, int mouseY) Deprecated, for removal: This API element is subject to removal in a future version.default booleanMethods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseClicked, mouseReleasedMethods inherited from interface org.rusherhack.core.interfaces.IDraggable
isDragging, mouseMovedMethods inherited from interface org.rusherhack.core.feature.IFeature
getDescriptionMethods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable
getSetting, getSettings, registerSettings, resetMethods inherited from interface org.rusherhack.core.interfaces.IHoverable
isHoveredMethods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName, getNameMethods inherited from interface org.rusherhack.client.api.render.IRenderable2D
getFontRenderer, getRenderer, render, renderMethods inherited from interface org.rusherhack.core.serialize.ISerializable
deserialize, serialize, shouldAutoSave, shouldSerializeMethods inherited from interface org.rusherhack.core.interfaces.ITickable
tickMethods 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! OverriderenderContent(RenderContext, double, double)instead. -
renderContent
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
-