[1.6.4]func_96122_a

if (movingobjectposition != null && movingobjectposition.entityHit != null && movingobjectposition.entityHit instanceof EntityPlayer)
{
EntityPlayer entityplayer = (EntityPlayer)movingobjectposition.entityHit;

if (entityplayer.capabilities.disableDamage || this.shootingEntity instanceof EntityPlayer && !((EntityPlayer)this.shootingEntity).func_96122_a(entityplayer))
{
movingobjectposition = null;
}
}
 
Возможно это "public boolean canAttackPlayer(EntityPlayer par1EntityPlayer)".
Либо мало вероятно, "public boolean isInvisibleToPlayer(EntityPlayer par1EntityPlayer)"
 
Назад
Сверху