mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
@@ -1,27 +0,0 @@
|
|||||||
package org.geysermc.floodgate.util;
|
|
||||||
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
|
|
||||||
|
|
||||||
public enum DeviceOS {
|
|
||||||
@JsonEnumDefaultValue
|
|
||||||
UNKNOWN,
|
|
||||||
ANDROID,
|
|
||||||
IOS,
|
|
||||||
OSX,
|
|
||||||
FIREOS,
|
|
||||||
GEARVR,
|
|
||||||
HOLOLENS,
|
|
||||||
WIN10,
|
|
||||||
WIN32,
|
|
||||||
DEDICATED,
|
|
||||||
ORBIS,
|
|
||||||
NX,
|
|
||||||
SWITCH;
|
|
||||||
|
|
||||||
private static final DeviceOS[] VALUES = values();
|
|
||||||
|
|
||||||
public static DeviceOS getById(int id) {
|
|
||||||
return id < VALUES.length ? VALUES[id] : VALUES[0];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user