Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mymod.entity.EntityRifleBolt;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.projectile.EntityThrowable;
- import net.minecraft.util.MovingObjectPosition;
- import net.minecraft.world.World;
- public class EntityRifleBolt extends EntityThrowable
- {
- private String texturePath = "mymod:";
- public EntityRifleBolt(World par1World)
- {
- super(par1World);
- }
- public EntityRifleBolt(World par1World, EntityLivingBase par2EntityLivingBase)
- {
- super(par1World, par2EntityLivingBase);
- }
- public EntityRifleBolt(World par1World, double par2, double par4, double par6)
- {
- super(par1World, par2, par4, par6);
- }
- @Override
- protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
- {
- this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)1.0F, true);
- this.setDead();
- }
- protected float getGravityVelocity()
- {
- return 0.0F;
- }
- {
- }}
Advertisement
Add Comment
Please, Sign In to add comment