Add missing javadocs in DestinationFactory.

This commit is contained in:
benwoo1110 2021-03-10 17:45:39 +08:00
parent ecc76033dc
commit 89f685ff9a
1 changed files with 9 additions and 2 deletions

View File

@ -27,7 +27,9 @@ import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
/** A factory class that will create destinations from specific strings. */
/**
* A factory class that will create destinations from specific strings.
*/
public class DestinationFactory {
private static final Pattern CANNON_PATTERN = Pattern.compile("(?i)cannon-[\\d]+(\\.[\\d]+)?");
@ -165,7 +167,12 @@ public class DestinationFactory {
this.teleportCommand.addAdditonalPermission(other);
return true;
}
/**
* Gets all the {@link MVDestination} identifiers registered.
*
* @return A collection of destination identifiers.
*/
public Collection<String> getRegisteredIdentifiers() {
return this.destList.keySet();
}