VitalMinigameInstanceState
Defines a single state within an active minigame instance. All event handlers registered here will only be active, when this state is active in its registered game instance. A state may perform mutation on its own instance that's passed to its constructor to modify game data.
public class MyMinigameInstanceState implements VitalMinigameInstanceState<MyMinigameInstance> {
private MyMinigameInstance instance;
public MyMinigameInstance getInstance() {
return instance;
}
@Override
public void onEnable() {
// ...
}
@Override
public void onDisable() {
// ...
}
}Content copied to clipboard