2
0
Fork 0

Adding invoker for LOTRTradeEntries.setVessels

frozen
Shinare 2 years ago
parent 6dca010051
commit b381bdce1e

Binary file not shown.

@ -31,6 +31,8 @@ import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.util.StatCollector;
import net.minecraft.nbt.NBTTagCompound;
import com.zivilon.cinder_loe.mixins.MixinLOTRTradeEntries;
public class UtumnoSlaveTrader extends LOTREntityMan implements LOTRTradeable.Smith {
public static LOTRTradeEntries UTUMNO_SLAVE_BUY;
public static LOTRTradeEntries UTUMNO_SLAVE_SELL;
@ -117,7 +119,7 @@ public class UtumnoSlaveTrader extends LOTREntityMan implements LOTRTradeable.Sm
new LOTRTradeEntry(new ItemStack(LOTRMod.modTemplate), 20)
}
);
UTUMNO_SLAVE_BUY = ((MixinLOTRTradeEntries)UTUMNO_SLAVE_BUY).vessels(LOTRFoods.NURN_SLAVE_DRINK);
UTUMNO_SLAVE_SELL = new LOTRTradeEntries(TradeType.SELL,
new LOTRTradeEntry[] {

@ -0,0 +1,14 @@
package com.zivilon.cinder_loe.mixins;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Invoker;
import lotr.common.entity.npc.LOTRTradeEntries;
import lotr.common.LOTRFoods;
@Mixin(LOTRTradeEntries.class)
public interface MixinLOTRTradeEntries {
@Invoker("setVessels")
public abstract LOTRTradeEntries vessels(LOTRFoods foods);
}

@ -28,7 +28,8 @@
"MixinLOTRRenderNPCRespawner",
"MixinRendererLivingEntity",
"MixinLOTRRenderArmorStand",
"MixinLOTREntitySauron"
"MixinLOTREntitySauron",
"MixinLOTRTradeEntries"
],
"client": []
}

Loading…
Cancel
Save