13
0
geforkt von Mirrors/Paper

#904: Update FeatureFlag for 1.20.2

By: Doc <nachito94@msn.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2023-09-27 07:15:24 +10:00
Ursprung 4a85b3985a
Commit ac251a9ed9

Datei anzeigen

@ -4,6 +4,9 @@ import org.jetbrains.annotations.ApiStatus;
/**
* This represents a Feature Flag for a World.
* <br>
* Flags which are unavailable in the current version will be null and/or
* removed.
*/
@ApiStatus.Experimental
public interface FeatureFlag extends Keyed {
@ -15,7 +18,13 @@ public interface FeatureFlag extends Keyed {
/**
* <strong>AVAILABLE BETWEEN VERSIONS:</strong> 1.19 - 1.19.4
*
* @deprecated not available since 1.20
*/
@Deprecated
@MinecraftExperimental
public static final FeatureFlag UPDATE_1_20 = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("update_1_20"));
@MinecraftExperimental
public static final FeatureFlag TRADE_REBALANCE = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("trade_rebalance"));
}