mirror of
https://github.com/FabricMC/fabric.git
synced 2025-09-06 19:36:26 +00:00
@@ -106,6 +106,7 @@ public interface FabricLootTableBuilder {
|
||||
builder.type(table.getType());
|
||||
builder.pools(List.of(accessor.fabric_getPools()));
|
||||
builder.apply(List.of(accessor.fabric_getFunctions()));
|
||||
builder.method_51883(accessor.fabric_getRandomSequenceId());
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
@@ -22,6 +22,7 @@ import org.spongepowered.asm.mixin.gen.Accessor;
|
||||
import net.minecraft.loot.LootPool;
|
||||
import net.minecraft.loot.LootTable;
|
||||
import net.minecraft.loot.function.LootFunction;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
/**
|
||||
* Accesses loot table fields for {@link net.fabricmc.fabric.api.loot.v2.FabricLootTableBuilder#copyOf(LootTable)}.
|
||||
@@ -34,4 +35,7 @@ public interface LootTableAccessor {
|
||||
|
||||
@Accessor("functions")
|
||||
LootFunction[] fabric_getFunctions();
|
||||
|
||||
@Accessor("field_44892")
|
||||
Identifier fabric_getRandomSequenceId();
|
||||
}
|
||||
|
Reference in New Issue
Block a user