Interface ActionBarRender
public interface ActionBarRender
Renders action bar messages to player
Usage example:
ActionBarRender actionBar = flectonePulse.get(ActionBarRender.class);
// Send a temporary action bar
actionBar.render(player, Component.text("Hello!"), 60); // 3 seconds
- Since:
- 1.7.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidRenders an action bar message with default duration (30 ticks).voidRenders an action bar message with custom duration.
-
Method Details
-
render
Renders an action bar message with default duration (30 ticks).- Parameters:
fPlayer- the player to receive the action barcomponent- the message component to display
-
render
Renders an action bar message with custom duration.- Parameters:
fPlayer- the player to receive the action barcomponent- the message component to displaystayTicks- duration in ticks (20 ticks = 1 second, 0 = default)
-