|
|
|
@ -20,30 +20,23 @@ import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
|
|
|
|
public class AngmarOrcBrewer extends AngmarOrcButcher implements LOTRTradeable {
|
|
|
|
public class AngmarOrcBrewer extends AngmarOrcButcher implements LOTRTradeable {
|
|
|
|
public static LOTRTradeEntries ANGMAR_BUTCHER_BUY;
|
|
|
|
public static LOTRTradeEntries ANGMAR_BREWER_BUY;
|
|
|
|
public static LOTRTradeEntries ANGMAR_BUTCHER_SELL;
|
|
|
|
public static LOTRTradeEntries ANGMAR_BREWER_SELL;
|
|
|
|
|
|
|
|
|
|
|
|
public AngmarOrcBrewer(World world) {
|
|
|
|
public AngmarOrcBrewer(World world) {
|
|
|
|
super(world);
|
|
|
|
super(world);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEntityLivingData onSpawnWithEgg(IEntityLivingData data) {
|
|
|
|
|
|
|
|
data = super.onSpawnWithEgg(data);
|
|
|
|
|
|
|
|
this.npcItemsInv.setMeleeWeapon(new ItemStack(LOTRMod.daggerAngmarPoisoned));
|
|
|
|
|
|
|
|
this.npcItemsInv.setIdleItem(new ItemStack(LOTRMod.mugOrcDraught));
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LOTRTradeEntries getBuyPool() {
|
|
|
|
public LOTRTradeEntries getBuyPool() {
|
|
|
|
return ANGMAR_BUTCHER_BUY;
|
|
|
|
return ANGMAR_BREWER_BUY;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public LOTRTradeEntries getSellPool() {
|
|
|
|
public LOTRTradeEntries getSellPool() {
|
|
|
|
return ANGMAR_BUTCHER_SELL;
|
|
|
|
return ANGMAR_BREWER_SELL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEntityLivingData func_110161_a(IEntityLivingData data) {
|
|
|
|
public IEntityLivingData onSpawnWithEgg(IEntityLivingData data) {
|
|
|
|
data = super.func_110161_a(data);
|
|
|
|
data = super.onSpawnWithEgg(data);
|
|
|
|
this.npcItemsInv.setMeleeWeapon(new ItemStack(LOTRMod.daggerAngmarPoisoned));
|
|
|
|
this.npcItemsInv.setMeleeWeapon(new ItemStack(LOTRMod.daggerAngmarPoisoned));
|
|
|
|
this.npcItemsInv.setIdleItem(this.npcItemsInv.getMeleeWeapon());
|
|
|
|
this.npcItemsInv.setIdleItem(this.npcItemsInv.getMeleeWeapon());
|
|
|
|
this.setCurrentItemOrArmor(1, new ItemStack(LOTRMod.bootsFur));
|
|
|
|
this.setCurrentItemOrArmor(1, new ItemStack(LOTRMod.bootsFur));
|
|
|
|
@ -55,10 +48,10 @@ public class AngmarOrcBrewer extends AngmarOrcButcher implements LOTRTradeable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
static {
|
|
|
|
ANGMAR_BUTCHER_BUY = new LOTRTradeEntries(TradeType.BUY,
|
|
|
|
ANGMAR_BREWER_BUY = new LOTRTradeEntries(TradeType.BUY,
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 9999), 8),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 2), 8),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 9999), 8),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 2), 8),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 9999), 8),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 3), 8),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 4), 8),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mugOrcDraught, 1, 4), 8),
|
|
|
|
new LOTRTradeEntryBarrel(new ItemStack(LOTRMod.mugOrcDraught, 1, 3), 180),
|
|
|
|
new LOTRTradeEntryBarrel(new ItemStack(LOTRMod.mugOrcDraught, 1, 3), 180),
|
|
|
|
new LOTRTradeEntryBarrel(new ItemStack(LOTRMod.mugOrcDraught, 1, 4), 300),
|
|
|
|
new LOTRTradeEntryBarrel(new ItemStack(LOTRMod.mugOrcDraught, 1, 4), 300),
|
|
|
|
@ -68,7 +61,7 @@ public class AngmarOrcBrewer extends AngmarOrcButcher implements LOTRTradeable {
|
|
|
|
new LOTRTradeEntry(new ItemStack(CinderLoE.spiceIngredient, 1, 2), 6666));
|
|
|
|
new LOTRTradeEntry(new ItemStack(CinderLoE.spiceIngredient, 1, 2), 6666));
|
|
|
|
((MixinLOTRTradeEntries)ANGMAR_BUTCHER_BUY).vessels(LOTRFoods.ORC_DRINK);
|
|
|
|
((MixinLOTRTradeEntries)ANGMAR_BUTCHER_BUY).vessels(LOTRFoods.ORC_DRINK);
|
|
|
|
|
|
|
|
|
|
|
|
ANGMAR_BUTCHER_SELL = new LOTRTradeEntries(TradeType.SELL,
|
|
|
|
ANGMAR_BREWER_SELL = new LOTRTradeEntries(TradeType.SELL,
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mug), 1),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.mug), 1),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.waterskin), 2),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.waterskin), 2),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.barrel), 10),
|
|
|
|
new LOTRTradeEntry(new ItemStack(LOTRMod.barrel), 10),
|
|
|
|
|