package com.arkcraft.module.weapon.common.entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; public class EntitySimpleRifleAmmo extends EntityProjectile { public EntitySimpleRifleAmmo(World world) { super(world); setDamage(15); } public EntitySimpleRifleAmmo(World world, double x, double y, double z) { this(world); setPosition(x, y, z); setDamage(15); } public EntitySimpleRifleAmmo(World worldIn, EntityLivingBase shooter, float speed, float inaccuracy) { super(worldIn, shooter, speed, inaccuracy); setDamage(15); } @Override public float getGravity() { return 0.005F; } @Override public float getAirResistance() { return 0.98F; } @Override public void onUpdate() { super.onUpdate(); worldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, posX, posY, posZ, 0.0D, 0.0D, 0.0D); } @Override public void onGroundHit(MovingObjectPosition movingobjectposition) { worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, posX, posY, posZ, 0.0D, 0.0D, 0.0D); breakGlass(movingobjectposition); this.setDead(); } }