Usages of

org.spongepowered.api.event.game.state.GamePreInitializationEvent.getGame()
@Subscribe public void onPreInit(GamePreInitializationEvent e){ game = e.getGame(); builder = game.getRegistry().createItemBuilder(); setupConfig(); }
@Listener public void onPreinit(GamePreInitializationEvent event) { Optional<PluginContainer> coreContainer = event.getGame().getPluginManager().getPlugin("MGAP2-Core"); if (coreContainer.isPresent()) { this.core = (MGAP2) coreContainer.get().getInstance(); core.registerSubmodule(this); String message = "No kills today!"; logger.info("Sending message: '" + message + "'"); core.interlink(message, this); } else { throw new RuntimeException("MGAP2 not found!"); } }
@Listener public void onInit(GamePreInitializationEvent event) { implementation.initialize(container, event.getGame()); }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes