Examples of heal()


Examples of com.sijobe.spc.wrapper.Player.heal()

    * @see com.sijobe.spc.wrapper.CommandBase#execute(net.minecraft.src.ICommandSender, java.util.List)
    */
   @Override
   public void execute(CommandSender sender, List<?> params) {
      Player player = super.getSenderAsPlayer(sender);
      player.heal((Integer)params.get(0));
   }

   /**
    * @see com.sijobe.spc.wrapper.CommandBase#getParameters()
    */
 
View Full Code Here

Examples of games.stendhal.server.entity.npc.behaviour.impl.HealerBehaviour.heal()

            false,
            ConversationStates.IDLE,
            null, new ChatAction() {
              public void fire(final Player player, final Sentence sentence, final EventRaiser raiser) {
                if (player.drop("money", healerBehaviour.getCharge(currentBehavRes, player))) {
                  healerBehaviour.heal(player);
                  raiser.say("All better now, everyone better. I love you, I do. Bye bye.");
                } else {
                  raiser.say("Pff, no money, no heal. Bye.");
                }
View Full Code Here

Examples of games.stendhal.server.entity.npc.behaviour.impl.HealerBehaviour.heal()

                // characters
                // (low atk, low def AND low level)
                raiser.say("Sorry, but you have a bad aura, so that I am unable to heal you right now.");
              } else {
                raiser.say("There, you are healed. How else may I help you?");
                healerBehaviour.heal(player);
              }
            }

          }
    });
View Full Code Here

Examples of games.stendhal.server.entity.npc.behaviour.impl.HealerBehaviour.heal()

            if (cost < 0) {
              cost = player.getLevel() * Math.abs(cost) + 1;
            }
            if (player.drop("money",
                cost)) {
              healerBehaviour.heal(player);
              raiser.say("There, you are healed. How else may I help you?");
            } else {
              raiser.say("I'm sorry, but it looks like you can't afford it.");
            }

View Full Code Here

Examples of net.minecraft.entity.EntityLivingBase.heal()

      }

      int vampirism = EnchantmentHelper.getEnchantmentLevel(LibEnchantIDs.idVampirism, heldItem);
      if (vampirism > 0) {
        attacker.heal(vampirism);
        event.entityLiving.worldObj.playSoundAtEntity(event.entityLiving, "thaumcraft:zap", 0.6F, 1F);
      }
    }
  }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.heal()

  public void onDamageTaken(LivingHurtEvent event) {
    if (event.entityLiving instanceof EntityPlayer) {
      EntityPlayer player = (EntityPlayer) event.entityLiving;
      if (player.getCurrentArmor(1) != null && player.getCurrentArmor(1).getItem() == this && event.source.isFireDamage() && ThaumicTinkerer.proxy.armorStatus(player)) {
        event.setCanceled(true);
        player.heal(event.ammount);
      }
    }
  }
}
View Full Code Here

Examples of org.spout.vanilla.component.entity.misc.Health.heal()

    health.kill(HealthChangeCause.DAMAGE);
    assertEquals(0.0f, health.getHealth(), 0.0f);
    assertTrue(health.isDead());

    health.heal(5.0f);
    assertEquals(5.0f, health.getHealth(), 0.0f);
    assertFalse(health.isDead());

    health.setDeathTicks(30);
    assertEquals(30, health.getDeathTicks());
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.