All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.world.ChunkLoadEvent Maven / Gradle / Ivy

package org.bukkit.event.world;

import org.bukkit.Chunk;
import org.bukkit.event.HandlerList;

/**
 * Called when a chunk is loaded
 */
public class ChunkLoadEvent extends ChunkEvent {
  private static final HandlerList handlers = new HandlerList();
  private final boolean newChunk;

  public ChunkLoadEvent(final Chunk chunk, final boolean newChunk) {
    super(chunk);
    this.newChunk = newChunk;
  }

  public static HandlerList getHandlerList() {
    return handlers;
  }

  /**
   * Gets if this chunk was newly created or not.
   * 

* Note that if this chunk is new, it will not be populated at this time. * * @return true if the chunk is new, otherwise false */ public boolean isNewChunk() { return newChunk; } @Override public HandlerList getHandlers() { return handlers; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy