Package net.minecraft.util

Examples of net.minecraft.util.EntityDamageSourceIndirect


 
  private DamageSource getGrenadeDamage()
  {
    if(thrower instanceof EntityPlayer)
      return (new EntityDamageSourceGun(type.shortName, this, (EntityPlayer)thrower, type, false)).setProjectile();
    else return (new EntityDamageSourceIndirect(type.shortName, this, thrower)).setProjectile();
  }
View Full Code Here


  public DamageSource getBulletDamage(boolean headshot)
  {
    if(owner instanceof EntityPlayer)
      return (new EntityDamageSourceGun(type.shortName, this, (EntityPlayer)owner, firedFrom, headshot)).setProjectile();
    else return (new EntityDamageSourceIndirect(type.shortName, this, owner)).setProjectile();
  }
View Full Code Here

TOP

Related Classes of net.minecraft.util.EntityDamageSourceIndirect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.