Tree rename
This commit is contained in:
parent
bde2ac8291
commit
8286b914d7
138 changed files with 1225 additions and 1263 deletions
|
@ -21,7 +21,7 @@ import ru.betterend.util.sdf.SDF;
|
|||
import ru.betterend.util.sdf.operator.SDFScale;
|
||||
import ru.betterend.util.sdf.operator.SDFUnion;
|
||||
|
||||
public class ChorusTreeFeature extends DefaultFeature {
|
||||
public class PythadendronTreeFeature extends DefaultFeature {
|
||||
private static final Function<BlockState, Boolean> REPLACE;
|
||||
|
||||
@Override
|
||||
|
@ -36,14 +36,14 @@ public class ChorusTreeFeature extends DefaultFeature {
|
|||
branch(splines, last.getX(), last.getY(), last.getZ(), size * 0.6F, MHelper.randRange(0, MHelper.PI2, random), random, MHelper.floor(Math.log(size) * 1.5F));
|
||||
|
||||
SDF function = SplineHelper.buildSDF(spline, 1.4F, 0.8F, (bpos) -> {
|
||||
return BlockRegistry.CHORUS.bark.getDefaultState();
|
||||
return BlockRegistry.PYTHADENDRON.bark.getDefaultState();
|
||||
});
|
||||
|
||||
for (List<Vector3f> sp: splines) {
|
||||
float width = 0.8F - (sp.get(0).getY() - size) / 40;
|
||||
if (size > 0F) {
|
||||
SDF funcSp = SplineHelper.buildSDF(sp, width, width, (bpos) -> {
|
||||
return BlockRegistry.CHORUS.bark.getDefaultState();
|
||||
return BlockRegistry.PYTHADENDRON.bark.getDefaultState();
|
||||
});
|
||||
function = new SDFUnion().setSourceA(function).setSourceB(funcSp);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue