I use Player API with and I have a problem:
public boolean attackEntityFrom(DamageSource damageSource, float v) {
if(damageSource.getEntity() != null)
{
//Never Reached
}
return super.attackEntityFrom(damageSource, v);
}
I saw that I need to use EntityDamageSource but It is not working.
What can I do?
(It is clientside)