/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-API/src/main/java/dev/cobblesword/nachospigot/events/ChunkPreLoadEvent.java
package dev.cobblesword.nachospigot.events;

import org.bukkit.World;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class ChunkPreLoadEvent extends Event implements Cancellable {
	private static final HandlerList handlers = new HandlerList();
	private boolean cancelled;
	private World world;
	private int x, z;

	public ChunkPreLoadEvent(World world, int x, int z) {
		this.world = world;
		this.x = x;
		this.z = z;
	}

	@Override
	public boolean isCancelled() {
		return cancelled;
	}

	public World getWorld() {
		return world;
	}

	public int getX() {
		return x;
	}

	public int getZ() {
		return z;
	}

	@Override
	public void setCancelled(boolean cancelled) {
		this.cancelled = cancelled;
	}

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}

	public static HandlerList getHandlerList() {
		return handlers;
	}
}
