Implement DestinationInstance#getIdentifier shortcut

This commit is contained in:
Ben Woo 2024-11-21 10:56:41 +08:00
parent cee6a4879a
commit e15dd7e69b

View File

@ -24,6 +24,15 @@ public abstract class DestinationInstance<I extends DestinationInstance<I, T>,
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.
*