[Changes] Some changes needed for BetterEnd

This commit is contained in:
Frank 2022-12-09 15:59:08 +01:00
parent a533d501cd
commit cd6587101c
4 changed files with 17 additions and 1 deletions

@ -1 +1 @@
Subproject commit 7bcd9178ccd4ea8b67d01ce1307d5a2bb3e7834e
Subproject commit 02ea056d4050c11b1d0f9314baf6da6c08f05f42

View file

@ -58,9 +58,15 @@ public class BCLBiomeBuilder {
}
public static int DEFAULT_NETHER_WATER_COLOR = 0x3F76E4;
public static int DEFAULT_END_WATER_COLOR = DEFAULT_NETHER_WATER_COLOR;
public static int DEFAULT_NETHER_WATER_FOG_COLOR = 0x050533;
public static int DEFAULT_END_WATER_FOG_COLOR = DEFAULT_NETHER_WATER_FOG_COLOR;
public static int DEFAULT_END_FOG_COLOR = 0xA080A0;
public static int DEFAULT_END_SKY_COLOR = 0x000000;
public static float DEFAULT_NETHER_TEMPERATURE = 2.0f;
public static float DEFAULT_END_TEMPERATURE = 0.5f;
public static float DEFAULT_NETHER_WETNESS = 0.0f;
public static float DEFAULT_END_WETNESS = 0.5f;
@FunctionalInterface

View file

@ -1,6 +1,8 @@
package org.betterx.bclib.sdf.operator;
import com.mojang.math.Axis;
import org.joml.Quaternionf;
import org.joml.Vector3f;
@ -8,6 +10,11 @@ public class SDFRotation extends SDFUnary {
private final Vector3f pos = new Vector3f();
private Quaternionf rotation;
public SDFRotation setRotation(Axis axis, float rotationAngle) {
rotation = axis.rotation(rotationAngle);
return this;
}
public SDFRotation setRotation(Vector3f axis, float rotationAngle) {
rotation = new Quaternionf().setAngleAxis(rotationAngle, axis.x, axis.y, axis.z);
return this;

View file

@ -5,11 +5,14 @@ import net.minecraft.util.RandomSource;
import net.minecraft.world.level.levelgen.PositionalRandomFactory;
import org.joml.Vector3f;
import org.wunder.lib.math.Float3;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
public class MHelper {
public static final Vector3f YP = Float3.Y_AXIS.toVector3();
static class ThreadLocalRandomSource implements RandomSource {
ThreadLocalRandomSource(long seed) {