public class ViewChangeAction extends Object implements Action
ViewComponent to a certain player.| Constructor and Description |
|---|
ViewChangeAction(String targetId,
String activate)
Instantiates a new ViewChangeAction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Interaction interaction,
org.bukkit.entity.Player player,
boolean primaryTrigger)
Executes the action for the given player in the given interaction.
|
public ViewChangeAction(String targetId, String activate)
targetId - the id of the ViewComponentactivate - the id of the view's child component that should be shown to the playerpublic void execute(Interaction interaction, org.bukkit.entity.Player player, boolean primaryTrigger)
ActionCopyright © 2021. All rights reserved.