From 5976c6ad73f86db3bdb8548a171b410cc4bbb942 Mon Sep 17 00:00:00 2001 From: 7orivorian <7orivorian+github@gmail.com> Date: Wed, 18 Oct 2023 00:27:38 -0400 Subject: [PATCH] Add 'getId' method to EventBus.java Signed-off-by: 7orivorian <7orivorian+github@gmail.com> --- src/main/java/me/tori/wraith/bus/EventBus.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/me/tori/wraith/bus/EventBus.java b/src/main/java/me/tori/wraith/bus/EventBus.java index 14d8fea..76bc234 100644 --- a/src/main/java/me/tori/wraith/bus/EventBus.java +++ b/src/main/java/me/tori/wraith/bus/EventBus.java @@ -380,6 +380,13 @@ public boolean isShutdown() { return shutdown; } + /** + * @return the {@code id} of this event bus + */ + public int getId() { + return id; + } + /** * Checks if this event bus is equal to another object. * <p>If the given object is an event bus, it is only considered equal if {@code this.id == that.id}.