Code example for EventBus

Methods: register

0
        return entry;
    } 
 
    public static void registerForEvents(Object object) { 
        Preconditions.checkNotNull(object, "The parameter 'object' must not be null");
        EVENT_BUS.register(object);
    } 
 
    public static void fireChunkProviderInitialized(ChunkProvider provider) {
        post(new ChunkMonitorEvent.ChunkProviderInitialized(provider));
    } 
 
    public static void fireChunkProviderDisposed(ChunkProvider provider) {
        CHUNKS.clear();
        post(new ChunkMonitorEvent.ChunkProviderDisposed(provider));
    } 
 
    public static void fireChunkCreated(Chunk chunk) {
        Preconditions.checkNotNull(chunk, "The parameter 'chunk' must not be null");
        final ChunkMonitorEntry entry = registerChunk(chunk);