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 ViewComponent
activate
- 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)
Action
Copyright © 2021. All rights reserved.