public class DarkTempleGenerator
extends java.lang.Object
implements cpw.mods.fml.common.IWorldGenerator
| Constructor and Description |
|---|
DarkTempleGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
appliesAt(net.minecraft.world.World world,
int chunkX,
int chunkZ) |
static boolean |
canGenerate(net.minecraft.world.World world) |
void |
generate(java.util.Random random,
int chunkX,
int chunkZ,
net.minecraft.world.World world,
net.minecraft.world.chunk.IChunkProvider chunkGenerator,
net.minecraft.world.chunk.IChunkProvider chunkProvider) |
static DarkTempleData |
getCachedData(net.minecraft.world.World world) |
static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer> |
getClosest(net.minecraft.world.World world,
int chunkX,
int chunkZ)
Get the closest temple chunk location.
|
static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer> |
getClosest(net.minecraft.world.World world,
int chunkX,
int chunkZ,
int radius)
Get the closest temple chunk location.
|
static ILocation |
getClosestForCoords(net.minecraft.world.World world,
int x,
int z)
Get the closest temple chunk location.
|
static boolean |
hasTemple(net.minecraft.world.World world,
int chunkX,
int chunkZ)
Check if a temple exists at the given chunk.
|
void |
onWorldLoad(net.minecraftforge.event.world.WorldEvent.Load event) |
void |
onWorldSave(net.minecraftforge.event.world.WorldEvent.Save event) |
public static DarkTempleData getCachedData(net.minecraft.world.World world)
public void onWorldLoad(net.minecraftforge.event.world.WorldEvent.Load event)
public void onWorldSave(net.minecraftforge.event.world.WorldEvent.Save event)
public static boolean canGenerate(net.minecraft.world.World world)
protected static boolean appliesAt(net.minecraft.world.World world,
int chunkX,
int chunkZ)
public static boolean hasTemple(net.minecraft.world.World world,
int chunkX,
int chunkZ)
world - The world.chunkX - Chunk XchunkZ - Chunk Y@Nullable
public static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer> getClosest(net.minecraft.world.World world,
int chunkX,
int chunkZ,
int radius)
world - The world.chunkX - Chunk XchunkZ - Chunk Yradius - The maximum chunk distance to look for. The higher this is, the longer this will take.@Nullable
public static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer> getClosest(net.minecraft.world.World world,
int chunkX,
int chunkZ)
world - The world.chunkX - Chunk XchunkZ - Chunk Y@Nullable public static ILocation getClosestForCoords(net.minecraft.world.World world, int x, int z)
world - The world.x - Xz - Zpublic void generate(java.util.Random random,
int chunkX,
int chunkZ,
net.minecraft.world.World world,
net.minecraft.world.chunk.IChunkProvider chunkGenerator,
net.minecraft.world.chunk.IChunkProvider chunkProvider)
generate in interface cpw.mods.fml.common.IWorldGenerator