mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-27 23:29:58 -04:00
Update mappings
This commit is contained in:
parent
7533b848b5
commit
9c15c890d1
6 changed files with 12 additions and 12 deletions
build.gradlesettings.gradle
fabric-loot-tables-v1/src/main/java/net/fabricmc/fabric
api/loot/v1
mixin/loot
|
@ -14,7 +14,7 @@ def ENV = System.getenv()
|
|||
class Globals {
|
||||
static def baseVersion = "0.3.2"
|
||||
static def mcVersion = "19w38b"
|
||||
static def yarnVersion = "+build.3"
|
||||
static def yarnVersion = "+build.4"
|
||||
}
|
||||
|
||||
import org.apache.commons.codec.digest.DigestUtils
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
|
||||
package net.fabricmc.fabric.api.loot.v1;
|
||||
|
||||
import net.minecraft.class_4570;
|
||||
import net.minecraft.world.loot.LootPool;
|
||||
import net.minecraft.world.loot.LootTableRange;
|
||||
import net.minecraft.world.loot.condition.LootCondition;
|
||||
import net.minecraft.world.loot.entry.LootEntry;
|
||||
import net.minecraft.world.loot.function.LootFunction;
|
||||
|
||||
|
@ -33,7 +33,7 @@ public interface FabricLootPool {
|
|||
return (LootPool) this;
|
||||
}
|
||||
List<LootEntry> getEntries();
|
||||
List<class_4570> getConditions();
|
||||
List<LootCondition> getConditions();
|
||||
List<LootFunction> getFunctions();
|
||||
LootTableRange getRollsRange();
|
||||
}
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
package net.fabricmc.fabric.api.loot.v1;
|
||||
|
||||
import net.fabricmc.fabric.mixin.loot.LootPoolBuilderHooks;
|
||||
import net.minecraft.class_4570;
|
||||
import net.minecraft.world.loot.LootPool;
|
||||
import net.minecraft.world.loot.LootTableRange;
|
||||
import net.minecraft.world.loot.condition.LootCondition;
|
||||
import net.minecraft.world.loot.entry.LootEntry;
|
||||
import net.minecraft.world.loot.function.LootFunction;
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class FabricLootPoolBuilder extends LootPool.Builder {
|
|||
}
|
||||
|
||||
@Override
|
||||
public FabricLootPoolBuilder withCondition(class_4570.Builder condition) {
|
||||
public FabricLootPoolBuilder withCondition(LootCondition.Builder condition) {
|
||||
super.method_356(condition);
|
||||
return this;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public class FabricLootPoolBuilder extends LootPool.Builder {
|
|||
return this;
|
||||
}
|
||||
|
||||
public FabricLootPoolBuilder withCondition(class_4570 condition) {
|
||||
public FabricLootPoolBuilder withCondition(LootCondition condition) {
|
||||
extended.getConditions().add(condition);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
package net.fabricmc.fabric.mixin.loot;
|
||||
|
||||
import net.minecraft.class_4570;
|
||||
import net.minecraft.world.loot.LootPool;
|
||||
import net.minecraft.world.loot.condition.LootCondition;
|
||||
import net.minecraft.world.loot.entry.LootEntry;
|
||||
import net.minecraft.world.loot.function.LootFunction;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
@ -30,7 +30,7 @@ public interface LootPoolBuilderHooks {
|
|||
@Accessor
|
||||
List<LootEntry> getEntries();
|
||||
@Accessor
|
||||
List<class_4570> getConditions();
|
||||
List<LootCondition> getConditions();
|
||||
@Accessor
|
||||
List<LootFunction> getFunctions();
|
||||
}
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
package net.fabricmc.fabric.mixin.loot;
|
||||
|
||||
import net.fabricmc.fabric.api.loot.v1.FabricLootPool;
|
||||
import net.minecraft.class_4570;
|
||||
import net.minecraft.world.loot.LootPool;
|
||||
import net.minecraft.world.loot.LootTableRange;
|
||||
import net.minecraft.world.loot.condition.LootCondition;
|
||||
import net.minecraft.world.loot.entry.LootEntry;
|
||||
import net.minecraft.world.loot.function.LootFunction;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
|
@ -34,7 +34,7 @@ import java.util.List;
|
|||
public abstract class MixinLootPool implements FabricLootPool {
|
||||
@Shadow @Final private LootEntry[] entries;
|
||||
|
||||
@Shadow @Final private class_4570[] conditions;
|
||||
@Shadow @Final private LootCondition[] conditions;
|
||||
|
||||
@Shadow @Final private LootFunction[] functions;
|
||||
|
||||
|
@ -44,7 +44,7 @@ public abstract class MixinLootPool implements FabricLootPool {
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<class_4570> getConditions() {
|
||||
public List<LootCondition> getConditions() {
|
||||
return Arrays.asList(conditions);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ include 'fabric-networking-blockentity-v0'
|
|||
include 'fabric-object-builders-v0'
|
||||
include 'fabric-registry-sync-v0'
|
||||
include 'fabric-renderer-api-v1'
|
||||
include 'fabric-renderer-indigo'
|
||||
//include 'fabric-renderer-indigo'
|
||||
include 'fabric-rendering-v0'
|
||||
include 'fabric-rendering-data-attachment-v1'
|
||||
include 'fabric-rendering-fluids-v1'
|
||||
|
|
Loading…
Add table
Reference in a new issue