This commit is contained in:
Jeff Wadsworth 2022-06-24 15:31:35 -05:00
parent 227ae8c2e2
commit 48a96e5e8f
95 changed files with 260 additions and 101 deletions

View file

@ -40,6 +40,16 @@ public abstract class DamagedBatchEvent extends GameEvent {
.orElse(null);
}
@Override
public UUID getSourceId() {
return events
.stream()
.map(GameEvent::getSourceId)
.filter(Objects::nonNull)
.findFirst()
.orElse(null);
}
public void addEvent(DamagedEvent event) {
this.events.add(event);
}