Search in sources :

Example 1 with CorePluginFacet

use of com.ichorpowered.guardian.launch.facet.CorePluginFacet in project guardian by ichorpowered.

the class GuardianPlugin method onGameInitialization.

// PLUGIN INITIALIZATION
@Listener
public void onGameInitialization(GameInitializationEvent event) {
    this.facetBootstrap.addComponent("core", new CorePluginFacet(this.logger, this));
    this.facetBootstrap.addComponent("common", new InternalPluginFacet(this.logger, this));
    this.facetBootstrap.addComponent("game", new GamePluginFacet(this.logger, this));
    this.facetBootstrap.send(FacetBootstrap.FacetRequest.STARTUP, new SimpleFacetMessage(System.currentTimeMillis(), "Game Initialization", this), "core");
}
Also used : CorePluginFacet(com.ichorpowered.guardian.launch.facet.CorePluginFacet) GamePluginFacet(com.ichorpowered.guardian.launch.facet.GamePluginFacet) SimpleFacetMessage(com.ichorpowered.guardian.launch.message.SimpleFacetMessage) InternalPluginFacet(com.ichorpowered.guardian.launch.facet.InternalPluginFacet) GuardianSequenceListener(com.ichorpowered.guardian.sequence.GuardianSequenceListener) GuardianListener(com.ichorpowered.guardianapi.event.GuardianListener) Listener(org.spongepowered.api.event.Listener)

Aggregations

CorePluginFacet (com.ichorpowered.guardian.launch.facet.CorePluginFacet)1 GamePluginFacet (com.ichorpowered.guardian.launch.facet.GamePluginFacet)1 InternalPluginFacet (com.ichorpowered.guardian.launch.facet.InternalPluginFacet)1 SimpleFacetMessage (com.ichorpowered.guardian.launch.message.SimpleFacetMessage)1 GuardianSequenceListener (com.ichorpowered.guardian.sequence.GuardianSequenceListener)1 GuardianListener (com.ichorpowered.guardianapi.event.GuardianListener)1 Listener (org.spongepowered.api.event.Listener)1