public class WorldGenerator extends PlotGenerator
Constructor and Description |
---|
WorldGenerator(java.lang.String world)
Initialize variables, and create plotworld object used in
calculations
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSpawn(org.bukkit.World world,
int x,
int z)
Allow spawning everywhere
|
short[][] |
generateExtBlockSections(org.bukkit.World world,
java.util.Random random,
int cx,
int cz,
org.bukkit.generator.ChunkGenerator.BiomeGrid biomes)
This part is a fucking mess. - Refer to a proper tutorial if you
would
like to learn how to make a world generator
|
java.util.List<org.bukkit.generator.BlockPopulator>
|
getDefaultPopulators(org.bukkit.World world)
Return the block populator
|
org.bukkit.Location |
getFixedSpawnLocation(org.bukkit.World world,
java.util.Random random)
Return the default spawn location for this world
|
PlotWorld |
getNewPlotWorld(java.lang.String world)
Get a new plotworld class For square plots you can use the
DefaultPlotWorld class which comes with PlotSquared
|
PlotManager |
getPlotManager()
Return the plot manager for this type of generator, or create one For
square plots you may as well use the default plot manager which comes
with PlotSquared
|
long |
nextLong()
|
int |
random(int n)
|
void |
setCuboidRegion(int x1,
int x2,
int y1,
int y2,
int z1,
int z2,
PlotBlock block)
Cuboid based plot generation is quick, as it requires no calculations
inside the loop - You don't have to use this this method, but you may
find it useful.
|
long |
xorShift64(long a)
|
public WorldGenerator(java.lang.String world)
public PlotManager getPlotManager()
getPlotManager
in
class PlotGenerator
public boolean canSpawn(org.bukkit.World world, int x, int z)
canSpawn
in
class org.bukkit.generator.ChunkGenerator
public PlotWorld getNewPlotWorld(java.lang.String world)
getNewPlotWorld
in
class PlotGenerator
public final long nextLong()
public final long xorShift64(long a)
public final int random(int n)
public void setCuboidRegion(int x1, int x2, int y1, int y2, int z1, int z2, PlotBlock block)
public java.util.List<org.bukkit.generator.BlockPopulator> getDefaultPopulators(org.bukkit.World world)
getDefaultPopulators
in class org.bukkit.generator.ChunkGenerator
public org.bukkit.Location getFixedSpawnLocation(org.bukkit.World world, java.util.Random random)
getFixedSpawnLocation
in class org.bukkit.generator.ChunkGenerator
public short[][] generateExtBlockSections(org.bukkit.World world, java.util.Random random, int cx, int cz, org.bukkit.generator.ChunkGenerator.BiomeGrid biomes)
generateExtBlockSections
in class org.bukkit.generator.ChunkGenerator