public class DarkTempleGenerator
extends java.lang.Object
implements net.minecraftforge.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 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 net.minecraft.util.BlockPos |
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.
|
public 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 net.minecraftforge.fml.common.IWorldGeneratorpublic 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 net.minecraft.util.BlockPos getClosestForCoords(net.minecraft.world.World world,
int x,
int z)
world - The world.x - Xz - Z