public class WorldGenMinableExtended extends net.minecraft.world.gen.feature.WorldGenMinable implements IRetroGen
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.Block |
block |
protected int |
blocksPerVein |
protected int |
endY |
protected int |
meta |
protected net.minecraft.block.Block |
replaceTarget |
protected int |
startY |
protected int |
veinsPerChunk |
| Constructor and Description |
|---|
WorldGenMinableExtended(net.minecraft.block.Block block,
int blocksPerVein,
int veinsPerChunk,
int startY,
int endY,
net.minecraft.block.Block replaceTarget)
Make a new instance.
|
WorldGenMinableExtended(net.minecraft.block.Block block,
int meta,
int blocksPerVein,
int veinsPerChunk,
int startY,
int endY,
net.minecraft.block.Block replaceTarget)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterRetroGen(net.minecraft.nbt.NBTTagCompound tag)
Called after retrogen for this instance is done.
|
protected boolean |
generate(net.minecraft.world.chunk.Chunk chunk,
java.util.Random rand,
int x,
int y,
int z)
Generate for only one chunk (this will NOT cross chunk boundaries!)
|
protected java.lang.String |
getUniqueName() |
void |
loopGenerate(net.minecraft.world.World world,
java.util.Random rand,
int chunkX,
int chunkZ)
Generate the ores in a loop for the veins per chunk/
|
void |
retroGenerateChunk(net.minecraft.nbt.NBTTagCompound tag,
net.minecraft.world.chunk.Chunk chunk,
java.util.Random rand)
Regenerate for a chunk.
|
boolean |
shouldRetroGen(net.minecraft.nbt.NBTTagCompound tag,
int dimensionId)
If retrogen for this instance should be started.
|
protected int blocksPerVein
protected int veinsPerChunk
protected int startY
protected int endY
protected net.minecraft.block.Block block
protected net.minecraft.block.Block replaceTarget
protected int meta
public WorldGenMinableExtended(net.minecraft.block.Block block,
int blocksPerVein,
int veinsPerChunk,
int startY,
int endY,
net.minecraft.block.Block replaceTarget)
block - block to spawn.blocksPerVein - Blocks per vein.veinsPerChunk - Veins per chunk.startY - Start coordinate for YendY - End coordinate for Y.replaceTarget - The replace target block. Stone for overworld, netherrack for nether.public WorldGenMinableExtended(net.minecraft.block.Block block,
int meta,
int blocksPerVein,
int veinsPerChunk,
int startY,
int endY,
net.minecraft.block.Block replaceTarget)
block - block to spawn.meta - Metadata of the block to spawn.blocksPerVein - Blocks per vein.veinsPerChunk - Veins per chunk.startY - Start coordinate for YendY - End coordinate for Y.replaceTarget - The replace target block. Stone for overworld, netherrack for nether.public void loopGenerate(net.minecraft.world.World world,
java.util.Random rand,
int chunkX,
int chunkZ)
world - The world.rand - Random object.chunkX - X chunk coordinate.chunkZ - Z chunk coordinate.protected java.lang.String getUniqueName()
protected boolean generate(net.minecraft.world.chunk.Chunk chunk,
java.util.Random rand,
int x,
int y,
int z)
chunk - The chunk to generate in.rand - Random.x - Chunk X.y - Chunk Y.z - Chunk Z.public void retroGenerateChunk(net.minecraft.nbt.NBTTagCompound tag,
net.minecraft.world.chunk.Chunk chunk,
java.util.Random rand)
IRetroGenretroGenerateChunk in interface IRetroGentag - The retrogen info tag for which retrogen should start. This tag is read-only.chunk - The chunk.rand - The random instance.public boolean shouldRetroGen(net.minecraft.nbt.NBTTagCompound tag,
int dimensionId)
IRetroGenIRetroGen.afterRetroGen(NBTTagCompound).shouldRetroGen in interface IRetroGentag - The NBT tag. This tag is read-only.dimensionId - The id of the dimension.public void afterRetroGen(net.minecraft.nbt.NBTTagCompound tag)
IRetroGenIRetroGen.shouldRetroGen(NBTTagCompound, int).afterRetroGen in interface IRetroGentag - The NBT tag. This will be stored inside the chunk data.