Exemple #1
0
 public void handleHealthUpdate(byte par1) {
   if (par1 == 10) {
     this.sheepTimer = 40;
   } else {
     super.handleHealthUpdate(par1);
   }
 }
Exemple #2
0
 @SideOnly(Side.CLIENT)
 public void handleHealthUpdate(byte par1) {
   if (par1 == 7) {
     this.playTameEffect(true);
   } else if (par1 == 6) {
     this.playTameEffect(false);
   } else {
     super.handleHealthUpdate(par1);
   }
 }