Examples of PrimedTnt


Examples of com.mojang.minecraft.item.PrimedTnt

      return 0;
   }

   public final void explode(Level var1, int var2, int var3, int var4) {
      if(!var1.creativeMode) {
         PrimedTnt var5;
         (var5 = new PrimedTnt(var1, (float)var2 + 0.5F, (float)var3 + 0.5F, (float)var4 + 0.5F)).life = random.nextInt(var5.life / 4) + var5.life / 8;
         var1.addEntity(var5);
      }

   }
View Full Code Here

Examples of com.mojang.minecraft.item.PrimedTnt

   }

   public final void spawnBreakParticles(Level level, int x, int y, int z, ParticleManager particleManager) {
      if(!level.creativeMode) {
         level.addEntity(new PrimedTnt(level, (float) x + 0.5F, (float) y + 0.5F, (float) z + 0.5F));
      } else {
         super.spawnBreakParticles(level, x, y, z, particleManager);
      }
   }
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.