|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ApiMain
| Method Summary | |
|---|---|
org.bukkit.World |
createWorld(String name,
org.bukkit.World template)
Create a new templated world with the given name and template world |
org.bukkit.World |
createWorld(String name,
org.bukkit.World template,
Collection<org.bukkit.generator.BlockPopulator> extraPopulators)
Create a templated world with the given name, template world, and extra BlockPopulators from your plugin. |
boolean |
isTemplatedWorld(org.bukkit.World world)
Check whether the given World was created by this plugin. |
void |
onDisable(org.bukkit.plugin.Plugin templateWorlds)
Please do not call this method. |
void |
onEnable(org.bukkit.plugin.Plugin templateWorlds)
Please do not call this method. |
void |
resetArea(org.bukkit.World templated,
int chunkMinX,
int chunkMinZ,
int chunkMaxX,
int chunkMaxZ)
Reset all chunks in the given area to the chunks in the template world. |
void |
resetArea(org.bukkit.World templated,
org.bukkit.Location a,
org.bukkit.Location b)
Reset all chunks in the area bounded in X and Z by the two locations to the chunks in the template world. |
void |
resetAreaGradually(org.bukkit.World templated,
int chunkMinX,
int chunkMinZ,
int chunkMaxX,
int chunkMaxZ,
Runnable callback)
Reset all chunks in the given area to the chunks in the template world over time. |
void |
resetAreaGradually(org.bukkit.World templated,
org.bukkit.Location a,
org.bukkit.Location b,
Runnable callback)
Reset all chunks in the area bounded in X and Z by the two locations to the chunks in the template world over time. |
| Method Detail |
|---|
void onEnable(org.bukkit.plugin.Plugin templateWorlds)
void onDisable(org.bukkit.plugin.Plugin templateWorlds)
org.bukkit.World createWorld(String name,
org.bukkit.World template)
name - name of the world folder for the templated worldtemplate - the world to use as the template
org.bukkit.World createWorld(String name,
org.bukkit.World template,
Collection<org.bukkit.generator.BlockPopulator> extraPopulators)
name - name of the world folder for the templated worldtemplate - the world to use as the template
boolean isTemplatedWorld(org.bukkit.World world)
world - a world that may or may not be templated
void resetAreaGradually(org.bukkit.World templated,
int chunkMinX,
int chunkMinZ,
int chunkMaxX,
int chunkMaxZ,
Runnable callback)
templated - A templated worldchunkMinX - low chunk-coord X to regeneratechunkMinZ - low chunk-coord Z to regeneratechunkMaxX - high chunk-coord X to regeneratechunkMaxZ - high chunk-coord Z to regeneratecallback - A Runnable to execute once the resetting is completed.
It will be executed on the server main thread. May be null.
IllegalArgumentException - if max < min
IllegalArgumentException - if the provided world is not a
templated world
void resetAreaGradually(org.bukkit.World templated,
org.bukkit.Location a,
org.bukkit.Location b,
Runnable callback)
templated - A templated worlda - one corner of the bounding boxb - opposite corner of the bounding boxcallback - A Runnable to execute once the resetting is completed.
It will be executed on the server main thread. May be null.
IllegalArgumentException - if the provided world is not a
templated world
void resetArea(org.bukkit.World templated,
int chunkMinX,
int chunkMinZ,
int chunkMaxX,
int chunkMaxZ)
templated - A templated worldchunkMinX - low chunk-coord X to regeneratechunkMinZ - low chunk-coord Z to regeneratechunkMaxX - high chunk-coord X to regeneratechunkMaxZ - high chunk-coord Z to regenerate
IllegalArgumentException - if max < min
IllegalArgumentException - if the provided world is not a
templated world
void resetArea(org.bukkit.World templated,
org.bukkit.Location a,
org.bukkit.Location b)
templated - A templated worlda - one corner of the bounding boxb - opposite corner of the bounding box
IllegalArgumentException - if the provided world is not a
templated world
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||