Class PlayerQuantityHudWrapper
java.lang.Object
dev.lone.itemsadder.api.FontImages.PlayerHudWrapper
dev.lone.itemsadder.api.FontImages.PlayerQuantityHudWrapper
- Direct Known Subclasses:
PlayerCustomHudWrapper
Class representing a HUD which accepts float values and its textures are handled by ItemsAdder.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerQuantityHudWrapper
(PlayerHudsHolderWrapper playerHUDsHolderWrapper, String namespacedID) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the float value of this HUD.@Nullable Object
Gets the internal ItemsAdder object.void
setFloatValue
(float value) Set the float value of this HUD.Methods inherited from class dev.lone.itemsadder.api.FontImages.PlayerHudWrapper
exists, getInitialOffsetX, getNamespacedID, getOffsetX, isVisible, setOffsetX, setVisible
-
Constructor Details
-
PlayerQuantityHudWrapper
public PlayerQuantityHudWrapper(PlayerHudsHolderWrapper playerHUDsHolderWrapper, String namespacedID)
-
-
Method Details
-
getInternal
Gets the internal ItemsAdder object. Should only be used by the plugin developer.- Overrides:
getInternal
in classPlayerHudWrapper
- Returns:
- Internal ItemsAdder object.
-
setFloatValue
public void setFloatValue(float value) Set the float value of this HUD.- Parameters:
value
- Float value to set.
-
getFloatValue
public float getFloatValue()Get the float value of this HUD.- Returns:
- The float value of this hud.
-