@Override
public CustomObjectCoordinate makeCustomObjectCoordinate(Random random, int chunkX, int chunkZ)
{
if (settings.rarity > random.nextDouble() * 100.0)
{
Rotation rotation = settings.rotateRandomly ? Rotation.getRandomRotation(random) : Rotation.NORTH;
int height = MathHelper.getRandomNumberInRange(random, settings.minHeight, settings.maxHeight);
return new CustomObjectCoordinate(this, rotation, chunkX * 16 + 8 + random.nextInt(16), height, chunkZ * 16 + 8 + random.nextInt(16));
}
return null;
}