Search in sources :

Example 1 with RenderingEventsListener

use of io.xol.chunkstories.core.rendering.RenderingEventsListener in project chunkstories-core by Hugobros3.

the class CoreContentPlugin method onEnable.

@Override
public void onEnable() {
    itemsLogic = new ItemsLogicListener(this);
    pluginExecutionContext.getPluginManager().registerEventListener(itemsLogic, this);
    if (this.getPluginExecutionContext() instanceof ClientInterface) {
        renderingLogic = new RenderingEventsListener(this, (ClientInterface) getPluginExecutionContext());
        pluginExecutionContext.getPluginManager().registerEventListener(renderingLogic, this);
    }
}
Also used : RenderingEventsListener(io.xol.chunkstories.core.rendering.RenderingEventsListener) ItemsLogicListener(io.xol.chunkstories.core.logic.ItemsLogicListener) ClientInterface(io.xol.chunkstories.api.client.ClientInterface)

Aggregations

ClientInterface (io.xol.chunkstories.api.client.ClientInterface)1 ItemsLogicListener (io.xol.chunkstories.core.logic.ItemsLogicListener)1 RenderingEventsListener (io.xol.chunkstories.core.rendering.RenderingEventsListener)1