Finished tree shape

This commit is contained in:
paulevsGitch 2021-01-12 18:33:16 +03:00
parent 418f048ed3
commit 34318e283b
19 changed files with 120 additions and 137 deletions

View file

@ -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());

View file

@ -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();

View file

@ -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());