MCPcopy Create free account
hub / github.com/PaperMC/Paper / getByValue

Method getByValue

paper-api/src/main/java/org/bukkit/GameMode.java:71–75  ·  view source on GitHub ↗

Gets the GameMode represented by the specified value @param value Value to check @return Associative GameMode with the given value, or null if it doesn't exist @apiNote Internal Use Only

(final int value)

Source from the content-addressed store, hash-verified

69 * @apiNote Internal Use Only
70 */
71 @org.jetbrains.annotations.ApiStatus.Internal // Paper
72 @Nullable
73 public static GameMode getByValue(final int value) {
74 return BY_ID.get(value);
75 }
76
77 static {
78 for (GameMode mode : values()) {

Callers 6

getByValueMethod · 0.95
testGameModeMethod · 0.95
gameModeMethod · 0.95
getDefaultGameModeMethod · 0.95
getGameModeMethod · 0.95
getPreviousGameModeMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 2

getByValueMethod · 0.76
testGameModeMethod · 0.76