Example #1
0
 @Override
 public void onSpawn() {
   npc.getInventory()
       .setItemInHand(new ItemStack(weapons[this.random.nextInt(weapons.length)], 1));
   this.health = Settings.getInt("EvilHealth");
   super.onSpawn();
 }