Finished tree shape
This commit is contained in:
parent
418f048ed3
commit
34318e283b
19 changed files with 120 additions and 137 deletions
|
@ -43,7 +43,7 @@ public class FloatingSpireFeature extends SpireFeature {
|
|||
}).setSource(sdf);
|
||||
final BlockPos center = pos;
|
||||
List<BlockPos> support = Lists.newArrayList();
|
||||
sdf.setReplaceFunction(REPLACE).setPostProcess((info) -> {
|
||||
sdf.setReplaceFunction(REPLACE).addPostProcess((info) -> {
|
||||
if (info.getStateUp().isAir()) {
|
||||
if (random.nextInt(16) == 0) {
|
||||
support.add(info.getPos().up());
|
||||
|
|
|
@ -69,7 +69,7 @@ public class IceStarFeature extends DefaultFeature {
|
|||
final BlockState ancient = EndBlocks.ANCIENT_EMERALD_ICE.getDefaultState();
|
||||
final SDF sdfCopy = sdf;
|
||||
|
||||
sdf.setPostProcess((info) -> {
|
||||
sdf.addPostProcess((info) -> {
|
||||
BlockPos bpos = info.getPos();
|
||||
float px = bpos.getX() - center.getX();
|
||||
float py = bpos.getY() - center.getY();
|
||||
|
|
|
@ -45,7 +45,7 @@ public class SpireFeature extends DefaultFeature {
|
|||
}).setSource(sdf);
|
||||
final BlockPos center = pos;
|
||||
List<BlockPos> support = Lists.newArrayList();
|
||||
sdf.setReplaceFunction(REPLACE).setPostProcess((info) -> {
|
||||
sdf.setReplaceFunction(REPLACE).addPostProcess((info) -> {
|
||||
if (info.getStateUp().isAir()) {
|
||||
if (random.nextInt(16) == 0) {
|
||||
support.add(info.getPos().up());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue