Class PlayerHudsHolderWrapper
java.lang.Object
dev.lone.itemsadder.api.FontImages.PlayerHudsHolderWrapper
Wrapper for the HUD holder of a player.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerHudsHolderWrapper(Player player) Creates a HUD holder wrapper for a player. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Checks if the wrapped HUD holder exists.Gets the player associated with this holder.voidRecalculates HUD offsets for this player.voidSends a HUD action bar update to this player.
-
Constructor Details
-
PlayerHudsHolderWrapper
Creates a HUD holder wrapper for a player.- Parameters:
player- the player.
-
-
Method Details
-
exists
public boolean exists()Checks if the wrapped HUD holder exists.- Returns:
- true if the internal HUD holder is present.
-
getPlayer
-
recalculateOffsets
public void recalculateOffsets()Recalculates HUD offsets for this player. -
sendUpdate
public void sendUpdate()Sends a HUD action bar update to this player.
-