public class GameModeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static @Nullable org.bukkit.GameMode |
build(@Nullable String mode,
@Nullable Locale locale)
Create a GameMode from a string.
|
static @NotNull List<String> |
partialMatchingGameModes(String arg,
@Nullable Locale locale)
Returns autocomplete suggestions that are game-mode names.
|
static String |
prettyPrint(org.bukkit.GameMode gameMode,
@Nullable Locale locale)
Pretty print the given GameMode.
|
@Nullable
public static @Nullable org.bukkit.GameMode build(@Nullable
@Nullable String mode,
@Nullable
@Nullable Locale locale)
mode - The mode to convertlocale - The input localepublic static String prettyPrint(org.bukkit.GameMode gameMode, @Nullable @Nullable Locale locale)
gameMode - The mode to printlocale - The output locale@NotNull public static @NotNull List<String> partialMatchingGameModes(String arg, @Nullable @Nullable Locale locale)
arg - The partial inputlocale - The input localeCopyright © 2021. All rights reserved.