diff --git a/build.gradle b/build.gradle
index 0ec26eb41..0b402b79e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -32,6 +32,14 @@ subprojects {
repositories {
maven { url "https://maven.neoforged.net/releases/" }
+ if (rootProject.neoforge_pr != "") {
+ maven {
+ url "https://prmaven.neoforged.net/NeoForge/pr$rootProject.neoforge_pr"
+ content {
+ includeModule("net.neoforged", "neoforge")
+ }
+ }
+ }
}
}
diff --git a/common/src/main/java/dev/architectury/event/events/common/LootEvent.java b/common/src/main/java/dev/architectury/event/events/common/LootEvent.java
index 6ceb78dba..65a09cef9 100644
--- a/common/src/main/java/dev/architectury/event/events/common/LootEvent.java
+++ b/common/src/main/java/dev/architectury/event/events/common/LootEvent.java
@@ -46,9 +46,9 @@ public interface LootEvent {
*
*
Example: adding diamonds as a drop for dirt
* {@code
- * LootEvent.MODIFY_LOOT_TABLE.register((lootTables, id, context, builtin) -> {
+ * LootEvent.MODIFY_LOOT_TABLE.register((key, context, builtin) -> {
* // Check that the loot table is dirt and built-in
- * if (builtin && Blocks.DIRT.getLootTable().equals(id)) {
+ * if (builtin && Blocks.DIRT.getLootTable().equals(key)) {
* // Create a loot pool with a single item entry of Items.DIAMOND
* LootPool.Builder pool = LootPool.lootPool().add(LootItem.lootTableItem(Items.DIAMOND));
* context.addPool(pool);
@@ -58,7 +58,7 @@ public interface LootEvent {
*
* @see ModifyLootTable#modifyLootTable(ResourceKey, LootTableModificationContext, boolean)
*/
- // Event MODIFY_LOOT_TABLE = EventFactory.createLoop();
+ Event MODIFY_LOOT_TABLE = EventFactory.createLoop();
@FunctionalInterface
interface ModifyLootTable {
diff --git a/common/src/main/java/dev/architectury/fluid/FluidStack.java b/common/src/main/java/dev/architectury/fluid/FluidStack.java
index f30ef2815..6d0d8d342 100644
--- a/common/src/main/java/dev/architectury/fluid/FluidStack.java
+++ b/common/src/main/java/dev/architectury/fluid/FluidStack.java
@@ -19,7 +19,6 @@
package dev.architectury.fluid;
-import com.google.common.collect.Iterators;
import com.mojang.serialization.Codec;
import dev.architectury.hooks.fluid.FluidStackHooks;
import dev.architectury.injectables.annotations.ExpectPlatform;
@@ -35,7 +34,8 @@
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
-import java.util.*;
+import java.util.Objects;
+import java.util.Optional;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;
@@ -66,100 +66,6 @@ private static FluidStackAdapter