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

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

There is a newer version: 2.4.0
Show newest version
package org.bukkit.event.world;

import org.bukkit.Chunk;

/**
 * Represents a Chunk related event
 */
public abstract class ChunkEvent extends WorldEvent {
  protected Chunk chunk;

  protected ChunkEvent(final Chunk chunk) {
    super(chunk.getWorld());
    this.chunk = chunk;
  }

  /**
   * Gets the chunk being loaded/unloaded
   *
   * @return Chunk that triggered this event
   */
  public Chunk getChunk() {
    return chunk;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy