From e15dd7e69bb5cd0c0addebec49b9c6e95e6fe9f0 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:56:41 +0800 Subject: [PATCH] Implement DestinationInstance#getIdentifier shortcut --- .../multiverse/core/destination/DestinationInstance.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/mvplugins/multiverse/core/destination/DestinationInstance.java b/src/main/java/org/mvplugins/multiverse/core/destination/DestinationInstance.java index 9be28555..a5949f38 100644 --- a/src/main/java/org/mvplugins/multiverse/core/destination/DestinationInstance.java +++ b/src/main/java/org/mvplugins/multiverse/core/destination/DestinationInstance.java @@ -24,6 +24,15 @@ public abstract class DestinationInstance, return this.destination; } + /** + * Gets the {@link Destination#getIdentifier()} for this instance. + * + * @return The identifier. + */ + public @NotNull String getIdentifier() { + return this.destination.getIdentifier(); + } + /** * Gets the exact location to teleport an entity to. *