Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.Looke81.BioWarfare.entity;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.monster.EntityBlaze;
- import net.minecraft.entity.projectile.EntityThrowable;
- import net.minecraft.potion.Potion;
- import net.minecraft.potion.PotionEffect;
- import net.minecraft.util.MathHelper;
- import net.minecraft.util.MovingObjectPosition;
- import net.minecraft.world.World;
- public class EntityGrenade extends EntityThrowable{
- public EntityGrenade(World p_i1776_1_) {
- super(p_i1776_1_);
- // TODO Auto-generated constructor stub
- }
- public EntityGrenade(World world, EntityLivingBase entity){
- super(world, entity);
- }
- @Override
- protected void onImpact(MovingObjectPosition movingobjectposition) {
- for(int i = 0; i < 10;i++){}
- if(!this.worldObj.isRemote){
- //this.worldObj.createExplosion((Entity) null, this.posX, this.posY, this.posZ, 2.5F, true);
- this.worldObj.spawnEntityInWorld(new EntityGrenadeEffect(this.worldObj));
- this.setDead();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment