1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-18 11:22:15 +01:00

: Update FeatureFlag for 1.20.2

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2023-09-27 07:15:24 +10:00
parent 4a85b3985a
commit ac251a9ed9

View file

@ -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"));
}