Make PlatformType fields final (#3917)

This commit is contained in:
Konicai 2023-06-26 15:18:29 -04:00 committed by GitHub
parent c7568ec889
commit c7304f04e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,11 +29,11 @@ package org.geysermc.geyser.api.util;
* Represents the platform Geyser is running on.
*/
public record PlatformType(String platformName) {
public static PlatformType ANDROID = new PlatformType("Android");
public static PlatformType BUNGEECORD = new PlatformType("BungeeCord");
public static PlatformType FABRIC = new PlatformType("Fabric");
public static PlatformType SPIGOT = new PlatformType("Spigot");
public static PlatformType SPONGE = new PlatformType("Sponge");
public static PlatformType STANDALONE = new PlatformType("Standalone");
public static PlatformType VELOCITY = new PlatformType("Velocity");
public static final PlatformType ANDROID = new PlatformType("Android");
public static final PlatformType BUNGEECORD = new PlatformType("BungeeCord");
public static final PlatformType FABRIC = new PlatformType("Fabric");
public static final PlatformType SPIGOT = new PlatformType("Spigot");
public static final PlatformType SPONGE = new PlatformType("Sponge");
public static final PlatformType STANDALONE = new PlatformType("Standalone");
public static final PlatformType VELOCITY = new PlatformType("Velocity");
}