First few files and initial rebuild

This commit is contained in:
Nassim Jahnke
2024-12-13 16:52:45 +01:00
parent b2fd9b225c
commit f2ff5966a6
8 changed files with 22 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
--- a/data/minecraft/loot_table/chests/trial_chambers/intersection_barrel.json
+++ b/data/minecraft/loot_table/chests/trial_chambers/intersection_barrel.json
@@ -70,15 +70,6 @@
@@ -70,15 +_,6 @@
"add": false,
"count": 1.0,
"function": "minecraft:set_count"

View File

@@ -1,6 +1,6 @@
--- a/com/mojang/brigadier/exceptions/CommandSyntaxException.java
+++ b/com/mojang/brigadier/exceptions/CommandSyntaxException.java
@@ -5,7 +5,7 @@
@@ -5,7 +_,7 @@
import com.mojang.brigadier.Message;
@@ -9,7 +9,7 @@
public static final int CONTEXT_AMOUNT = 10;
public static boolean ENABLE_COMMAND_STACK_TRACES = true;
public static BuiltInExceptionProvider BUILT_IN_EXCEPTIONS = new BuiltInExceptions();
@@ -73,4 +73,11 @@
@@ -73,4 +_,11 @@
public int getCursor() {
return cursor;
}

View File

@@ -1,6 +1,6 @@
--- a/com/mojang/datafixers/DataFixerBuilder.java
+++ b/com/mojang/datafixers/DataFixerBuilder.java
@@ -29,8 +29,10 @@
@@ -29,8 +_,10 @@
private final Int2ObjectSortedMap<Schema> schemas = new Int2ObjectAVLTreeMap<>();
private final List<DataFix> globalList = new ArrayList<>();
private final IntSortedSet fixerVersions = new IntAVLTreeSet();
@@ -11,7 +11,7 @@
this.dataVersion = dataVersion;
}
@@ -88,6 +90,7 @@
@@ -88,6 +_,7 @@
final IntIterator iterator = fixerUpper.fixerVersions().iterator();
while (iterator.hasNext()) {
final int versionKey = iterator.nextInt();

View File

@@ -1,6 +1,6 @@
--- a/com/mojang/datafixers/util/Either.java
+++ b/com/mojang/datafixers/util/Either.java
@@ -22,7 +22,7 @@
@@ -22,7 +_,7 @@
}
private static final class Left<L, R> extends Either<L, R> {
@@ -9,7 +9,7 @@
public Left(final L value) {
this.value = value;
@@ -51,7 +51,7 @@
@@ -51,7 +_,7 @@
@Override
public Optional<L> left() {
@@ -18,7 +18,7 @@
}
@Override
@@ -83,7 +83,7 @@
@@ -83,7 +_,7 @@
}
private static final class Right<L, R> extends Either<L, R> {
@@ -27,7 +27,7 @@
public Right(final R value) {
this.value = value;
@@ -117,7 +117,7 @@
@@ -117,7 +_,7 @@
@Override
public Optional<R> right() {

View File

@@ -1,6 +1,6 @@
--- a/com/mojang/logging/LogUtils.java
+++ b/com/mojang/logging/LogUtils.java
@@ -61,4 +61,9 @@
@@ -61,4 +_,9 @@
public static Logger getLogger() {
return LoggerFactory.getLogger(STACK_WALKER.getCallerClass());
}

View File

@@ -1,14 +1,14 @@
--- a/com/mojang/math/OctahedralGroup.java
+++ b/com/mojang/math/OctahedralGroup.java
@@ -110,6 +110,7 @@
this.permutation = axisTransformation;
this.transformation = new Matrix3f().scaling(flipX ? -1.0F : 1.0F, flipY ? -1.0F : 1.0F, flipZ ? -1.0F : 1.0F);
this.transformation.mul(axisTransformation.transformation());
@@ -111,6 +_,7 @@
this.permutation = permutation;
this.transformation = new Matrix3f().scaling(invertX ? -1.0F : 1.0F, invertY ? -1.0F : 1.0F, invertZ ? -1.0F : 1.0F);
this.transformation.mul(permutation.transformation());
+ this.initializeRotationDirections(); // Paper - Avoid Lazy Initialization for Enum Fields
}
private BooleanList packInversions() {
@@ -138,7 +139,7 @@
@@ -139,7 +_,7 @@
return this.name;
}
@@ -17,7 +17,7 @@
if (this.rotatedDirections == null) {
this.rotatedDirections = Maps.newEnumMap(Direction.class);
Direction.Axis[] axiss = Direction.Axis.values();
@@ -153,6 +154,10 @@
@@ -154,6 +_,10 @@
}
}