summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/event/world/ChunkLoadedEvent.java
blob: f91b7aebe6dcc9a5ac4a110173ef6ba4a9982ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

package org.bukkit.event.world;

import org.bukkit.Chunk;

/**
 * Called when a chunk is loaded
 */
public class ChunkLoadedEvent extends WorldEvent {
    private final Chunk chunk;

    public ChunkLoadedEvent(final Type type, final Chunk chunk) {
        super(type, chunk.getWorld());

        this.chunk = chunk;
    }

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