package greymerk.roguelike.monster.profiles; import java.util.Random; import greymerk.roguelike.monster.IEntity; import greymerk.roguelike.monster.IMonsterProfile; import greymerk.roguelike.monster.MobType; import greymerk.roguelike.monster.MonsterProfile; import greymerk.roguelike.treasure.loot.Shield; import greymerk.roguelike.treasure.loot.provider.ItemWeapon; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class ProfilePigman implements IMonsterProfile { @Override public void addEquipment(World world, Random rand, int level, IEntity mob) { mob.setMobClass(MobType.PIGZOMBIE, true); ItemStack weapon = ItemWeapon.getSword(rand, level, true); mob.setSlot(EntityEquipmentSlot.MAINHAND, weapon); mob.setSlot(EntityEquipmentSlot.OFFHAND, Shield.get(rand)); MonsterProfile.get(MonsterProfile.TALLMOB).addEquipment(world, rand, level, mob); } }