979899100101102103104105106107
} private void addDamageToTarget(Entity crate) { Health h = crate.getComponent(Health.class); if(h != null) h.addDamage(10f); } }