blob: 2d1f79163849c5d9c92fac2fa99fcec266734c1a (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
package org.bukkit.event.world;
import org.bukkit.event.Listener;
/**
* Handles all World related events
*/
public class WorldListener implements Listener {
/**
* Called when a chunk is loaded
*
* @param event Relevant event details
*/
public void onChunkLoad(ChunkLoadEvent event) {}
/**
* Called when a newly created chunk has been populated.
* <p />
* If your intent is to populate the chunk using this event, please see {@link org.bukkit.generator.BlockPopulator}
*
* @param event Relevant event details
*/
public void onChunkPopulate(ChunkPopulateEvent event) {}
/**
* Called when a chunk is unloaded
*
* @param event Relevant event details
*/
public void onChunkUnload(ChunkUnloadEvent event) {}
/**
* Called when a World's spawn is changed
*
* @param event Relevant event details
*/
public void onSpawnChange(SpawnChangeEvent event) {}
/**
* Called when the world generates a portal end point
*
* @param event Relevant event details
*/
public void onPortalCreate(PortalCreateEvent event) {}
/**
* Called when a world is saved
*
* @param event Relevant event details
*/
public void onWorldSave(WorldSaveEvent event) {}
/**
* Called when a World is initializing
*
* @param event Relevant event details
*/
public void onWorldInit(WorldInitEvent event) {}
/**
* Called when a World is loaded
*
* @param event Relevant event details
*/
public void onWorldLoad(WorldLoadEvent event) {}
/**
* Called when a World is unloaded
*
* @param event Relevant event details
*/
public void onWorldUnload(WorldUnloadEvent event) {}
/**
* Event that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.
*
* @param event Relevant event details
*/
public void onStructureGrow(StructureGrowEvent event) {}
}
|