Examples of hurt()


Examples of com.mojang.minecraft.Entity.hurt()

        {
          Entity entity = (Entity)blockMapEntitiesList.get(currentEntity);

          if((entity).isShootable() && (entity != owner || time > 5))
          {
            entity.hurt(this, damage);

            collision = true;

            remove();
View Full Code Here

Examples of com.mojang.minecraft.Entity.hurt()

      for(var13 = 0; var13 < var18.size(); ++var13) {
         Entity var20;
         if((var15 = (var20 = (Entity)var18.get(var13)).distanceTo(var2, var3, var4) / var5) <= 1.0F) {
            var16 = 1.0F - var15;
            var20.hurt(var1, (int)(var16 * 15.0F + 1.0F));
         }
      }

   }

View Full Code Here

Examples of game.habits.HurtHabit.hurt()

        HurtHabit h = ls.getSpace().findObject(dynamic.getPolygon(), HurtHabit.class);
        if (h != null) {
            useDust(30);
            state.hurt();
            h.hurt();
        }

        space.putObject(this, dynamic.getPolygon());
    }
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.