Package dev.hypera.chameleon.platform
Interface Platform
-
- All Known Subinterfaces:
ProxyPlatform,ServerPlatform
@NonExtendable public interface PlatformRepresents a proxy or server platform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull StringgetId()Get a unique identifier for this Platform.@NotNull StringgetName()Get the friendly name of this Platform.@NotNull StringgetVersion()Get the version of this Platform.
-
-
-
Field Detail
-
BUKKIT
@NotNull static final @NotNull String BUKKIT
- See Also:
- Constant Field Values
-
BUNGEECORD
@NotNull static final @NotNull String BUNGEECORD
- See Also:
- Constant Field Values
-
FOLIA
@NotNull static final @NotNull String FOLIA
- See Also:
- Constant Field Values
-
NUKKIT
@NotNull static final @NotNull String NUKKIT
- See Also:
- Constant Field Values
-
SPONGE
@NotNull static final @NotNull String SPONGE
- See Also:
- Constant Field Values
-
VELOCITY
@NotNull static final @NotNull String VELOCITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
@NotNull @NotNull String getId()
Get a unique identifier for this Platform.This will return the common name of the API that is in use, e.g. "BungeeCord" or "Velocity".
- Returns:
- Platform identifier.
-
getName
@NotNull @NotNull String getName()
Get the friendly name of this Platform.This will return the name provided by the Platform, which may not match the name of the API that is in use.
- Returns:
- Platform friendly name.
-
getVersion
@NotNull @NotNull String getVersion()
Get the version of this Platform.This will return the version provided by the Platform.
- Returns:
- Platform version.
-
-