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)
| 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()) { |