Package net.minecraft.src

Examples of net.minecraft.src.EntityTNTPrimed


   );

   @Override
   public void execute(CommandSender sender, List<?> params) {
      Player player = super.getSenderAsPlayer(sender);
      EntityTNTPrimed tnt = new EntityTNTPrimed(player.getWorld().getMinecraftWorld());
      tnt.setLocationAndAngles(player.getPosition().getX(), player.getPosition().getY() + 1, player.getPosition().getZ(), player.getYaw(), player.getPitch());
      tnt.fuse = 40;
      tnt.motionX = -MathHelper.sin((tnt.rotationYaw / 180F) * 3.141593F) * MathHelper.cos((tnt.rotationPitch / 180F) * 3.141593F);
      tnt.motionZ = MathHelper.cos((tnt.rotationYaw / 180F) * 3.141593F) * MathHelper.cos((tnt.rotationPitch / 180F) * 3.141593F);
      tnt.motionY = -MathHelper.sin((tnt.rotationPitch / 180F) * 3.141593F);

 
View Full Code Here

TOP

Related Classes of net.minecraft.src.EntityTNTPrimed

Copyright © 2018 www.massapicom. 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.