Skip to content

Commit ca82723

Browse files
committed
Recipe matching
[no ci]
1 parent 50c62e3 commit ca82723

21 files changed

+472
-837
lines changed

neoforge-api/src/main/java/dev/compactmods/crafting/api/field/IActiveWorldFields.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
public interface IActiveWorldFields {
1313

14-
void setLevel(Level level);
15-
1614
Stream<IMiniaturizationField> getFields();
1715

1816
void tickFields();

neoforge-api/src/main/java/dev/compactmods/crafting/api/field/MiniaturizationFieldSize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public enum MiniaturizationFieldSize implements StringRepresentable {
5252
Codec.STRING.xmap(MiniaturizationFieldSize::valueOf, MiniaturizationFieldSize::name);
5353

5454
public static final StreamCodec<FriendlyByteBuf, MiniaturizationFieldSize> STREAM_CODEC =
55-
ByteBufCodecs.STRING_UTF8.map(MiniaturizationFieldSize::valueOf, MiniaturizationFieldSize::getSerializedName)
55+
ByteBufCodecs.STRING_UTF8.map(MiniaturizationFieldSize::valueOf, MiniaturizationFieldSize::name)
5656
.cast();
5757

5858
public static final MiniaturizationFieldSize[] VALID_SIZES = new MiniaturizationFieldSize[] {

neoforge-main/build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ neoForge {
4343
this.mods.create(modId) {
4444
modSourceSets.add(coreApi.sourceSets.main)
4545
modSourceSets.add(sourceSets.main)
46-
modSourceSets.add(sourceSets.test)
4746
}
4847

4948
unitTest {
@@ -63,12 +62,10 @@ neoForge {
6362
logLevel.set(org.slf4j.event.Level.DEBUG)
6463
sourceSet = project.sourceSets.main
6564

66-
systemProperty("neoforge.enabledGameTestNamespaces", modId)
67-
6865
// JetBrains Runtime Hotswap
69-
// if (!System.getenv().containsKey("CI")) {
70-
// jvmArgument("-XX:+AllowEnhancedClassRedefinition")
71-
// }
66+
if (!System.getenv().containsKey("CI")) {
67+
jvmArgument("-XX:+AllowEnhancedClassRedefinition")
68+
}
7269
}
7370

7471
create("client") {
@@ -95,6 +92,7 @@ neoForge {
9592

9693
programArgument("nogui")
9794

95+
systemProperty("neoforge.enabledGameTestNamespaces", modId)
9896
environment.put("CC_TEST_RESOURCES", file("src/test/resources").path)
9997

10098
sourceSet = project.sourceSets.test
@@ -104,6 +102,7 @@ neoForge {
104102
type = "gameTestServer"
105103
gameDirectory.set(file("runs/gametest"))
106104

105+
systemProperty("neoforge.enabledGameTestNamespaces", modId)
107106
environment.put("CC_TEST_RESOURCES", file("src/test/resources").path)
108107

109108
sourceSet = project.sourceSets.test

neoforge-main/gtfo/datagen/DataGeneration.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

neoforge-main/gtfo/datagen/LootTableGenerator.java

Lines changed: 0 additions & 74 deletions
This file was deleted.

neoforge-main/gtfo/datagen/ProjectorStateGenerator.java

Lines changed: 0 additions & 169 deletions
This file was deleted.

neoforge-main/gtfo/datagen/ProxyStateGenerator.java

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)