Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Copyright (C) 2016 Andrew Morin
- //Licensed under GNU GPL v3; see license.txt for complete license terms + conditions etc.
- package theishiopian.dungeonmagic.entity;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.projectile.EntityThrowable;
- import net.minecraft.init.Blocks;
- import net.minecraft.init.SoundEvents;
- import net.minecraft.util.DamageSource;
- import net.minecraft.util.EnumParticleTypes;
- import net.minecraft.util.SoundCategory;
- import net.minecraft.util.math.BlockPos;
- import net.minecraft.util.math.RayTraceResult;
- import net.minecraft.util.math.RayTraceResult.Type;
- import net.minecraft.world.World;
- import net.minecraftforge.event.terraingen.BiomeEvent.GetVillageBlockID;
- public class EntitySpell extends EntityThrowable
- {
- public static EntityLivingBase caster;
- public EntitySpell(World world)
- {
- super(world);
- }
- public EntitySpell(World world, EntityLivingBase entity)
- {
- super(world, entity);
- caster = entity;
- }
- public EntitySpell(World world, double x, double y, double z)
- {
- super(world, x, y, z);
- }
- @Override
- protected float getGravityVelocity()
- {
- return 0.0F;
- }
- @Override
- protected void onImpact(RayTraceResult result)
- {
- }
- @Override
- public void onUpdate()
- {
- super.onUpdate();
- if(this.ticksExisted>100)
- {
- setDead();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement