package org.allaymc.api.eventbus.event.world;

import lombok.Getter;
import org.allaymc.api.world.Dimension;
import org.allaymc.api.world.chunk.Chunk;

/**
 * The base class for all chunk events.
 *
 * @author daoge_cmd
 */
@Getter
public abstract class ChunkEvent extends WorldEvent {
    /**
     * The dimension involved in the event.
     */
    protected Dimension dimension;
    /**
     * The chunk involved in the event.
     */
    protected Chunk chunk;

    public ChunkEvent(Dimension dimension, Chunk chunk) {
        super(dimension.getWorld());
        this.dimension = dimension;
        this.chunk = chunk;
    }
}
