Exemple #1
0
 protected void knockback(ActiveEntity e, double angle, float power)
 {
     e.knockbackX = (float)Math.Cos(angle) * power;
     e.knockbackY = (float)Math.Sin(angle) * power;
 }
Exemple #2
0
 protected void attack(ActiveEntity e)
 {
     e.hurt(attackAlpha);
 }