SHARE
TWEET

Untitled

a guest Sep 11th, 2016 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Copyright (C) 2016 Andrew Morin
  2. //Licensed under GNU GPL v3; see license.txt for complete license terms + conditions etc.
  3.  
  4. package theishiopian.dungeonmagic.entity;
  5.  
  6. import net.minecraft.entity.EntityLivingBase;
  7. import net.minecraft.entity.projectile.EntityThrowable;
  8. import net.minecraft.init.Blocks;
  9. import net.minecraft.init.SoundEvents;
  10. import net.minecraft.util.DamageSource;
  11. import net.minecraft.util.EnumParticleTypes;
  12. import net.minecraft.util.SoundCategory;
  13. import net.minecraft.util.math.BlockPos;
  14. import net.minecraft.util.math.RayTraceResult;
  15. import net.minecraft.util.math.RayTraceResult.Type;
  16. import net.minecraft.world.World;
  17. import net.minecraftforge.event.terraingen.BiomeEvent.GetVillageBlockID;
  18.  
  19. public class EntitySpell extends EntityThrowable
  20. {
  21.     public static EntityLivingBase caster;
  22.    
  23.     public EntitySpell(World world)
  24.     {
  25.         super(world);
  26.     }
  27.    
  28.     public EntitySpell(World world, EntityLivingBase entity)
  29.     {
  30.         super(world, entity);
  31.         caster = entity;
  32.     }
  33.    
  34.     public EntitySpell(World world, double x, double y, double z)
  35.     {
  36.         super(world, x, y, z);
  37.     }
  38.    
  39.     @Override
  40.     protected float getGravityVelocity()
  41.     {
  42.         return 0.0F;
  43.     }
  44.  
  45.     @Override
  46.     protected void onImpact(RayTraceResult result)
  47.     {
  48.        
  49.     }
  50.     @Override
  51.     public void onUpdate()
  52.     {
  53.         super.onUpdate();
  54.         if(this.ticksExisted>100)
  55.         {
  56.             setDead();
  57.         }
  58.     }
  59. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top