public abstract class StructureGenerator
extends net.minecraft.world.gen.feature.WorldGenerator
| Modifier and Type | Field and Description |
|---|---|
protected int |
horizontalPos |
protected net.minecraft.util.Mirror |
mirror |
protected net.minecraft.util.Rotation |
rotation |
protected int |
sizeX |
protected int |
sizeY |
protected int |
sizeZ |
| Modifier | Constructor and Description |
|---|---|
protected |
StructureGenerator(java.util.Random rand,
int sizeX,
int sizeY,
int sizeZ) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canSpawnOnHills() |
boolean |
generate(net.minecraft.world.World world,
java.util.Random random,
net.minecraft.util.math.BlockPos position) |
protected void |
generateFiller(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
protected abstract void |
generateStructure(net.minecraft.world.World world,
java.util.Random random,
net.minecraft.util.math.BlockPos position) |
net.minecraft.block.state.IBlockState |
getFillerState() |
protected static net.minecraft.util.math.BlockPos |
getGround(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.math.BlockPos |
getLevelPosition() |
int |
getOffsetY() |
protected net.minecraft.util.math.BlockPos |
placeOnGround(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int yOffset) |
void |
setMirror(net.minecraft.util.Mirror mirror) |
void |
setRotation(net.minecraft.util.Rotation rotation) |
protected static net.minecraft.util.math.BlockPos |
transformPos(net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Mirror mirror,
net.minecraft.util.Rotation rotation) |
protected net.minecraft.util.Rotation rotation
protected net.minecraft.util.Mirror mirror
protected int horizontalPos
protected int sizeX
protected int sizeY
protected int sizeZ
protected StructureGenerator(java.util.Random rand,
int sizeX,
int sizeY,
int sizeZ)
public void setRotation(net.minecraft.util.Rotation rotation)
public void setMirror(net.minecraft.util.Mirror mirror)
protected net.minecraft.util.math.BlockPos placeOnGround(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int yOffset)
protected static net.minecraft.util.math.BlockPos getGround(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public boolean generate(net.minecraft.world.World world,
java.util.Random random,
net.minecraft.util.math.BlockPos position)
generate in class net.minecraft.world.gen.feature.WorldGeneratorprotected void generateFiller(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
protected boolean canSpawnOnHills()
protected static net.minecraft.util.math.BlockPos transformPos(net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Mirror mirror,
net.minecraft.util.Rotation rotation)
protected abstract void generateStructure(net.minecraft.world.World world,
java.util.Random random,
net.minecraft.util.math.BlockPos position)
public int getOffsetY()
@Nullable public net.minecraft.util.math.BlockPos getLevelPosition()
@Nonnull public net.minecraft.block.state.IBlockState getFillerState()