Examples of ArmourType


Examples of com.flansmod.common.teams.ArmourType

    if(chance < armourSpawnRate && event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntitySkeleton)
    {
      if(event.world.rand.nextBoolean() && ArmourType.armours.size() > 0)
      {
        //Give a completely random piece of armour
        ArmourType armour = ArmourType.armours.get(event.world.rand.nextInt(ArmourType.armours.size()));
        if(armour != null && armour.type != 2)
          event.entityLiving.setCurrentItemOrArmor(armour.type + 1, new ItemStack(armour.item));
      }
      else if(Team.teams.size() > 0)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.