#1082: Add "since" to Deprecation annotations

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2024-11-25 07:52:33 +11:00
parent 98f6ab9a04
commit 0023e5549a
257 changed files with 1523 additions and 1176 deletions

View File

@ -52,7 +52,7 @@ public interface BanEntry<T> {
* @return the target name or IP address * @return the target name or IP address
* @deprecated See {@link #getBanTarget()} * @deprecated See {@link #getBanTarget()}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
@NotNull @NotNull
public String getTarget(); public String getTarget();

View File

@ -23,7 +23,7 @@ public interface BanList<T> {
* *
* @deprecated deprecated in favor of {@link #PROFILE} * @deprecated deprecated in favor of {@link #PROFILE}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
NAME, NAME,
/** /**
* Banned IP addresses * Banned IP addresses
@ -43,7 +43,7 @@ public interface BanList<T> {
* @return the corresponding entry, or null if none found * @return the corresponding entry, or null if none found
* @deprecated see {@link #getBanEntry(Object)} * @deprecated see {@link #getBanEntry(Object)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
@Nullable @Nullable
public BanEntry<T> getBanEntry(@NotNull String target); public BanEntry<T> getBanEntry(@NotNull String target);
@ -69,7 +69,7 @@ public interface BanList<T> {
* (updated) previous ban * (updated) previous ban
* @deprecated see {@link #addBan(Object, String, Date, String)} * @deprecated see {@link #addBan(Object, String, Date, String)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
@Nullable @Nullable
public BanEntry<T> addBan(@NotNull String target, @Nullable String reason, @Nullable Date expires, @Nullable String source); public BanEntry<T> addBan(@NotNull String target, @Nullable String reason, @Nullable Date expires, @Nullable String source);
@ -124,7 +124,7 @@ public interface BanList<T> {
* @return an immutable set containing every entry tracked by this list * @return an immutable set containing every entry tracked by this list
* @deprecated This return a generic class, prefer use {@link #getEntries()} * @deprecated This return a generic class, prefer use {@link #getEntries()}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
@NotNull @NotNull
public Set<BanEntry> getBanEntries(); public Set<BanEntry> getBanEntries();
@ -155,7 +155,7 @@ public interface BanList<T> {
* active ban status, false otherwise * active ban status, false otherwise
* @deprecated see {@link #isBanned(Object)} * @deprecated see {@link #isBanned(Object)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public boolean isBanned(@NotNull String target); public boolean isBanned(@NotNull String target);
/** /**
@ -174,6 +174,6 @@ public interface BanList<T> {
* *
* @deprecated see {@link #pardon(Object)} * @deprecated see {@link #pardon(Object)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public void pardon(@NotNull String target); public void pardon(@NotNull String target);
} }

View File

@ -481,7 +481,7 @@ public final class Bukkit {
* @return the default ticks per animal spawns value * @return the default ticks per animal spawns value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getTicksPerAnimalSpawns() { public static int getTicksPerAnimalSpawns() {
return server.getTicksPerAnimalSpawns(); return server.getTicksPerAnimalSpawns();
} }
@ -506,7 +506,7 @@ public final class Bukkit {
* @return the default ticks per monsters spawn value * @return the default ticks per monsters spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getTicksPerMonsterSpawns() { public static int getTicksPerMonsterSpawns() {
return server.getTicksPerMonsterSpawns(); return server.getTicksPerMonsterSpawns();
} }
@ -530,7 +530,7 @@ public final class Bukkit {
* @return the default ticks per water mobs spawn value * @return the default ticks per water mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getTicksPerWaterSpawns() { public static int getTicksPerWaterSpawns() {
return server.getTicksPerWaterSpawns(); return server.getTicksPerWaterSpawns();
} }
@ -554,7 +554,7 @@ public final class Bukkit {
* @return the default ticks per ambient mobs spawn value * @return the default ticks per ambient mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getTicksPerAmbientSpawns() { public static int getTicksPerAmbientSpawns() {
return server.getTicksPerAmbientSpawns(); return server.getTicksPerAmbientSpawns();
} }
@ -578,7 +578,7 @@ public final class Bukkit {
* @return the default ticks per water ambient mobs spawn value * @return the default ticks per water ambient mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getTicksPerWaterAmbientSpawns() { public static int getTicksPerWaterAmbientSpawns() {
return server.getTicksPerAmbientSpawns(); return server.getTicksPerAmbientSpawns();
} }
@ -602,7 +602,7 @@ public final class Bukkit {
* @return the default ticks per water underground creature spawn value * @return the default ticks per water underground creature spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getTicksPerWaterUndergroundCreatureSpawns() { public static int getTicksPerWaterUndergroundCreatureSpawns() {
return server.getTicksPerWaterUndergroundCreatureSpawns(); return server.getTicksPerWaterUndergroundCreatureSpawns();
} }
@ -803,7 +803,7 @@ public final class Bukkit {
* @return a map view if it exists, or null otherwise * @return a map view if it exists, or null otherwise
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static MapView getMap(int id) { public static MapView getMap(int id) {
return server.getMap(id); return server.getMap(id);
@ -1158,7 +1158,7 @@ public final class Bukkit {
* @return true if the server should send a preview, false otherwise * @return true if the server should send a preview, false otherwise
* @deprecated chat previews have been removed * @deprecated chat previews have been removed
*/ */
@Deprecated @Deprecated(since = "1.19.3")
public static boolean shouldSendChatPreviews() { public static boolean shouldSendChatPreviews() {
return server.shouldSendChatPreviews(); return server.shouldSendChatPreviews();
} }
@ -1255,7 +1255,7 @@ public final class Bukkit {
* @deprecated Persistent storage of users should be by UUID as names are no longer * @deprecated Persistent storage of users should be by UUID as names are no longer
* unique past a single session. * unique past a single session.
*/ */
@Deprecated @Deprecated(since = "1.7.5")
@NotNull @NotNull
public static OfflinePlayer getOfflinePlayer(@NotNull String name) { public static OfflinePlayer getOfflinePlayer(@NotNull String name) {
return server.getOfflinePlayer(name); return server.getOfflinePlayer(name);
@ -1332,7 +1332,7 @@ public final class Bukkit {
* *
* @deprecated see {@link #banIP(InetAddress)} * @deprecated see {@link #banIP(InetAddress)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public static void banIP(@NotNull String address) { public static void banIP(@NotNull String address) {
server.banIP(address); server.banIP(address);
} }
@ -1344,7 +1344,7 @@ public final class Bukkit {
* *
* @deprecated see {@link #unbanIP(InetAddress)} * @deprecated see {@link #unbanIP(InetAddress)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public static void unbanIP(@NotNull String address) { public static void unbanIP(@NotNull String address) {
server.unbanIP(address); server.unbanIP(address);
} }
@ -1585,7 +1585,7 @@ public final class Bukkit {
* @return the monster spawn limit * @return the monster spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getMonsterSpawnLimit() { public static int getMonsterSpawnLimit() {
return server.getMonsterSpawnLimit(); return server.getMonsterSpawnLimit();
} }
@ -1597,7 +1597,7 @@ public final class Bukkit {
* @return the animal spawn limit * @return the animal spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getAnimalSpawnLimit() { public static int getAnimalSpawnLimit() {
return server.getAnimalSpawnLimit(); return server.getAnimalSpawnLimit();
} }
@ -1609,7 +1609,7 @@ public final class Bukkit {
* @return the water animal spawn limit * @return the water animal spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getWaterAnimalSpawnLimit() { public static int getWaterAnimalSpawnLimit() {
return server.getWaterAnimalSpawnLimit(); return server.getWaterAnimalSpawnLimit();
} }
@ -1621,7 +1621,7 @@ public final class Bukkit {
* @return the water ambient spawn limit * @return the water ambient spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getWaterAmbientSpawnLimit() { public static int getWaterAmbientSpawnLimit() {
return server.getAmbientSpawnLimit(); return server.getAmbientSpawnLimit();
} }
@ -1633,7 +1633,7 @@ public final class Bukkit {
* @return the water underground creature limit * @return the water underground creature limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getWaterUndergroundCreatureSpawnLimit() { public static int getWaterUndergroundCreatureSpawnLimit() {
return server.getWaterUndergroundCreatureSpawnLimit(); return server.getWaterUndergroundCreatureSpawnLimit();
} }
@ -1645,7 +1645,7 @@ public final class Bukkit {
* @return the ambient spawn limit * @return the ambient spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public static int getAmbientSpawnLimit() { public static int getAmbientSpawnLimit() {
return server.getAmbientSpawnLimit(); return server.getAmbientSpawnLimit();
} }
@ -2170,7 +2170,7 @@ public final class Bukkit {
* @return the unsafe values instance * @return the unsafe values instance
* @see UnsafeValues * @see UnsafeValues
*/ */
@Deprecated @Deprecated(since = "1.7.2")
@NotNull @NotNull
public static UnsafeValues getUnsafe() { public static UnsafeValues getUnsafe() {
return server.getUnsafe(); return server.getUnsafe();

View File

@ -65,7 +65,7 @@ public interface ChunkSnapshot {
* @return 0-15 * @return 0-15
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
int getData(int x, int y, int z); int getData(int x, int y, int z);
/** /**
@ -107,7 +107,7 @@ public interface ChunkSnapshot {
* @deprecated biomes are now 3-dimensional * @deprecated biomes are now 3-dimensional
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15")
Biome getBiome(int x, int z); Biome getBiome(int x, int z);
/** /**
@ -129,7 +129,7 @@ public interface ChunkSnapshot {
* @return temperature at given coordinate * @return temperature at given coordinate
* @deprecated biomes are now 3-dimensional * @deprecated biomes are now 3-dimensional
*/ */
@Deprecated @Deprecated(since = "1.15")
double getRawBiomeTemperature(int x, int z); double getRawBiomeTemperature(int x, int z);
/** /**

View File

@ -24,7 +24,7 @@ public enum CoalType {
* @return A byte containing the data value of this coal type * @return A byte containing the data value of this coal type
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getData() { public byte getData() {
return data; return data;
} }
@ -37,7 +37,7 @@ public enum CoalType {
* it doesn't exist * it doesn't exist
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static CoalType getByData(final byte data) { public static CoalType getByData(final byte data) {
return BY_DATA.get(data); return BY_DATA.get(data);

View File

@ -55,7 +55,7 @@ public enum CropState {
* @return A byte containing the data value of this growth state * @return A byte containing the data value of this growth state
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getData() { public byte getData() {
return data; return data;
} }
@ -68,7 +68,7 @@ public enum CropState {
* it doesn't exist * it doesn't exist
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static CropState getByData(final byte data) { public static CropState getByData(final byte data) {
return BY_DATA.get(data); return BY_DATA.get(data);

View File

@ -46,7 +46,7 @@ public enum Difficulty {
* @return An integer value of this difficulty * @return An integer value of this difficulty
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public int getValue() { public int getValue() {
return value; return value;
} }
@ -59,7 +59,7 @@ public enum Difficulty {
* it doesn't exist * it doesn't exist
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static Difficulty getByValue(final int value) { public static Difficulty getByValue(final int value) {
return BY_ID.get(value); return BY_ID.get(value);

View File

@ -98,7 +98,7 @@ public enum DyeColor {
* @see #getDyeData() * @see #getDyeData()
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getWoolData() { public byte getWoolData() {
return woolData; return woolData;
} }
@ -110,7 +110,7 @@ public enum DyeColor {
* @see #getWoolData() * @see #getWoolData()
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getDyeData() { public byte getDyeData() {
return dyeData; return dyeData;
} }
@ -144,7 +144,7 @@ public enum DyeColor {
* @see #getByDyeData(byte) * @see #getByDyeData(byte)
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static DyeColor getByWoolData(final byte data) { public static DyeColor getByWoolData(final byte data) {
int i = 0xff & data; int i = 0xff & data;
@ -163,7 +163,7 @@ public enum DyeColor {
* @see #getByWoolData(byte) * @see #getByWoolData(byte)
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static DyeColor getByDyeData(final byte data) { public static DyeColor getByDyeData(final byte data) {
int i = 0xff & data; int i = 0xff & data;
@ -204,7 +204,7 @@ public enum DyeColor {
* @return dye color * @return dye color
* @deprecated legacy use only * @deprecated legacy use only
*/ */
@Deprecated @Deprecated(since = "1.13")
@NotNull @NotNull
public static DyeColor legacyValueOf(@Nullable String name) { public static DyeColor legacyValueOf(@Nullable String name) {
return "SILVER".equals(name) ? DyeColor.LIGHT_GRAY : DyeColor.valueOf(name); return "SILVER".equals(name) ? DyeColor.LIGHT_GRAY : DyeColor.valueOf(name);

View File

@ -27,70 +27,70 @@ public enum Effect {
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_WOODEN_DOOR_OPEN * @see Sound#BLOCK_WOODEN_DOOR_OPEN
*/ */
@Deprecated @Deprecated(since = "1.19.3")
DOOR_TOGGLE(1006, Type.SOUND), DOOR_TOGGLE(1006, Type.SOUND),
/** /**
* Sound of a door opening. * Sound of a door opening.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_IRON_DOOR_OPEN * @see Sound#BLOCK_IRON_DOOR_OPEN
*/ */
@Deprecated @Deprecated(since = "1.19.3")
IRON_DOOR_TOGGLE(1005, Type.SOUND), IRON_DOOR_TOGGLE(1005, Type.SOUND),
/** /**
* Sound of a trapdoor opening. * Sound of a trapdoor opening.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_WOODEN_TRAPDOOR_OPEN * @see Sound#BLOCK_WOODEN_TRAPDOOR_OPEN
*/ */
@Deprecated @Deprecated(since = "1.19.3")
TRAPDOOR_TOGGLE(1007, Type.SOUND), TRAPDOOR_TOGGLE(1007, Type.SOUND),
/** /**
* Sound of a door opening. * Sound of a door opening.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_IRON_TRAPDOOR_OPEN * @see Sound#BLOCK_IRON_TRAPDOOR_OPEN
*/ */
@Deprecated @Deprecated(since = "1.19.3")
IRON_TRAPDOOR_TOGGLE(1037, Type.SOUND), IRON_TRAPDOOR_TOGGLE(1037, Type.SOUND),
/** /**
* Sound of a door opening. * Sound of a door opening.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_FENCE_GATE_OPEN * @see Sound#BLOCK_FENCE_GATE_OPEN
*/ */
@Deprecated @Deprecated(since = "1.19.3")
FENCE_GATE_TOGGLE(1008, Type.SOUND), FENCE_GATE_TOGGLE(1008, Type.SOUND),
/** /**
* Sound of a door closing. * Sound of a door closing.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_WOODEN_DOOR_CLOSE * @see Sound#BLOCK_WOODEN_DOOR_CLOSE
*/ */
@Deprecated @Deprecated(since = "1.19.3")
DOOR_CLOSE(1012, Type.SOUND), DOOR_CLOSE(1012, Type.SOUND),
/** /**
* Sound of a door closing. * Sound of a door closing.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_IRON_DOOR_CLOSE * @see Sound#BLOCK_IRON_DOOR_CLOSE
*/ */
@Deprecated @Deprecated(since = "1.19.3")
IRON_DOOR_CLOSE(1011, Type.SOUND), IRON_DOOR_CLOSE(1011, Type.SOUND),
/** /**
* Sound of a trapdoor closing. * Sound of a trapdoor closing.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_WOODEN_TRAPDOOR_CLOSE * @see Sound#BLOCK_WOODEN_TRAPDOOR_CLOSE
*/ */
@Deprecated @Deprecated(since = "1.19.3")
TRAPDOOR_CLOSE(1013, Type.SOUND), TRAPDOOR_CLOSE(1013, Type.SOUND),
/** /**
* Sound of a door closing. * Sound of a door closing.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_IRON_TRAPDOOR_CLOSE * @see Sound#BLOCK_IRON_TRAPDOOR_CLOSE
*/ */
@Deprecated @Deprecated(since = "1.19.3")
IRON_TRAPDOOR_CLOSE(1036, Type.SOUND), IRON_TRAPDOOR_CLOSE(1036, Type.SOUND),
/** /**
* Sound of a door closing. * Sound of a door closing.
* @deprecated no longer exists * @deprecated no longer exists
* @see Sound#BLOCK_FENCE_GATE_CLOSE * @see Sound#BLOCK_FENCE_GATE_CLOSE
*/ */
@Deprecated @Deprecated(since = "1.19.3")
FENCE_GATE_CLOSE(1014, Type.SOUND), FENCE_GATE_CLOSE(1014, Type.SOUND),
/** /**
* Sound of fire being extinguished. * Sound of fire being extinguished.
@ -359,7 +359,7 @@ public enum Effect {
* @return ID of this effect * @return ID of this effect
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public int getId() { public int getId() {
return this.id; return this.id;
} }
@ -388,7 +388,7 @@ public enum Effect {
* @return Effect with the given ID * @return Effect with the given ID
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static Effect getById(int id) { public static Effect getById(int id) {
return BY_ID.get(id); return BY_ID.get(id);

View File

@ -57,7 +57,7 @@ public enum EntityEffect {
* *
* @deprecated Use {@link LivingEntity#playHurtAnimation(float)} * @deprecated Use {@link LivingEntity#playHurtAnimation(float)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
HURT(2, LivingEntity.class), HURT(2, LivingEntity.class),
/** /**
* When a mob dies. * When a mob dies.
@ -69,7 +69,7 @@ public enum EntityEffect {
* @see #SNOWBALL_BREAK * @see #SNOWBALL_BREAK
* @see #ENTITY_DEATH * @see #ENTITY_DEATH
*/ */
@Deprecated @Deprecated(since = "1.12.2")
DEATH(3, Entity.class), DEATH(3, Entity.class),
/** /**
* Spawns the egg breaking particles * Spawns the egg breaking particles
@ -132,7 +132,7 @@ public enum EntityEffect {
* @see #SHEEP_EAT_GRASS * @see #SHEEP_EAT_GRASS
* @see #TNT_MINECART_IGNITE * @see #TNT_MINECART_IGNITE
*/ */
@Deprecated @Deprecated(since = "1.12.2")
SHEEP_EAT(10, Entity.class), SHEEP_EAT(10, Entity.class),
/** /**
* Plays the sheep eating grass animation * Plays the sheep eating grass animation
@ -347,7 +347,7 @@ public enum EntityEffect {
* @return The data value * @return The data value
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getData() { public byte getData() {
return data; return data;
} }

View File

@ -18,7 +18,7 @@ public interface FeatureFlag extends Keyed {
* *
* @deprecated not available since 1.21.2 * @deprecated not available since 1.21.2
*/ */
@Deprecated @Deprecated(since = "1.21.2")
public static final FeatureFlag BUNDLE = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("bundle")); public static final FeatureFlag BUNDLE = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("bundle"));
/** /**
@ -26,7 +26,7 @@ public interface FeatureFlag extends Keyed {
* *
* @deprecated not available since 1.20 * @deprecated not available since 1.20
*/ */
@Deprecated @Deprecated(since = "1.20.2")
public static final FeatureFlag UPDATE_1_20 = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("update_1_20")); public static final FeatureFlag UPDATE_1_20 = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("update_1_20"));
public static final FeatureFlag TRADE_REBALANCE = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("trade_rebalance")); public static final FeatureFlag TRADE_REBALANCE = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("trade_rebalance"));
@ -36,7 +36,7 @@ public interface FeatureFlag extends Keyed {
* *
* @deprecated not available since 1.21 * @deprecated not available since 1.21
*/ */
@Deprecated @Deprecated(since = "1.21")
public static final FeatureFlag UPDATE_121 = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("update_1_21")); public static final FeatureFlag UPDATE_121 = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("update_1_21"));
public static final FeatureFlag WINTER_DROP = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("winter_drop")); public static final FeatureFlag WINTER_DROP = Bukkit.getUnsafe().getFeatureFlag(NamespacedKey.minecraft("winter_drop"));

View File

@ -20,41 +20,41 @@ public abstract class GameEvent implements Keyed {
public static final GameEvent BLOCK_DETACH = getEvent("block_detach"); public static final GameEvent BLOCK_DETACH = getEvent("block_detach");
public static final GameEvent BLOCK_OPEN = getEvent("block_open"); public static final GameEvent BLOCK_OPEN = getEvent("block_open");
public static final GameEvent BLOCK_PLACE = getEvent("block_place"); public static final GameEvent BLOCK_PLACE = getEvent("block_place");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent BLOCK_PRESS = getEvent("block_activate"); public static final GameEvent BLOCK_PRESS = getEvent("block_activate");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent BLOCK_SWITCH = getEvent("block_activate"); public static final GameEvent BLOCK_SWITCH = getEvent("block_activate");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent BLOCK_UNPRESS = getEvent("block_deactivate"); public static final GameEvent BLOCK_UNPRESS = getEvent("block_deactivate");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent BLOCK_UNSWITCH = getEvent("block_deactivate"); public static final GameEvent BLOCK_UNSWITCH = getEvent("block_deactivate");
public static final GameEvent CONTAINER_CLOSE = getEvent("container_close"); public static final GameEvent CONTAINER_CLOSE = getEvent("container_close");
public static final GameEvent CONTAINER_OPEN = getEvent("container_open"); public static final GameEvent CONTAINER_OPEN = getEvent("container_open");
@Deprecated @Deprecated(since = "1.20")
public static final GameEvent DISPENSE_FAIL = getEvent("block_activate"); public static final GameEvent DISPENSE_FAIL = getEvent("block_activate");
public static final GameEvent DRINK = getEvent("drink"); public static final GameEvent DRINK = getEvent("drink");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent DRINKING_FINISH = getEvent("drink"); public static final GameEvent DRINKING_FINISH = getEvent("drink");
public static final GameEvent EAT = getEvent("eat"); public static final GameEvent EAT = getEvent("eat");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent ELYTRA_FREE_FALL = getEvent("elytra_glide"); public static final GameEvent ELYTRA_FREE_FALL = getEvent("elytra_glide");
public static final GameEvent ELYTRA_GLIDE = getEvent("elytra_glide"); public static final GameEvent ELYTRA_GLIDE = getEvent("elytra_glide");
public static final GameEvent ENTITY_DAMAGE = getEvent("entity_damage"); public static final GameEvent ENTITY_DAMAGE = getEvent("entity_damage");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent ENTITY_DAMAGED = getEvent("entity_damage"); public static final GameEvent ENTITY_DAMAGED = getEvent("entity_damage");
public static final GameEvent ENTITY_DIE = getEvent("entity_die"); public static final GameEvent ENTITY_DIE = getEvent("entity_die");
public static final GameEvent ENTITY_DISMOUNT = getEvent("entity_dismount"); public static final GameEvent ENTITY_DISMOUNT = getEvent("entity_dismount");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent ENTITY_DYING = getEvent("entity_die"); public static final GameEvent ENTITY_DYING = getEvent("entity_die");
public static final GameEvent ENTITY_INTERACT = getEvent("entity_interact"); public static final GameEvent ENTITY_INTERACT = getEvent("entity_interact");
public static final GameEvent ENTITY_MOUNT = getEvent("entity_mount"); public static final GameEvent ENTITY_MOUNT = getEvent("entity_mount");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent ENTITY_KILLED = getEvent("entity_die"); public static final GameEvent ENTITY_KILLED = getEvent("entity_die");
public static final GameEvent ENTITY_PLACE = getEvent("entity_place"); public static final GameEvent ENTITY_PLACE = getEvent("entity_place");
public static final GameEvent ENTITY_ACTION = getEvent("entity_action"); public static final GameEvent ENTITY_ACTION = getEvent("entity_action");
@Deprecated @Deprecated(since = "1.20.2")
public static final GameEvent ENTITY_ROAR = getEvent("entity_action"); public static final GameEvent ENTITY_ROAR = getEvent("entity_action");
@Deprecated @Deprecated(since = "1.20.2")
public static final GameEvent ENTITY_SHAKE = getEvent("entity_action"); public static final GameEvent ENTITY_SHAKE = getEvent("entity_action");
public static final GameEvent EQUIP = getEvent("equip"); public static final GameEvent EQUIP = getEvent("equip");
public static final GameEvent EXPLODE = getEvent("explode"); public static final GameEvent EXPLODE = getEvent("explode");
@ -68,33 +68,33 @@ public abstract class GameEvent implements Keyed {
public static final GameEvent JUKEBOX_PLAY = getEvent("jukebox_play"); public static final GameEvent JUKEBOX_PLAY = getEvent("jukebox_play");
public static final GameEvent JUKEBOX_STOP_PLAY = getEvent("jukebox_stop_play"); public static final GameEvent JUKEBOX_STOP_PLAY = getEvent("jukebox_stop_play");
public static final GameEvent LIGHTNING_STRIKE = getEvent("lightning_strike"); public static final GameEvent LIGHTNING_STRIKE = getEvent("lightning_strike");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent MOB_INTERACT = getEvent("entity_interact"); public static final GameEvent MOB_INTERACT = getEvent("entity_interact");
public static final GameEvent NOTE_BLOCK_PLAY = getEvent("note_block_play"); public static final GameEvent NOTE_BLOCK_PLAY = getEvent("note_block_play");
@Deprecated @Deprecated(since = "1.20")
public static final GameEvent PISTON_CONTRACT = getEvent("block_deactivate"); public static final GameEvent PISTON_CONTRACT = getEvent("block_deactivate");
@Deprecated @Deprecated(since = "1.20")
public static final GameEvent PISTON_EXTEND = getEvent("block_activate"); public static final GameEvent PISTON_EXTEND = getEvent("block_activate");
public static final GameEvent PRIME_FUSE = getEvent("prime_fuse"); public static final GameEvent PRIME_FUSE = getEvent("prime_fuse");
public static final GameEvent PROJECTILE_LAND = getEvent("projectile_land"); public static final GameEvent PROJECTILE_LAND = getEvent("projectile_land");
public static final GameEvent PROJECTILE_SHOOT = getEvent("projectile_shoot"); public static final GameEvent PROJECTILE_SHOOT = getEvent("projectile_shoot");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent RAVAGER_ROAR = getEvent("entity_action"); public static final GameEvent RAVAGER_ROAR = getEvent("entity_action");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent RING_BELL = getEvent("block_change"); public static final GameEvent RING_BELL = getEvent("block_change");
public static final GameEvent SCULK_SENSOR_TENDRILS_CLICKING = getEvent("sculk_sensor_tendrils_clicking"); public static final GameEvent SCULK_SENSOR_TENDRILS_CLICKING = getEvent("sculk_sensor_tendrils_clicking");
public static final GameEvent SHEAR = getEvent("shear"); public static final GameEvent SHEAR = getEvent("shear");
public static final GameEvent SHRIEK = getEvent("shriek"); public static final GameEvent SHRIEK = getEvent("shriek");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent SHULKER_CLOSE = getEvent("container_close"); public static final GameEvent SHULKER_CLOSE = getEvent("container_close");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent SHULKER_OPEN = getEvent("container_open"); public static final GameEvent SHULKER_OPEN = getEvent("container_open");
public static final GameEvent SPLASH = getEvent("splash"); public static final GameEvent SPLASH = getEvent("splash");
public static final GameEvent STEP = getEvent("step"); public static final GameEvent STEP = getEvent("step");
public static final GameEvent SWIM = getEvent("swim"); public static final GameEvent SWIM = getEvent("swim");
public static final GameEvent TELEPORT = getEvent("teleport"); public static final GameEvent TELEPORT = getEvent("teleport");
public static final GameEvent UNEQUIP = getEvent("unequip"); public static final GameEvent UNEQUIP = getEvent("unequip");
@Deprecated @Deprecated(since = "1.19")
public static final GameEvent WOLF_SHAKING = getEvent("entity_action"); public static final GameEvent WOLF_SHAKING = getEvent("entity_action");
public static final GameEvent RESONATE_1 = getEvent("resonate_1"); public static final GameEvent RESONATE_1 = getEvent("resonate_1");
public static final GameEvent RESONATE_2 = getEvent("resonate_2"); public static final GameEvent RESONATE_2 = getEvent("resonate_2");
@ -120,7 +120,7 @@ public abstract class GameEvent implements Keyed {
* @deprecated Use {@link Registry#get(NamespacedKey)} instead. * @deprecated Use {@link Registry#get(NamespacedKey)} instead.
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.1")
public static GameEvent getByKey(@NotNull NamespacedKey namespacedKey) { public static GameEvent getByKey(@NotNull NamespacedKey namespacedKey) {
return Registry.GAME_EVENT.get(namespacedKey); return Registry.GAME_EVENT.get(namespacedKey);
} }
@ -132,7 +132,7 @@ public abstract class GameEvent implements Keyed {
* @deprecated use {@link Registry#iterator()}. * @deprecated use {@link Registry#iterator()}.
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.20.1")
public static Collection<GameEvent> values() { public static Collection<GameEvent> values() {
return Collections.unmodifiableCollection(Lists.newArrayList(Registry.GAME_EVENT)); return Collections.unmodifiableCollection(Lists.newArrayList(Registry.GAME_EVENT));
} }

View File

@ -46,7 +46,7 @@ public enum GameMode {
* @return An integer value of this gamemode * @return An integer value of this gamemode
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public int getValue() { public int getValue() {
return value; return value;
} }
@ -59,7 +59,7 @@ public enum GameMode {
* it doesn't exist * it doesn't exist
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static GameMode getByValue(final int value) { public static GameMode getByValue(final int value) {
return BY_ID.get(value); return BY_ID.get(value);

View File

@ -35,7 +35,7 @@ public enum GrassSpecies {
* @return A byte containing the data value of this grass species * @return A byte containing the data value of this grass species
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getData() { public byte getData() {
return data; return data;
} }
@ -48,7 +48,7 @@ public enum GrassSpecies {
* if it doesn't exist * if it doesn't exist
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static GrassSpecies getByData(final byte data) { public static GrassSpecies getByData(final byte data) {
return BY_DATA.get(data); return BY_DATA.get(data);

View File

@ -132,7 +132,7 @@ public enum Instrument {
* @return The type ID of this instrument. * @return The type ID of this instrument.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getType() { public byte getType() {
return this.type; return this.type;
} }
@ -144,7 +144,7 @@ public enum Instrument {
* @return The instrument * @return The instrument
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static Instrument getByType(final byte type) { public static Instrument getByType(final byte type) {
return BY_DATA.get(type); return BY_DATA.get(type);

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ public abstract class MusicInstrument implements Keyed {
* @deprecated Use {@link Registry#get(NamespacedKey)} instead. * @deprecated Use {@link Registry#get(NamespacedKey)} instead.
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.1")
public static MusicInstrument getByKey(@NotNull NamespacedKey namespacedKey) { public static MusicInstrument getByKey(@NotNull NamespacedKey namespacedKey) {
return Registry.INSTRUMENT.get(namespacedKey); return Registry.INSTRUMENT.get(namespacedKey);
} }
@ -37,7 +37,7 @@ public abstract class MusicInstrument implements Keyed {
* @deprecated use {@link Registry#iterator()}. * @deprecated use {@link Registry#iterator()}.
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.20.1")
public static Collection<MusicInstrument> values() { public static Collection<MusicInstrument> values() {
return Collections.unmodifiableCollection(Lists.newArrayList(Registry.INSTRUMENT)); return Collections.unmodifiableCollection(Lists.newArrayList(Registry.INSTRUMENT));
} }

View File

@ -161,7 +161,7 @@ public final class NamespacedKey {
*/ */
@ApiStatus.Internal @ApiStatus.Internal
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.20.5")
public static NamespacedKey randomKey() { public static NamespacedKey randomKey() {
return new NamespacedKey(BUKKIT, UUID.randomUUID().toString()); return new NamespacedKey(BUKKIT, UUID.randomUUID().toString());
} }

View File

@ -41,7 +41,7 @@ public class Note {
* @return the not sharped id of this tone. * @return the not sharped id of this tone.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getId() { public byte getId() {
return getId(false); return getId(false);
} }
@ -55,7 +55,7 @@ public class Note {
* @return the id of this tone. * @return the id of this tone.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getId(boolean sharped) { public byte getId(boolean sharped) {
byte id = (byte) (sharped && sharpable ? this.id + 1 : this.id); byte id = (byte) (sharped && sharpable ? this.id + 1 : this.id);
@ -80,7 +80,7 @@ public class Note {
* semitone have the id. * semitone have the id.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public boolean isSharped(byte id) { public boolean isSharped(byte id) {
if (id == getId(false)) { if (id == getId(false)) {
return false; return false;
@ -99,7 +99,7 @@ public class Note {
* @return the tone to id. * @return the tone to id.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static Tone getById(byte id) { public static Tone getById(byte id) {
return BY_DATA.get(id); return BY_DATA.get(id);
@ -224,7 +224,7 @@ public class Note {
* @return the internal id of this note. * @return the internal id of this note.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getId() { public byte getId() {
return note; return note;
} }

View File

@ -177,7 +177,7 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
* respawn anchors. * respawn anchors.
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.4")
public Location getBedSpawnLocation(); public Location getBedSpawnLocation();
/** /**

View File

@ -25,7 +25,7 @@ public enum SandstoneType {
* @return A byte containing the data value of this sandstone type * @return A byte containing the data value of this sandstone type
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getData() { public byte getData() {
return data; return data;
} }
@ -38,7 +38,7 @@ public enum SandstoneType {
* if it doesn't exist * if it doesn't exist
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static SandstoneType getByData(final byte data) { public static SandstoneType getByData(final byte data) {
return BY_DATA.get(data); return BY_DATA.get(data);

View File

@ -406,7 +406,7 @@ public interface Server extends PluginMessageRecipient {
* @return the default ticks per animal spawns value * @return the default ticks per animal spawns value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public int getTicksPerAnimalSpawns(); public int getTicksPerAnimalSpawns();
/** /**
@ -429,7 +429,7 @@ public interface Server extends PluginMessageRecipient {
* @return the default ticks per monsters spawn value * @return the default ticks per monsters spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public int getTicksPerMonsterSpawns(); public int getTicksPerMonsterSpawns();
/** /**
@ -451,7 +451,7 @@ public interface Server extends PluginMessageRecipient {
* @return the default ticks per water mobs spawn value * @return the default ticks per water mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public int getTicksPerWaterSpawns(); public int getTicksPerWaterSpawns();
/** /**
@ -473,7 +473,7 @@ public interface Server extends PluginMessageRecipient {
* @return the default ticks per water ambient mobs spawn value * @return the default ticks per water ambient mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public int getTicksPerWaterAmbientSpawns(); public int getTicksPerWaterAmbientSpawns();
/** /**
@ -495,7 +495,7 @@ public interface Server extends PluginMessageRecipient {
* @return the default ticks per water underground creature spawn value * @return the default ticks per water underground creature spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public int getTicksPerWaterUndergroundCreatureSpawns(); public int getTicksPerWaterUndergroundCreatureSpawns();
/** /**
@ -517,7 +517,7 @@ public interface Server extends PluginMessageRecipient {
* @return the default ticks per ambient mobs spawn value * @return the default ticks per ambient mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public int getTicksPerAmbientSpawns(); public int getTicksPerAmbientSpawns();
/** /**
@ -689,7 +689,7 @@ public interface Server extends PluginMessageRecipient {
* @return a map view if it exists, or null otherwise * @return a map view if it exists, or null otherwise
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public MapView getMap(int id); public MapView getMap(int id);
@ -993,7 +993,7 @@ public interface Server extends PluginMessageRecipient {
* @return true if the server should send a preview, false otherwise * @return true if the server should send a preview, false otherwise
* @deprecated chat previews have been removed * @deprecated chat previews have been removed
*/ */
@Deprecated @Deprecated(since = "1.19.3")
public boolean shouldSendChatPreviews(); public boolean shouldSendChatPreviews();
/** /**
@ -1072,7 +1072,7 @@ public interface Server extends PluginMessageRecipient {
* @deprecated Persistent storage of users should be by UUID as names are no longer * @deprecated Persistent storage of users should be by UUID as names are no longer
* unique past a single session. * unique past a single session.
*/ */
@Deprecated @Deprecated(since = "1.7.5")
@NotNull @NotNull
public OfflinePlayer getOfflinePlayer(@NotNull String name); public OfflinePlayer getOfflinePlayer(@NotNull String name);
@ -1137,7 +1137,7 @@ public interface Server extends PluginMessageRecipient {
* *
* @deprecated see {@link #banIP(InetAddress)} * @deprecated see {@link #banIP(InetAddress)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public void banIP(@NotNull String address); public void banIP(@NotNull String address);
/** /**
@ -1147,7 +1147,7 @@ public interface Server extends PluginMessageRecipient {
* *
* @deprecated see {@link #unbanIP(InetAddress)} * @deprecated see {@link #unbanIP(InetAddress)}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public void unbanIP(@NotNull String address); public void unbanIP(@NotNull String address);
/** /**
@ -1350,7 +1350,7 @@ public interface Server extends PluginMessageRecipient {
* @return the monster spawn limit * @return the monster spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getMonsterSpawnLimit(); int getMonsterSpawnLimit();
/** /**
@ -1360,7 +1360,7 @@ public interface Server extends PluginMessageRecipient {
* @return the animal spawn limit * @return the animal spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getAnimalSpawnLimit(); int getAnimalSpawnLimit();
/** /**
@ -1370,7 +1370,7 @@ public interface Server extends PluginMessageRecipient {
* @return the water animal spawn limit * @return the water animal spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getWaterAnimalSpawnLimit(); int getWaterAnimalSpawnLimit();
/** /**
@ -1380,7 +1380,7 @@ public interface Server extends PluginMessageRecipient {
* @return the water ambient spawn limit * @return the water ambient spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getWaterAmbientSpawnLimit(); int getWaterAmbientSpawnLimit();
/** /**
@ -1389,7 +1389,7 @@ public interface Server extends PluginMessageRecipient {
* @return the water underground creature limit * @return the water underground creature limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getWaterUndergroundCreatureSpawnLimit(); int getWaterUndergroundCreatureSpawnLimit();
/** /**
@ -1399,7 +1399,7 @@ public interface Server extends PluginMessageRecipient {
* @return the ambient spawn limit * @return the ambient spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getAmbientSpawnLimit(); int getAmbientSpawnLimit();
/** /**
@ -1849,7 +1849,7 @@ public interface Server extends PluginMessageRecipient {
* @return the unsafe values instance * @return the unsafe values instance
* @see UnsafeValues * @see UnsafeValues
*/ */
@Deprecated @Deprecated(since = "1.7.2")
@NotNull @NotNull
UnsafeValues getUnsafe(); UnsafeValues getUnsafe();
} }

View File

@ -4,7 +4,7 @@ package org.bukkit;
* Represents the different types of skulls. * Represents the different types of skulls.
* @deprecated check {@link Material} instead * @deprecated check {@link Material} instead
*/ */
@Deprecated @Deprecated(since = "1.13")
public enum SkullType { public enum SkullType {
SKELETON, SKELETON,
WITHER, WITHER,

View File

@ -23,7 +23,7 @@ import org.jetbrains.annotations.Nullable;
* {@link org.bukkit.generator.structure.StructureType} instead. * {@link org.bukkit.generator.structure.StructureType} instead.
*/ */
// Order is retrieved from WorldGenFactory // Order is retrieved from WorldGenFactory
@Deprecated @Deprecated(since = "1.19")
public final class StructureType implements Keyed { public final class StructureType implements Keyed {
private static final Map<String, StructureType> structureTypeMap = new HashMap<>(); private static final Map<String, StructureType> structureTypeMap = new HashMap<>();

View File

@ -52,7 +52,7 @@ public interface Tag<T extends Keyed> extends Keyed {
/** /**
* @deprecated {@link #WOOL_CARPETS}. * @deprecated {@link #WOOL_CARPETS}.
*/ */
@Deprecated @Deprecated(since = "1.19")
Tag<Material> CARPETS = WOOL_CARPETS; Tag<Material> CARPETS = WOOL_CARPETS;
/** /**
* Vanilla block tag representing all wooden doors. * Vanilla block tag representing all wooden doors.
@ -828,7 +828,7 @@ public interface Tag<T extends Keyed> extends Keyed {
* *
* @deprecated use {@link #ITEMS_PIGLIN_FOOD} * @deprecated use {@link #ITEMS_PIGLIN_FOOD}
*/ */
@Deprecated @Deprecated(since = "1.20.5")
Tag<Material> PIGLIN_FOOD = ITEMS_PIGLIN_FOOD; Tag<Material> PIGLIN_FOOD = ITEMS_PIGLIN_FOOD;
/** /**
* Vanilla item tag representing all fox food. * Vanilla item tag representing all fox food.
@ -839,7 +839,7 @@ public interface Tag<T extends Keyed> extends Keyed {
* *
* @deprecated use {@link #ITEMS_FOX_FOOD} * @deprecated use {@link #ITEMS_FOX_FOOD}
*/ */
@Deprecated @Deprecated(since = "1.20.5")
Tag<Material> FOX_FOOD = ITEMS_FOX_FOOD; Tag<Material> FOX_FOOD = ITEMS_FOX_FOOD;
/** /**
* Vanilla item tag representing all cow food. * Vanilla item tag representing all cow food.
@ -1137,7 +1137,7 @@ public interface Tag<T extends Keyed> extends Keyed {
* this constant now acts as a reference to {@link #ITEMS_BREAKS_DECORATED_POTS} which largely shares * this constant now acts as a reference to {@link #ITEMS_BREAKS_DECORATED_POTS} which largely shares
* the same contents of the old "minecraft:tools" tag. * the same contents of the old "minecraft:tools" tag.
*/ */
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.6", forRemoval = true)
Tag<Material> ITEMS_TOOLS = ITEMS_BREAKS_DECORATED_POTS; Tag<Material> ITEMS_TOOLS = ITEMS_BREAKS_DECORATED_POTS;
/** /**
* Vanilla item tag representing all seeds plantable by villagers. * Vanilla item tag representing all seeds plantable by villagers.
@ -1253,7 +1253,7 @@ public interface Tag<T extends Keyed> extends Keyed {
* *
* @deprecated use {@link #ITEMS_AXOLOTL_FOOD} * @deprecated use {@link #ITEMS_AXOLOTL_FOOD}
*/ */
@Deprecated @Deprecated(since = "1.20.5")
Tag<Material> AXOLOTL_TEMPT_ITEMS = ITEMS_AXOLOTL_FOOD; Tag<Material> AXOLOTL_TEMPT_ITEMS = ITEMS_AXOLOTL_FOOD;
/** /**
* Vanilla item tag representing all items which are preferred for * Vanilla item tag representing all items which are preferred for
@ -1340,7 +1340,7 @@ public interface Tag<T extends Keyed> extends Keyed {
* Vanilla tag representing entities which deflect arrows. * Vanilla tag representing entities which deflect arrows.
* @deprecated use {@link #ENTITY_TYPES_DEFLECTS_PROJECTILES} * @deprecated use {@link #ENTITY_TYPES_DEFLECTS_PROJECTILES}
*/ */
@Deprecated @Deprecated(since = "1.20.5")
Tag<EntityType> ENTITY_TYPES_DEFLECTS_ARROWS = ENTITY_TYPES_DEFLECTS_PROJECTILES; Tag<EntityType> ENTITY_TYPES_DEFLECTS_ARROWS = ENTITY_TYPES_DEFLECTS_PROJECTILES;
/** /**
* Vanilla tag representing entities which can turn in boats. * Vanilla tag representing entities which can turn in boats.

View File

@ -9,7 +9,7 @@ import org.jetbrains.annotations.Nullable;
* *
* @deprecated Deprecated, see usage methods for replacement(s) * @deprecated Deprecated, see usage methods for replacement(s)
*/ */
@Deprecated @Deprecated(since = "1.19")
public enum TreeSpecies { public enum TreeSpecies {
/** /**
@ -51,7 +51,7 @@ public enum TreeSpecies {
* @return A byte containing the data value of this tree species * @return A byte containing the data value of this tree species
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getData() { public byte getData() {
return data; return data;
} }
@ -64,7 +64,7 @@ public enum TreeSpecies {
* if it doesn't exist * if it doesn't exist
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static TreeSpecies getByData(final byte data) { public static TreeSpecies getByData(final byte data) {
return BY_DATA.get(data); return BY_DATA.get(data);

View File

@ -15,7 +15,7 @@ import org.jetbrains.annotations.ApiStatus;
*/ */
@Retention(RetentionPolicy.CLASS) @Retention(RetentionPolicy.CLASS)
@ApiStatus.Internal @ApiStatus.Internal
@Deprecated @Deprecated(since = "1.13.2")
public @interface UndefinedNullability { public @interface UndefinedNullability {
/** /**

View File

@ -29,7 +29,7 @@ import org.jetbrains.annotations.Nullable;
* may be poorly named, throw exceptions, have misleading parameters, or any * may be poorly named, throw exceptions, have misleading parameters, or any
* other bad programming practice. * other bad programming practice.
*/ */
@Deprecated @Deprecated(since = "1.7.2")
public interface UnsafeValues { public interface UnsafeValues {
Material toLegacy(Material material); Material toLegacy(Material material);

View File

@ -209,7 +209,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* As of the current Minecraft version chunks are now strictly managed and * As of the current Minecraft version chunks are now strictly managed and
* will not be loaded for more than 1 tick unless they are in use. * will not be loaded for more than 1 tick unless they are in use.
*/ */
@Deprecated @Deprecated(since = "1.14")
public boolean isChunkInUse(int x, int z); public boolean isChunkInUse(int x, int z);
/** /**
@ -299,7 +299,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* chunk as before as terrain decoration may be spread across chunks. Use of * chunk as before as terrain decoration may be spread across chunks. Use of
* this method should be avoided as it is known to produce buggy results. * this method should be avoided as it is known to produce buggy results.
*/ */
@Deprecated @Deprecated(since = "1.13")
public boolean regenerateChunk(int x, int z); public boolean regenerateChunk(int x, int z);
/** /**
@ -311,7 +311,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* *
* @deprecated This method is not guaranteed to work suitably across all client implementations. * @deprecated This method is not guaranteed to work suitably across all client implementations.
*/ */
@Deprecated @Deprecated(since = "1.8")
public boolean refreshChunk(int x, int z); public boolean refreshChunk(int x, int z);
/** /**
@ -563,7 +563,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @see #generateTree(org.bukkit.Location, java.util.Random, org.bukkit.TreeType, java.util.function.Consumer) * @see #generateTree(org.bukkit.Location, java.util.Random, org.bukkit.TreeType, java.util.function.Consumer)
* @deprecated this method does not handle tile entities (bee nests) * @deprecated this method does not handle tile entities (bee nests)
*/ */
@Deprecated @Deprecated(since = "1.17.1")
public boolean generateTree(@NotNull Location loc, @NotNull TreeType type, @NotNull BlockChangeDelegate delegate); public boolean generateTree(@NotNull Location loc, @NotNull TreeType type, @NotNull BlockChangeDelegate delegate);
/** /**
@ -609,7 +609,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return A List of all Entities currently residing in this world that * @return A List of all Entities currently residing in this world that
* match the given class/interface * match the given class/interface
*/ */
@Deprecated @Deprecated(since = "1.1")
@NotNull @NotNull
public <T extends Entity> Collection<T> getEntitiesByClass(@NotNull Class<T>... classes); public <T extends Entity> Collection<T> getEntitiesByClass(@NotNull Class<T>... classes);
@ -1314,7 +1314,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* Material} are null or {@link Material} is not a block * Material} are null or {@link Material} is not a block
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.7.5")
@NotNull @NotNull
public FallingBlock spawnFallingBlock(@NotNull Location location, @NotNull Material material, byte data) throws IllegalArgumentException; public FallingBlock spawnFallingBlock(@NotNull Location location, @NotNull Material material, byte data) throws IllegalArgumentException;
@ -1413,7 +1413,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @deprecated biomes are now 3-dimensional * @deprecated biomes are now 3-dimensional
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15")
Biome getBiome(int x, int z); Biome getBiome(int x, int z);
/** /**
@ -1424,7 +1424,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @param bio new Biome type for this block * @param bio new Biome type for this block
* @deprecated biomes are now 3-dimensional * @deprecated biomes are now 3-dimensional
*/ */
@Deprecated @Deprecated(since = "1.15")
void setBiome(int x, int z, @NotNull Biome bio); void setBiome(int x, int z, @NotNull Biome bio);
/** /**
@ -1441,7 +1441,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return Temperature of the requested block * @return Temperature of the requested block
* @deprecated biomes are now 3-dimensional * @deprecated biomes are now 3-dimensional
*/ */
@Deprecated @Deprecated(since = "1.15")
public double getTemperature(int x, int z); public double getTemperature(int x, int z);
/** /**
@ -1471,7 +1471,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return Humidity of the requested block * @return Humidity of the requested block
* @deprecated biomes are now 3-dimensional * @deprecated biomes are now 3-dimensional
*/ */
@Deprecated @Deprecated(since = "1.15")
public double getHumidity(int x, int z); public double getHumidity(int x, int z);
/** /**
@ -1585,7 +1585,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return true if the world's spawn area will be kept loaded into memory. * @return true if the world's spawn area will be kept loaded into memory.
* @deprecated use {@link GameRule#SPAWN_CHUNK_RADIUS} for finer control * @deprecated use {@link GameRule#SPAWN_CHUNK_RADIUS} for finer control
*/ */
@Deprecated @Deprecated(since = "1.20.5")
public boolean getKeepSpawnInMemory(); public boolean getKeepSpawnInMemory();
/** /**
@ -1596,7 +1596,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* loaded into memory. * loaded into memory.
* @deprecated use {@link GameRule#SPAWN_CHUNK_RADIUS} for finer control * @deprecated use {@link GameRule#SPAWN_CHUNK_RADIUS} for finer control
*/ */
@Deprecated @Deprecated(since = "1.20.5")
public void setKeepSpawnInMemory(boolean keepLoaded); public void setKeepSpawnInMemory(boolean keepLoaded);
/** /**
@ -1660,7 +1660,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* this method to always return the correct value. * this method to always return the correct value.
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.16.1")
public WorldType getWorldType(); public WorldType getWorldType();
/** /**
@ -1713,7 +1713,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The world's ticks per animal spawns value * @return The world's ticks per animal spawns value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public long getTicksPerAnimalSpawns(); public long getTicksPerAnimalSpawns();
/** /**
@ -1742,7 +1742,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* to set the world to * to set the world to
* @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public void setTicksPerAnimalSpawns(int ticksPerAnimalSpawns); public void setTicksPerAnimalSpawns(int ticksPerAnimalSpawns);
/** /**
@ -1770,7 +1770,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The world's ticks per monster spawns value * @return The world's ticks per monster spawns value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public long getTicksPerMonsterSpawns(); public long getTicksPerMonsterSpawns();
/** /**
@ -1799,7 +1799,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* want to set the world to * want to set the world to
* @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns); public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns);
/** /**
@ -1825,7 +1825,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The world's ticks per water mob spawns value * @return The world's ticks per water mob spawns value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public long getTicksPerWaterSpawns(); public long getTicksPerWaterSpawns();
/** /**
@ -1852,7 +1852,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* want to set the world to * want to set the world to
* @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public void setTicksPerWaterSpawns(int ticksPerWaterSpawns); public void setTicksPerWaterSpawns(int ticksPerWaterSpawns);
/** /**
@ -1874,7 +1874,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return the default ticks per water ambient mobs spawn value * @return the default ticks per water ambient mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public long getTicksPerWaterAmbientSpawns(); public long getTicksPerWaterAmbientSpawns();
/** /**
@ -1901,7 +1901,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* want to set the world to * want to set the world to
* @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public void setTicksPerWaterAmbientSpawns(int ticksPerAmbientSpawns); public void setTicksPerWaterAmbientSpawns(int ticksPerAmbientSpawns);
/** /**
@ -1923,7 +1923,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return the default ticks per water underground creature spawn value * @return the default ticks per water underground creature spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public long getTicksPerWaterUndergroundCreatureSpawns(); public long getTicksPerWaterUndergroundCreatureSpawns();
/** /**
@ -1950,7 +1950,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* want to set the world to * want to set the world to
* @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public void setTicksPerWaterUndergroundCreatureSpawns(int ticksPerWaterUndergroundCreatureSpawns); public void setTicksPerWaterUndergroundCreatureSpawns(int ticksPerWaterUndergroundCreatureSpawns);
/** /**
@ -1976,7 +1976,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return the default ticks per ambient mobs spawn value * @return the default ticks per ambient mobs spawn value
* @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getTicksPerSpawns(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public long getTicksPerAmbientSpawns(); public long getTicksPerAmbientSpawns();
/** /**
@ -2003,7 +2003,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* want to set the world to * want to set the world to
* @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setTicksPerSpawns(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public void setTicksPerAmbientSpawns(int ticksPerAmbientSpawns); public void setTicksPerAmbientSpawns(int ticksPerAmbientSpawns);
/** /**
@ -2064,7 +2064,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The monster spawn limit * @return The monster spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getMonsterSpawnLimit(); int getMonsterSpawnLimit();
/** /**
@ -2077,7 +2077,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @param limit the new mob limit * @param limit the new mob limit
* @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
void setMonsterSpawnLimit(int limit); void setMonsterSpawnLimit(int limit);
/** /**
@ -2087,7 +2087,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The animal spawn limit * @return The animal spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getAnimalSpawnLimit(); int getAnimalSpawnLimit();
/** /**
@ -2100,7 +2100,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @param limit the new mob limit * @param limit the new mob limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
void setAnimalSpawnLimit(int limit); void setAnimalSpawnLimit(int limit);
/** /**
@ -2110,7 +2110,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The water animal spawn limit * @return The water animal spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getWaterAnimalSpawnLimit(); int getWaterAnimalSpawnLimit();
/** /**
@ -2123,7 +2123,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @param limit the new mob limit * @param limit the new mob limit
* @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
void setWaterAnimalSpawnLimit(int limit); void setWaterAnimalSpawnLimit(int limit);
/** /**
@ -2133,7 +2133,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The water underground creature spawn limit * @return The water underground creature spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getWaterUndergroundCreatureSpawnLimit(); int getWaterUndergroundCreatureSpawnLimit();
/** /**
@ -2146,7 +2146,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @param limit the new mob limit * @param limit the new mob limit
* @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
void setWaterUndergroundCreatureSpawnLimit(int limit); void setWaterUndergroundCreatureSpawnLimit(int limit);
/** /**
@ -2156,7 +2156,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return the water ambient spawn limit * @return the water ambient spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getWaterAmbientSpawnLimit(); int getWaterAmbientSpawnLimit();
/** /**
@ -2169,7 +2169,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @param limit the new mob limit * @param limit the new mob limit
* @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
void setWaterAmbientSpawnLimit(int limit); void setWaterAmbientSpawnLimit(int limit);
/** /**
@ -2179,7 +2179,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The ambient spawn limit * @return The ambient spawn limit
* @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)} * @deprecated Deprecated in favor of {@link #getSpawnLimit(SpawnCategory)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
int getAmbientSpawnLimit(); int getAmbientSpawnLimit();
/** /**
@ -2192,7 +2192,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @param limit the new mob limit * @param limit the new mob limit
* @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)} * @deprecated Deprecated in favor of {@link #setSpawnLimit(SpawnCategory, int)}
*/ */
@Deprecated @Deprecated(since = "1.18.1")
void setAmbientSpawnLimit(int limit); void setAmbientSpawnLimit(int limit);
/** /**
@ -2413,7 +2413,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return String value of rule * @return String value of rule
* @deprecated use {@link #getGameRuleValue(GameRule)} instead * @deprecated use {@link #getGameRuleValue(GameRule)} instead
*/ */
@Deprecated @Deprecated(since = "1.13")
@Contract("null -> null; !null -> !null") @Contract("null -> null; !null -> !null")
@Nullable @Nullable
public String getGameRuleValue(@Nullable String rule); public String getGameRuleValue(@Nullable String rule);
@ -2431,7 +2431,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return True if rule was set * @return True if rule was set
* @deprecated use {@link #setGameRule(GameRule, Object)} instead. * @deprecated use {@link #setGameRule(GameRule, Object)} instead.
*/ */
@Deprecated @Deprecated(since = "1.13")
public boolean setGameRuleValue(@NotNull String rule, @NotNull String value); public boolean setGameRuleValue(@NotNull String rule, @NotNull String value);
/** /**
@ -2759,7 +2759,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* instead. * instead.
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.19")
public Location locateNearestStructure(@NotNull Location origin, @NotNull org.bukkit.StructureType structureType, int radius, boolean findUnexplored); public Location locateNearestStructure(@NotNull Location origin, @NotNull org.bukkit.StructureType structureType, int radius, boolean findUnexplored);
/** /**
@ -2984,7 +2984,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return dimension ID * @return dimension ID
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public int getId() { public int getId() {
return id; return id;
} }
@ -2996,7 +2996,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The environment * @return The environment
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static Environment getEnvironment(int id) { public static Environment getEnvironment(int id) {
return lookup.get(id); return lookup.get(id);

View File

@ -123,7 +123,7 @@ public class AttributeModifier implements ConfigurationSerializable, Keyed {
* @deprecated use {@link #getSlotGroup()} * @deprecated use {@link #getSlotGroup()}
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.5")
public EquipmentSlot getSlot() { public EquipmentSlot getSlot() {
return slot == EquipmentSlotGroup.ANY ? null : slot.getExample(); return slot == EquipmentSlotGroup.ANY ? null : slot.getExample();
} }

View File

@ -6,5 +6,5 @@ import org.bukkit.material.Colorable;
* Represents a captured state of a bed. * Represents a captured state of a bed.
* @deprecated does not provide useful information beyond the material itself * @deprecated does not provide useful information beyond the material itself
*/ */
@Deprecated @Deprecated(since = "1.13")
public interface Bed extends TileState, Colorable { } public interface Bed extends TileState, Colorable { }

View File

@ -40,7 +40,7 @@ public interface Block extends Metadatable, Translatable {
* @return block specific metadata * @return block specific metadata
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
byte getData(); byte getData();
/** /**

View File

@ -221,14 +221,14 @@ public interface BlockState extends Metadatable {
* @return The data as a raw byte. * @return The data as a raw byte.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public byte getRawData(); public byte getRawData();
/** /**
* @param data The new data value for the block. * @param data The new data value for the block.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public void setRawData(byte data); public void setRawData(byte data);
/** /**

View File

@ -3634,6 +3634,6 @@ public interface BlockType extends Keyed, Translatable {
* @deprecated only for internal use * @deprecated only for internal use
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.6")
Material asMaterial(); Material asMaterial();
} }

View File

@ -15,7 +15,7 @@ public interface CreatureSpawner extends TileState, Spawner {
* @deprecated magic value, use * @deprecated magic value, use
* {@link #setSpawnedType(org.bukkit.entity.EntityType)}. * {@link #setSpawnedType(org.bukkit.entity.EntityType)}.
*/ */
@Deprecated @Deprecated(since = "1.11.2")
public void setCreatureTypeByName(@Nullable String creatureType); public void setCreatureTypeByName(@Nullable String creatureType);
/** /**
@ -24,7 +24,7 @@ public interface CreatureSpawner extends TileState, Spawner {
* @return The creature type's name if is set. * @return The creature type's name if is set.
* @deprecated magic value, use {@link #getSpawnedType()}. * @deprecated magic value, use {@link #getSpawnedType()}.
*/ */
@Deprecated @Deprecated(since = "1.11.2")
@Nullable @Nullable
public String getCreatureTypeName(); public String getCreatureTypeName();
} }

View File

@ -51,7 +51,7 @@ public interface DecoratedPot extends TileState, BlockInventoryHolder {
* @return the sherds * @return the sherds
* @deprecated in favor of {@link #getSherds()} * @deprecated in favor of {@link #getSherds()}
*/ */
@Deprecated @Deprecated(since = "1.20.1")
@NotNull @NotNull
public List<Material> getShards(); public List<Material> getShards();

View File

@ -26,7 +26,7 @@ public interface Lockable {
* @deprecated locks are not necessarily pure strings * @deprecated locks are not necessarily pure strings
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.21.2")
String getLock(); String getLock();
/** /**
@ -36,7 +36,7 @@ public interface Lockable {
* @param key the key required to access the container. * @param key the key required to access the container.
* @deprecated locks are not necessarily pure strings * @deprecated locks are not necessarily pure strings
*/ */
@Deprecated @Deprecated(since = "1.21.2")
void setLock(@Nullable String key); void setLock(@Nullable String key);
/** /**

View File

@ -50,7 +50,7 @@ public enum PistonMoveReaction {
* @return The ID of the move reaction * @return The ID of the move reaction
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public int getId() { public int getId() {
return this.id; return this.id;
} }
@ -60,7 +60,7 @@ public enum PistonMoveReaction {
* @return The move reaction with that ID * @return The move reaction with that ID
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static PistonMoveReaction getById(int id) { public static PistonMoveReaction getById(int id) {
return byId.get(id); return byId.get(id);

View File

@ -19,7 +19,7 @@ public interface Sign extends TileState, Colorable {
* @return Array of Strings containing each line of text * @return Array of Strings containing each line of text
* @deprecated A sign may have multiple writable sides now. Use {@link Sign#getSide(Side)} and {@link SignSide#getLines()}. * @deprecated A sign may have multiple writable sides now. Use {@link Sign#getSide(Side)} and {@link SignSide#getLines()}.
*/ */
@Deprecated @Deprecated(since = "1.20")
@NotNull @NotNull
public String[] getLines(); public String[] getLines();
@ -33,7 +33,7 @@ public interface Sign extends TileState, Colorable {
* @throws IndexOutOfBoundsException Thrown when the line does not exist * @throws IndexOutOfBoundsException Thrown when the line does not exist
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#getLine(int)}. * @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#getLine(int)}.
*/ */
@Deprecated @Deprecated(since = "1.20")
@NotNull @NotNull
public String getLine(int index) throws IndexOutOfBoundsException; public String getLine(int index) throws IndexOutOfBoundsException;
@ -48,7 +48,7 @@ public interface Sign extends TileState, Colorable {
* @throws IndexOutOfBoundsException If the index is out of the range 0..3 * @throws IndexOutOfBoundsException If the index is out of the range 0..3
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setLine(int, String)}. * @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setLine(int, String)}.
*/ */
@Deprecated @Deprecated(since = "1.20")
public void setLine(int index, @NotNull String line) throws IndexOutOfBoundsException; public void setLine(int index, @NotNull String line) throws IndexOutOfBoundsException;
/** /**
@ -57,7 +57,7 @@ public interface Sign extends TileState, Colorable {
* @return if this sign is currently editable * @return if this sign is currently editable
* @deprecated use {@link #isWaxed()} instead * @deprecated use {@link #isWaxed()} instead
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public boolean isEditable(); public boolean isEditable();
/** /**
@ -66,7 +66,7 @@ public interface Sign extends TileState, Colorable {
* @param editable if this sign is currently editable * @param editable if this sign is currently editable
* @deprecated use {@link #setWaxed(boolean)} instead * @deprecated use {@link #setWaxed(boolean)} instead
*/ */
@Deprecated @Deprecated(since = "1.20.1")
public void setEditable(boolean editable); public void setEditable(boolean editable);
/** /**
@ -91,7 +91,7 @@ public interface Sign extends TileState, Colorable {
* @return if this sign has glowing text * @return if this sign has glowing text
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#isGlowingText()}. * @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#isGlowingText()}.
*/ */
@Deprecated @Deprecated(since = "1.20")
public boolean isGlowingText(); public boolean isGlowingText();
/** /**
@ -100,7 +100,7 @@ public interface Sign extends TileState, Colorable {
* @param glowing if this sign has glowing text * @param glowing if this sign has glowing text
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setGlowingText(boolean)}. * @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setGlowingText(boolean)}.
*/ */
@Deprecated @Deprecated(since = "1.20")
public void setGlowingText(boolean glowing); public void setGlowingText(boolean glowing);
/** /**
@ -110,7 +110,7 @@ public interface Sign extends TileState, Colorable {
*/ */
@NotNull @NotNull
@Override @Override
@Deprecated @Deprecated(since = "1.20")
public DyeColor getColor(); public DyeColor getColor();
/** /**
@ -119,7 +119,7 @@ public interface Sign extends TileState, Colorable {
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setColor(org.bukkit.DyeColor)}. * @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setColor(org.bukkit.DyeColor)}.
*/ */
@Override @Override
@Deprecated @Deprecated(since = "1.20")
public void setColor(@NotNull DyeColor color); public void setColor(@NotNull DyeColor color);
/** /**

View File

@ -28,7 +28,7 @@ public interface Skull extends TileState {
* @return the owner of the skull or null if the skull does not have an owner * @return the owner of the skull or null if the skull does not have an owner
* @deprecated See {@link #getOwningPlayer()}. * @deprecated See {@link #getOwningPlayer()}.
*/ */
@Deprecated @Deprecated(since = "1.9.4")
@Nullable @Nullable
public String getOwner(); public String getOwner();
@ -42,7 +42,7 @@ public interface Skull extends TileState {
* @return true if the owner was successfully set * @return true if the owner was successfully set
* @deprecated see {@link #setOwningPlayer(org.bukkit.OfflinePlayer)}. * @deprecated see {@link #setOwningPlayer(org.bukkit.OfflinePlayer)}.
*/ */
@Deprecated @Deprecated(since = "1.94")
@Contract("null -> false") @Contract("null -> false")
public boolean setOwner(@Nullable String name); public boolean setOwner(@Nullable String name);
@ -115,7 +115,7 @@ public interface Skull extends TileState {
* @return the rotation of the skull * @return the rotation of the skull
* @deprecated use {@link BlockData} * @deprecated use {@link BlockData}
*/ */
@Deprecated @Deprecated(since = "1.13")
@NotNull @NotNull
public BlockFace getRotation(); public BlockFace getRotation();
@ -126,7 +126,7 @@ public interface Skull extends TileState {
* @param rotation the rotation of the skull * @param rotation the rotation of the skull
* @deprecated use {@link BlockData} * @deprecated use {@link BlockData}
*/ */
@Deprecated @Deprecated(since = "1.13")
public void setRotation(@NotNull BlockFace rotation); public void setRotation(@NotNull BlockFace rotation);
/** /**
@ -135,7 +135,7 @@ public interface Skull extends TileState {
* @return the type of skull * @return the type of skull
* @deprecated check {@link Material} instead * @deprecated check {@link Material} instead
*/ */
@Deprecated @Deprecated(since = "1.13")
@NotNull @NotNull
public SkullType getSkullType(); public SkullType getSkullType();
@ -145,7 +145,7 @@ public interface Skull extends TileState {
* @param skullType the type of skull * @param skullType the type of skull
* @deprecated check {@link Material} instead * @deprecated check {@link Material} instead
*/ */
@Deprecated @Deprecated(since = "1.13")
@Contract("_ -> fail") @Contract("_ -> fail")
public void setSkullType(SkullType skullType); public void setSkullType(SkullType skullType);
} }

View File

@ -5,6 +5,6 @@ package org.bukkit.block;
* *
* @see BrushableBlock * @see BrushableBlock
*/ */
@Deprecated @Deprecated(since = "1.20")
public interface SuspiciousSand extends BrushableBlock { public interface SuspiciousSand extends BrushableBlock {
} }

View File

@ -69,7 +69,7 @@ public interface PatternType extends OldEnum<PatternType>, Keyed {
* @deprecated magic value * @deprecated magic value
*/ */
@NotNull @NotNull
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.4", forRemoval = true)
public String getIdentifier(); public String getIdentifier();
/** /**
@ -83,7 +83,7 @@ public interface PatternType extends OldEnum<PatternType>, Keyed {
*/ */
@Contract("null -> null") @Contract("null -> null")
@Nullable @Nullable
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.4", forRemoval = true)
public static PatternType getByIdentifier(@Nullable String identifier) { public static PatternType getByIdentifier(@Nullable String identifier) {
if (identifier == null) { if (identifier == null) {
return null; return null;

View File

@ -14,7 +14,7 @@ public interface Switch extends Directional, FaceAttachable, Powerable {
* @deprecated use {@link #getAttachedFace()} * @deprecated use {@link #getAttachedFace()}
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15.2")
Face getFace(); Face getFace();
/** /**
@ -23,7 +23,7 @@ public interface Switch extends Directional, FaceAttachable, Powerable {
* @param face the new 'face' value * @param face the new 'face' value
* @deprecated use {@link #getAttachedFace()} * @deprecated use {@link #getAttachedFace()}
*/ */
@Deprecated @Deprecated(since = "1.15.2")
void setFace(@NotNull Face face); void setFace(@NotNull Face face);
/** /**
@ -31,7 +31,7 @@ public interface Switch extends Directional, FaceAttachable, Powerable {
* *
* @deprecated use {@link AttachedFace} * @deprecated use {@link AttachedFace}
*/ */
@Deprecated @Deprecated(since = "1.15.2")
public enum Face { public enum Face {
/** /**
* The switch is mounted to the floor and pointing upwards. * The switch is mounted to the floor and pointing upwards.

View File

@ -24,7 +24,7 @@ public interface Vault extends Directional {
* @return the 'vault_state' value * @return the 'vault_state' value
* @deprecated see {@link #getVaultState()} * @deprecated see {@link #getVaultState()}
*/ */
@Deprecated(forRemoval = true) @Deprecated(since = "1.21.3", forRemoval = true)
@NotNull @NotNull
State getTrialSpawnerState(); State getTrialSpawnerState();
@ -41,7 +41,7 @@ public interface Vault extends Directional {
* @param state the new 'vault_state' value * @param state the new 'vault_state' value
* @deprecated see {@link #setVaultState(State)} * @deprecated see {@link #setVaultState(State)}
*/ */
@Deprecated(forRemoval = true) @Deprecated(since = "1.21.3", forRemoval = true)
void setTrialSpawnerState(@NotNull State state); void setTrialSpawnerState(@NotNull State state);
/** /**

View File

@ -137,13 +137,13 @@ public interface BossBar {
* Shows the previously hidden boss bar to all attached players * Shows the previously hidden boss bar to all attached players
* @deprecated {@link #setVisible(boolean)} * @deprecated {@link #setVisible(boolean)}
*/ */
@Deprecated @Deprecated(since = "1.9")
void show(); void show();
/** /**
* Hides this boss bar from all attached players * Hides this boss bar from all attached players
* @deprecated {@link #setVisible(boolean)} * @deprecated {@link #setVisible(boolean)}
*/ */
@Deprecated @Deprecated(since = "1.9")
void hide(); void hide();
} }

View File

@ -321,7 +321,7 @@ public abstract class Command {
* consoles or when this command is executed with * consoles or when this command is executed with
* {@link Bukkit#dispatchCommand(CommandSender, String)}. * {@link Bukkit#dispatchCommand(CommandSender, String)}.
*/ */
@Deprecated @Deprecated(since = "1.20.4")
@Nullable @Nullable
public String getPermissionMessage() { public String getPermissionMessage() {
return permissionMessage; return permissionMessage;
@ -392,7 +392,7 @@ public abstract class Command {
* consoles or when this command is executed with * consoles or when this command is executed with
* {@link Bukkit#dispatchCommand(CommandSender, String)}. * {@link Bukkit#dispatchCommand(CommandSender, String)}.
*/ */
@Deprecated @Deprecated(since = "1.20.4")
@NotNull @NotNull
public Command setPermissionMessage(@Nullable String permissionMessage) { public Command setPermissionMessage(@Nullable String permissionMessage) {
this.permissionMessage = permissionMessage; this.permissionMessage = permissionMessage;

View File

@ -209,7 +209,7 @@ public abstract class FileConfiguration extends MemoryConfiguration {
* {@link FileConfigurationOptions#getHeader()} instead. * {@link FileConfigurationOptions#getHeader()} instead.
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.18.1")
protected String buildHeader() { protected String buildHeader() {
return ""; return "";
} }

View File

@ -67,7 +67,7 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
* @deprecated use getHeader() instead. * @deprecated use getHeader() instead.
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.18.1")
public String header() { public String header() {
StringBuilder stringHeader = new StringBuilder(); StringBuilder stringHeader = new StringBuilder();
for (String line : header) { for (String line : header) {
@ -105,7 +105,7 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
* @deprecated use setHeader() instead * @deprecated use setHeader() instead
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.18.1")
public FileConfigurationOptions header(@Nullable String value) { public FileConfigurationOptions header(@Nullable String value) {
this.header = (value == null) ? Collections.emptyList() : Collections.unmodifiableList(Arrays.asList(value.split("\\n"))); this.header = (value == null) ? Collections.emptyList() : Collections.unmodifiableList(Arrays.asList(value.split("\\n")));
return this; return this;
@ -183,7 +183,7 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
* *
* @deprecated Call {@link #parseComments()} instead. * @deprecated Call {@link #parseComments()} instead.
*/ */
@Deprecated @Deprecated(since = "1.18.1")
public boolean copyHeader() { public boolean copyHeader() {
return parseComments; return parseComments;
} }
@ -195,7 +195,7 @@ public class FileConfigurationOptions extends MemoryConfigurationOptions {
* @deprecated Call {@link #parseComments(boolean)} instead. * @deprecated Call {@link #parseComments(boolean)} instead.
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.18.1")
public FileConfigurationOptions copyHeader(boolean value) { public FileConfigurationOptions copyHeader(boolean value) {
parseComments = value; parseComments = value;
return this; return this;

View File

@ -42,12 +42,12 @@ public class YamlConfiguration extends FileConfiguration {
/** /**
* @deprecated unused, not intended to be API * @deprecated unused, not intended to be API
*/ */
@Deprecated @Deprecated(since = "1.18.1")
protected static final String COMMENT_PREFIX = "# "; protected static final String COMMENT_PREFIX = "# ";
/** /**
* @deprecated unused, not intended to be API * @deprecated unused, not intended to be API
*/ */
@Deprecated @Deprecated(since = "1.18.1")
protected static final String BLANK_CONFIG = "{}\n"; protected static final String BLANK_CONFIG = "{}\n";
private final DumperOptions yamlDumperOptions; private final DumperOptions yamlDumperOptions;
private final LoaderOptions yamlLoaderOptions; private final LoaderOptions yamlLoaderOptions;

View File

@ -46,7 +46,7 @@ public class YamlConfigurationOptions extends FileConfigurationOptions {
@NotNull @NotNull
@Override @Override
@Deprecated @Deprecated(since = "1.18.1")
public YamlConfigurationOptions header(@Nullable String value) { public YamlConfigurationOptions header(@Nullable String value) {
super.header(value); super.header(value);
return this; return this;
@ -68,7 +68,7 @@ public class YamlConfigurationOptions extends FileConfigurationOptions {
@NotNull @NotNull
@Override @Override
@Deprecated @Deprecated(since = "1.18.1")
public YamlConfigurationOptions copyHeader(boolean value) { public YamlConfigurationOptions copyHeader(boolean value) {
super.copyHeader(value); super.copyHeader(value);
return this; return this;

View File

@ -17,7 +17,7 @@ public class YamlConstructor extends SafeConstructor {
/** /**
* @deprecated options required * @deprecated options required
*/ */
@Deprecated @Deprecated(since = "1.19.4")
public YamlConstructor() { public YamlConstructor() {
this(new LoaderOptions()); this(new LoaderOptions());
} }

View File

@ -15,7 +15,7 @@ public class YamlRepresenter extends Representer {
/** /**
* @deprecated options required * @deprecated options required
*/ */
@Deprecated @Deprecated(since = "1.19.4")
public YamlRepresenter() { public YamlRepresenter() {
this(new DumperOptions()); this(new DumperOptions());
} }

View File

@ -239,7 +239,7 @@ public abstract class Enchantment implements Keyed, Translatable {
* @deprecated enchantments are badly named, use {@link #getKey()}. * @deprecated enchantments are badly named, use {@link #getKey()}.
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.13")
public abstract String getName(); public abstract String getName();
/** /**
@ -263,7 +263,7 @@ public abstract class Enchantment implements Keyed, Translatable {
* @deprecated enchantment groupings are now managed by tags, not categories * @deprecated enchantment groupings are now managed by tags, not categories
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.20.5")
public abstract EnchantmentTarget getItemTarget(); public abstract EnchantmentTarget getItemTarget();
/** /**
@ -275,7 +275,7 @@ public abstract class Enchantment implements Keyed, Translatable {
* @return true if the enchantment is a treasure enchantment * @return true if the enchantment is a treasure enchantment
* @deprecated enchantment types are now managed by tags * @deprecated enchantment types are now managed by tags
*/ */
@Deprecated @Deprecated(since = "1.21")
public abstract boolean isTreasure(); public abstract boolean isTreasure();
/** /**
@ -288,7 +288,7 @@ public abstract class Enchantment implements Keyed, Translatable {
* only for {@link Enchantment#BINDING_CURSE} and * only for {@link Enchantment#BINDING_CURSE} and
* {@link Enchantment#VANISHING_CURSE}. * {@link Enchantment#VANISHING_CURSE}.
*/ */
@Deprecated @Deprecated(since = "1.13")
public abstract boolean isCursed(); public abstract boolean isCursed();
/** /**
@ -320,7 +320,7 @@ public abstract class Enchantment implements Keyed, Translatable {
*/ */
@Contract("null -> null") @Contract("null -> null")
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.3")
public static Enchantment getByKey(@Nullable NamespacedKey key) { public static Enchantment getByKey(@Nullable NamespacedKey key) {
if (key == null) { if (key == null) {
return null; return null;
@ -335,7 +335,7 @@ public abstract class Enchantment implements Keyed, Translatable {
* @return Resulting Enchantment, or null if not found * @return Resulting Enchantment, or null if not found
* @deprecated enchantments are badly named, use {@link #getByKey(org.bukkit.NamespacedKey)}. * @deprecated enchantments are badly named, use {@link #getByKey(org.bukkit.NamespacedKey)}.
*/ */
@Deprecated @Deprecated(since = "1.13")
@Contract("null -> null") @Contract("null -> null")
@Nullable @Nullable
public static Enchantment getByName(@Nullable String name) { public static Enchantment getByName(@Nullable String name) {
@ -353,7 +353,7 @@ public abstract class Enchantment implements Keyed, Translatable {
* @deprecated use {@link Registry#iterator() Registry.ENCHANTMENT.iterator()} * @deprecated use {@link Registry#iterator() Registry.ENCHANTMENT.iterator()}
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.20.3")
public static Enchantment[] values() { public static Enchantment[] values() {
return Lists.newArrayList(Registry.ENCHANTMENT).toArray(new Enchantment[0]); return Lists.newArrayList(Registry.ENCHANTMENT).toArray(new Enchantment[0]);
} }

View File

@ -13,7 +13,7 @@ public enum EnchantmentTarget {
* *
* @deprecated this target no longer exists in Vanilla * @deprecated this target no longer exists in Vanilla
*/ */
@Deprecated @Deprecated(since = "1.16.1")
ALL { ALL {
@Override @Override
public boolean includes(@NotNull Material item) { public boolean includes(@NotNull Material item) {

View File

@ -6,7 +6,7 @@ import org.jetbrains.annotations.NotNull;
* A simple wrapper for ease of selecting {@link Enchantment}s * A simple wrapper for ease of selecting {@link Enchantment}s
* @deprecated only for backwards compatibility, EnchantmentWrapper is no longer used. * @deprecated only for backwards compatibility, EnchantmentWrapper is no longer used.
*/ */
@Deprecated @Deprecated(since = "1.20.3")
public abstract class EnchantmentWrapper extends Enchantment { public abstract class EnchantmentWrapper extends Enchantment {
protected EnchantmentWrapper() { protected EnchantmentWrapper() {
} }

View File

@ -20,7 +20,7 @@ public interface AbstractArrow extends Projectile {
* @see #getWeapon() * @see #getWeapon()
* @deprecated a function of the firing weapon * @deprecated a function of the firing weapon
*/ */
@Deprecated @Deprecated(since = "1.21")
public int getKnockbackStrength(); public int getKnockbackStrength();
/** /**
@ -30,7 +30,7 @@ public interface AbstractArrow extends Projectile {
* @see #setWeapon(org.bukkit.inventory.ItemStack) * @see #setWeapon(org.bukkit.inventory.ItemStack)
* @deprecated a function of the firing weapon * @deprecated a function of the firing weapon
*/ */
@Deprecated @Deprecated(since = "1.21")
public void setKnockbackStrength(int knockbackStrength); public void setKnockbackStrength(int knockbackStrength);
/** /**
@ -132,7 +132,7 @@ public interface AbstractArrow extends Projectile {
* @see #setWeapon(org.bukkit.inventory.ItemStack) * @see #setWeapon(org.bukkit.inventory.ItemStack)
* @deprecated a function of the firing weapon instead * @deprecated a function of the firing weapon instead
*/ */
@Deprecated @Deprecated(since = "1.21")
public void setShotFromCrossbow(boolean shotFromCrossbow); public void setShotFromCrossbow(boolean shotFromCrossbow);
/** /**

View File

@ -20,7 +20,7 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable {
* @return a {@link Horse.Variant} representing the horse's variant * @return a {@link Horse.Variant} representing the horse's variant
* @deprecated different variants are different classes * @deprecated different variants are different classes
*/ */
@Deprecated @Deprecated(since = "1.11")
@NotNull @NotNull
public Horse.Variant getVariant(); public Horse.Variant getVariant();
@ -28,7 +28,7 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable {
* @param variant variant * @param variant variant
* @deprecated you are required to spawn a different entity * @deprecated you are required to spawn a different entity
*/ */
@Deprecated @Deprecated(since = "1.11")
@Contract("_ -> fail") @Contract("_ -> fail")
public void setVariant(Horse.Variant variant); public void setVariant(Horse.Variant variant);

View File

@ -21,7 +21,7 @@ public interface AbstractSkeleton extends Monster {
* @return Current type * @return Current type
* @deprecated should check what class instance this is. * @deprecated should check what class instance this is.
*/ */
@Deprecated @Deprecated(since = "1.17")
@NotNull @NotNull
public Skeleton.SkeletonType getSkeletonType(); public Skeleton.SkeletonType getSkeletonType();
@ -29,7 +29,7 @@ public interface AbstractSkeleton extends Monster {
* @param type type * @param type type
* @deprecated Must spawn a new subtype variant * @deprecated Must spawn a new subtype variant
*/ */
@Deprecated @Deprecated(since = "1.17")
@Contract("_ -> fail") @Contract("_ -> fail")
public void setSkeletonType(Skeleton.SkeletonType type); public void setSkeletonType(Skeleton.SkeletonType type);
} }

View File

@ -25,7 +25,7 @@ public interface Ageable extends Creature {
* @param lock new lock * @param lock new lock
* @deprecated see {@link Breedable#setAgeLock(boolean)} * @deprecated see {@link Breedable#setAgeLock(boolean)}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public void setAgeLock(boolean lock); public void setAgeLock(boolean lock);
/** /**
@ -34,7 +34,7 @@ public interface Ageable extends Creature {
* @return the current agelock * @return the current agelock
* @deprecated see {@link Breedable#getAgeLock()} * @deprecated see {@link Breedable#getAgeLock()}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public boolean getAgeLock(); public boolean getAgeLock();
/** /**
@ -60,7 +60,7 @@ public interface Ageable extends Creature {
* @return the ability to breed of the animal * @return the ability to breed of the animal
* @deprecated see {@link Breedable#canBreed()} * @deprecated see {@link Breedable#canBreed()}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public boolean canBreed(); public boolean canBreed();
/** /**
@ -70,6 +70,6 @@ public interface Ageable extends Creature {
* @param breed breedability of the animal * @param breed breedability of the animal
* @deprecated see {@link Breedable#setBreed(boolean)} * @deprecated see {@link Breedable#setBreed(boolean)}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public void setBreed(boolean breed); public void setBreed(boolean breed);
} }

View File

@ -152,7 +152,7 @@ public interface AreaEffectCloud extends Entity {
* @param data PotionData to set the base potion state to * @param data PotionData to set the base potion state to
* @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #setBasePotionType} instead. * @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #setBasePotionType} instead.
*/ */
@Deprecated @Deprecated(since = "1.20.6")
void setBasePotionData(@Nullable PotionData data); void setBasePotionData(@Nullable PotionData data);
/** /**
@ -162,7 +162,7 @@ public interface AreaEffectCloud extends Entity {
* @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #getBasePotionType()} instead. * @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #getBasePotionType()} instead.
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.6")
PotionData getBasePotionData(); PotionData getBasePotionData();
/** /**

View File

@ -17,7 +17,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer {@link EntityEquipment#getItemInHand()} * @deprecated prefer {@link EntityEquipment#getItemInHand()}
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15.2")
ItemStack getItemInHand(); ItemStack getItemInHand();
/** /**
@ -28,7 +28,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer * @deprecated prefer
* {@link EntityEquipment#setItemInHand(org.bukkit.inventory.ItemStack)} * {@link EntityEquipment#setItemInHand(org.bukkit.inventory.ItemStack)}
*/ */
@Deprecated @Deprecated(since = "1.15.2")
void setItemInHand(@Nullable ItemStack item); void setItemInHand(@Nullable ItemStack item);
/** /**
@ -39,7 +39,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer {@link EntityEquipment#getBoots()} * @deprecated prefer {@link EntityEquipment#getBoots()}
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15.2")
ItemStack getBoots(); ItemStack getBoots();
/** /**
@ -50,7 +50,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer * @deprecated prefer
* {@link EntityEquipment#setBoots(org.bukkit.inventory.ItemStack)} * {@link EntityEquipment#setBoots(org.bukkit.inventory.ItemStack)}
*/ */
@Deprecated @Deprecated(since = "1.15.2")
void setBoots(@Nullable ItemStack item); void setBoots(@Nullable ItemStack item);
/** /**
@ -61,7 +61,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer {@link EntityEquipment#getLeggings()} * @deprecated prefer {@link EntityEquipment#getLeggings()}
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15.2")
ItemStack getLeggings(); ItemStack getLeggings();
/** /**
@ -72,7 +72,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer * @deprecated prefer
* {@link EntityEquipment#setLeggings(org.bukkit.inventory.ItemStack)} * {@link EntityEquipment#setLeggings(org.bukkit.inventory.ItemStack)}
*/ */
@Deprecated @Deprecated(since = "1.15.2")
void setLeggings(@Nullable ItemStack item); void setLeggings(@Nullable ItemStack item);
/** /**
@ -83,7 +83,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer {@link EntityEquipment#getChestplate()} * @deprecated prefer {@link EntityEquipment#getChestplate()}
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15.2")
ItemStack getChestplate(); ItemStack getChestplate();
/** /**
@ -94,7 +94,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer * @deprecated prefer
* {@link EntityEquipment#setChestplate(org.bukkit.inventory.ItemStack)} * {@link EntityEquipment#setChestplate(org.bukkit.inventory.ItemStack)}
*/ */
@Deprecated @Deprecated(since = "1.15.2")
void setChestplate(@Nullable ItemStack item); void setChestplate(@Nullable ItemStack item);
/** /**
@ -105,7 +105,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer {@link EntityEquipment#getHelmet()} * @deprecated prefer {@link EntityEquipment#getHelmet()}
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.15.2")
ItemStack getHelmet(); ItemStack getHelmet();
/** /**
@ -116,7 +116,7 @@ public interface ArmorStand extends LivingEntity {
* @deprecated prefer * @deprecated prefer
* {@link EntityEquipment#setHelmet(org.bukkit.inventory.ItemStack)} * {@link EntityEquipment#setHelmet(org.bukkit.inventory.ItemStack)}
*/ */
@Deprecated @Deprecated(since = "1.15.2")
void setHelmet(@Nullable ItemStack item); void setHelmet(@Nullable ItemStack item);
/** /**

View File

@ -17,7 +17,7 @@ public interface Arrow extends AbstractArrow {
* @param data PotionData to set the base potion state to * @param data PotionData to set the base potion state to
* @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #setBasePotionType} instead. * @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #setBasePotionType} instead.
*/ */
@Deprecated @Deprecated(since = "1.20.6")
void setBasePotionData(@Nullable PotionData data); void setBasePotionData(@Nullable PotionData data);
/** /**
@ -27,7 +27,7 @@ public interface Arrow extends AbstractArrow {
* @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #getBasePotionType()} instead. * @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #getBasePotionType()} instead.
*/ */
@Nullable @Nullable
@Deprecated @Deprecated(since = "1.20.6")
PotionData getBasePotionData(); PotionData getBasePotionData();
/** /**

View File

@ -15,7 +15,7 @@ public interface Boat extends Vehicle {
* @return the wood type * @return the wood type
* @deprecated deprecated in favor of {@link #getBoatType()} * @deprecated deprecated in favor of {@link #getBoatType()}
*/ */
@Deprecated @Deprecated(since = "1.19")
@NotNull @NotNull
TreeSpecies getWoodType(); TreeSpecies getWoodType();
@ -25,7 +25,7 @@ public interface Boat extends Vehicle {
* @param species the new wood type * @param species the new wood type
* @deprecated deprecated in favor of {@link #setBoatType(Type)} * @deprecated deprecated in favor of {@link #setBoatType(Type)}
*/ */
@Deprecated @Deprecated(since = "1.19")
void setWoodType(@NotNull TreeSpecies species); void setWoodType(@NotNull TreeSpecies species);
/** /**
@ -34,7 +34,7 @@ public interface Boat extends Vehicle {
* @return the boat type * @return the boat type
* @deprecated different boats types are now different entity types * @deprecated different boats types are now different entity types
*/ */
@Deprecated @Deprecated(since = "1.21.2")
@NotNull @NotNull
Type getBoatType(); Type getBoatType();
@ -44,7 +44,7 @@ public interface Boat extends Vehicle {
* @param type the new type * @param type the new type
* @deprecated different boats types are now different entity types * @deprecated different boats types are now different entity types
*/ */
@Deprecated @Deprecated(since = "1.21.2")
void setBoatType(@NotNull Type type); void setBoatType(@NotNull Type type);
/** /**
@ -54,7 +54,7 @@ public interface Boat extends Vehicle {
* @return The max speed. * @return The max speed.
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public double getMaxSpeed(); public double getMaxSpeed();
/** /**
@ -63,7 +63,7 @@ public interface Boat extends Vehicle {
* @param speed The max speed. * @param speed The max speed.
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public void setMaxSpeed(double speed); public void setMaxSpeed(double speed);
/** /**
@ -73,7 +73,7 @@ public interface Boat extends Vehicle {
* @return The rate of deceleration * @return The rate of deceleration
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public double getOccupiedDeceleration(); public double getOccupiedDeceleration();
/** /**
@ -84,7 +84,7 @@ public interface Boat extends Vehicle {
* @param rate deceleration rate * @param rate deceleration rate
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public void setOccupiedDeceleration(double rate); public void setOccupiedDeceleration(double rate);
/** /**
@ -95,7 +95,7 @@ public interface Boat extends Vehicle {
* @return The rate of deceleration * @return The rate of deceleration
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public double getUnoccupiedDeceleration(); public double getUnoccupiedDeceleration();
/** /**
@ -107,7 +107,7 @@ public interface Boat extends Vehicle {
* @param rate deceleration rate * @param rate deceleration rate
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public void setUnoccupiedDeceleration(double rate); public void setUnoccupiedDeceleration(double rate);
/** /**
@ -116,7 +116,7 @@ public interface Boat extends Vehicle {
* @return whether boats can work on land * @return whether boats can work on land
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public boolean getWorkOnLand(); public boolean getWorkOnLand();
/** /**
@ -125,7 +125,7 @@ public interface Boat extends Vehicle {
* @param workOnLand whether boats can work on land * @param workOnLand whether boats can work on land
* @deprecated boats are complex and many of these methods do not work correctly across multiple versions. * @deprecated boats are complex and many of these methods do not work correctly across multiple versions.
*/ */
@Deprecated @Deprecated(since = "1.9")
public void setWorkOnLand(boolean workOnLand); public void setWorkOnLand(boolean workOnLand);
/** /**
@ -140,7 +140,7 @@ public interface Boat extends Vehicle {
* Represents the type of boats. * Represents the type of boats.
* @deprecated different boats types are now different entity types * @deprecated different boats types are now different entity types
*/ */
@Deprecated @Deprecated(since = "1.21.2")
public enum Type { public enum Type {
OAK(Material.OAK_PLANKS), OAK(Material.OAK_PLANKS),
SPRUCE(Material.SPRUCE_PLANKS), SPRUCE(Material.SPRUCE_PLANKS),

View File

@ -79,7 +79,7 @@ public interface Damageable extends Entity {
* @return Maximum health * @return Maximum health
* @deprecated use {@link Attribute#MAX_HEALTH}. * @deprecated use {@link Attribute#MAX_HEALTH}.
*/ */
@Deprecated @Deprecated(since = "1.11")
double getMaxHealth(); double getMaxHealth();
/** /**
@ -94,13 +94,13 @@ public interface Damageable extends Entity {
* @param health amount of health to set the maximum to * @param health amount of health to set the maximum to
* @deprecated use {@link Attribute#MAX_HEALTH}. * @deprecated use {@link Attribute#MAX_HEALTH}.
*/ */
@Deprecated @Deprecated(since = "1.11")
void setMaxHealth(double health); void setMaxHealth(double health);
/** /**
* Resets the max health to the original amount. * Resets the max health to the original amount.
* @deprecated use {@link Attribute#MAX_HEALTH}. * @deprecated use {@link Attribute#MAX_HEALTH}.
*/ */
@Deprecated @Deprecated(since = "1.11")
void resetMaxHealth(); void resetMaxHealth();
} }

View File

@ -10,7 +10,7 @@ public interface Endermite extends Monster {
* @return player spawned status * @return player spawned status
* @deprecated this functionality no longer exists * @deprecated this functionality no longer exists
*/ */
@Deprecated @Deprecated(since = "1.17")
boolean isPlayerSpawned(); boolean isPlayerSpawned();
/** /**
@ -21,6 +21,6 @@ public interface Endermite extends Monster {
* @param playerSpawned player spawned status * @param playerSpawned player spawned status
* @deprecated this functionality no longer exists * @deprecated this functionality no longer exists
*/ */
@Deprecated @Deprecated(since = "1.17")
void setPlayerSpawned(boolean playerSpawned); void setPlayerSpawned(boolean playerSpawned);
} }

View File

@ -321,7 +321,7 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
* @deprecated entities may have multiple passengers, use * @deprecated entities may have multiple passengers, use
* {@link #getPassengers()} * {@link #getPassengers()}
*/ */
@Deprecated @Deprecated(since = "1.11.2")
@Nullable @Nullable
public Entity getPassenger(); public Entity getPassenger();
@ -333,7 +333,7 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
* @deprecated entities may have multiple passengers, use * @deprecated entities may have multiple passengers, use
* {@link #addPassenger(org.bukkit.entity.Entity)} * {@link #addPassenger(org.bukkit.entity.Entity)}
*/ */
@Deprecated @Deprecated(since = "1.11.2")
public boolean setPassenger(@NotNull Entity passenger); public boolean setPassenger(@NotNull Entity passenger);
/** /**
@ -397,7 +397,7 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
* @param event a {@link EntityDamageEvent} * @param event a {@link EntityDamageEvent}
* @deprecated method is for internal use only and will be removed * @deprecated method is for internal use only and will be removed
*/ */
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.4", forRemoval = true)
public void setLastDamageCause(@Nullable EntityDamageEvent event); public void setLastDamageCause(@Nullable EntityDamageEvent event);
/** /**

View File

@ -393,7 +393,7 @@ public enum EntityType implements Keyed, Translatable {
* @return the entity type's name * @return the entity type's name
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public String getName() { public String getName() {
return name; return name;
@ -418,7 +418,7 @@ public enum EntityType implements Keyed, Translatable {
* @return the raw type id * @return the raw type id
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public short getTypeId() { public short getTypeId() {
return typeId; return typeId;
} }
@ -430,7 +430,7 @@ public enum EntityType implements Keyed, Translatable {
* @return the matching entity type or null * @return the matching entity type or null
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Contract("null -> null") @Contract("null -> null")
@Nullable @Nullable
public static EntityType fromName(@Nullable String name) { public static EntityType fromName(@Nullable String name) {
@ -447,7 +447,7 @@ public enum EntityType implements Keyed, Translatable {
* @return the matching entity type or null * @return the matching entity type or null
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static EntityType fromId(int id) { public static EntityType fromId(int id) {
if (id > Short.MAX_VALUE) { if (id > Short.MAX_VALUE) {

View File

@ -14,7 +14,7 @@ public interface Evoker extends Spellcaster {
* @deprecated future versions of Minecraft have additional spell casting * @deprecated future versions of Minecraft have additional spell casting
* entities. * entities.
*/ */
@Deprecated @Deprecated(since = "1.11.2")
public enum Spell { public enum Spell {
/** /**
@ -51,7 +51,7 @@ public interface Evoker extends Spellcaster {
* entities. * entities.
* *
*/ */
@Deprecated @Deprecated(since = "1.11.2")
@NotNull @NotNull
Spell getCurrentSpell(); Spell getCurrentSpell();
@ -62,6 +62,6 @@ public interface Evoker extends Spellcaster {
* @deprecated future versions of Minecraft have additional spell casting * @deprecated future versions of Minecraft have additional spell casting
* entities. * entities.
*/ */
@Deprecated @Deprecated(since = "1.11.2")
void setCurrentSpell(@Nullable Spell spell); void setCurrentSpell(@Nullable Spell spell);
} }

View File

@ -15,7 +15,7 @@ public interface FallingBlock extends Entity {
* @return Material of the block * @return Material of the block
* @deprecated use {@link #getBlockData()} * @deprecated use {@link #getBlockData()}
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@NotNull @NotNull
Material getMaterial(); Material getMaterial();

View File

@ -208,7 +208,7 @@ public interface FishHook extends Projectile {
* @return chance the bite chance * @return chance the bite chance
* @deprecated has no effect in newer Minecraft versions * @deprecated has no effect in newer Minecraft versions
*/ */
@Deprecated @Deprecated(since = "1.9.2")
public double getBiteChance(); public double getBiteChance();
/** /**
@ -222,7 +222,7 @@ public interface FishHook extends Projectile {
* and 1 * and 1
* @deprecated has no effect in newer Minecraft versions * @deprecated has no effect in newer Minecraft versions
*/ */
@Deprecated @Deprecated(since = "1.9.2")
public void setBiteChance(double chance) throws IllegalArgumentException; public void setBiteChance(double chance) throws IllegalArgumentException;
/** /**

View File

@ -63,14 +63,14 @@ public interface Guardian extends Monster {
* @return true if the Guardian is an Elder Guardian, false if not * @return true if the Guardian is an Elder Guardian, false if not
* @deprecated should check if instance of {@link ElderGuardian}. * @deprecated should check if instance of {@link ElderGuardian}.
*/ */
@Deprecated @Deprecated(since = "1.10.2")
public boolean isElder(); public boolean isElder();
/** /**
* @param shouldBeElder shouldBeElder * @param shouldBeElder shouldBeElder
* @deprecated Must spawn a new {@link ElderGuardian}. * @deprecated Must spawn a new {@link ElderGuardian}.
*/ */
@Deprecated @Deprecated(since = "1.10.2")
public void setElder(boolean shouldBeElder); public void setElder(boolean shouldBeElder);
/** /**

View File

@ -11,7 +11,7 @@ public interface Horse extends AbstractHorse {
/** /**
* @deprecated different variants are differing classes * @deprecated different variants are differing classes
*/ */
@Deprecated @Deprecated(since = "1.11")
public enum Variant { public enum Variant {
/** /**
* A normal horse * A normal horse
@ -154,14 +154,14 @@ public interface Horse extends AbstractHorse {
* @return carrying chest status * @return carrying chest status
* @deprecated see {@link ChestedHorse} * @deprecated see {@link ChestedHorse}
*/ */
@Deprecated @Deprecated(since = "1.11")
public boolean isCarryingChest(); public boolean isCarryingChest();
/** /**
* @param chest chest * @param chest chest
* @deprecated see {@link ChestedHorse} * @deprecated see {@link ChestedHorse}
*/ */
@Deprecated @Deprecated(since = "1.11")
public void setCarryingChest(boolean chest); public void setCarryingChest(boolean chest);
@NotNull @NotNull

View File

@ -189,7 +189,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated Humans may now dual wield in their off hand, use explicit * @deprecated Humans may now dual wield in their off hand, use explicit
* methods in {@link PlayerInventory}. * methods in {@link PlayerInventory}.
*/ */
@Deprecated @Deprecated(since = "1.9")
@NotNull @NotNull
public ItemStack getItemInHand(); public ItemStack getItemInHand();
@ -201,7 +201,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated Humans may now dual wield in their off hand, use explicit * @deprecated Humans may now dual wield in their off hand, use explicit
* methods in {@link PlayerInventory}. * methods in {@link PlayerInventory}.
*/ */
@Deprecated @Deprecated(since = "1.9")
public void setItemInHand(@Nullable ItemStack item); public void setItemInHand(@Nullable ItemStack item);
/** /**
@ -461,7 +461,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding * @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care. * serialized entities in Bukkit. Use with care.
*/ */
@Deprecated @Deprecated(since = "1.12")
@Nullable @Nullable
public Entity getShoulderEntityLeft(); public Entity getShoulderEntityLeft();
@ -479,7 +479,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding * @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care. * serialized entities in Bukkit. Use with care.
*/ */
@Deprecated @Deprecated(since = "1.12")
public void setShoulderEntityLeft(@Nullable Entity entity); public void setShoulderEntityLeft(@Nullable Entity entity);
/** /**
@ -493,7 +493,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding * @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care. * serialized entities in Bukkit. Use with care.
*/ */
@Deprecated @Deprecated(since = "1.12")
@Nullable @Nullable
public Entity getShoulderEntityRight(); public Entity getShoulderEntityRight();
@ -511,7 +511,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding * @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care. * serialized entities in Bukkit. Use with care.
*/ */
@Deprecated @Deprecated(since = "1.12")
public void setShoulderEntityRight(@Nullable Entity entity); public void setShoulderEntityRight(@Nullable Entity entity);
/** /**

View File

@ -5,5 +5,5 @@ package org.bukkit.entity;
* *
* @deprecated lingering status depends on only on the potion item. * @deprecated lingering status depends on only on the potion item.
*/ */
@Deprecated @Deprecated(since = "1.20.5")
public interface LingeringPotion extends ThrownPotion { } public interface LingeringPotion extends ThrownPotion { }

View File

@ -353,7 +353,7 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* @deprecated no need to force since multiple effects of the same type are * @deprecated no need to force since multiple effects of the same type are
* now supported. * now supported.
*/ */
@Deprecated @Deprecated(since = "1.15.2")
public boolean addPotionEffect(@NotNull PotionEffect effect, boolean force); public boolean addPotionEffect(@NotNull PotionEffect effect, boolean force);
/** /**
@ -771,7 +771,7 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* @deprecated entity groupings are now managed by tags, not categories * @deprecated entity groupings are now managed by tags, not categories
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.20.5")
public EntityCategory getCategory(); public EntityCategory getCategory();
/** /**

View File

@ -30,7 +30,7 @@ public interface Ocelot extends Animals {
* @deprecated Cats are now a separate entity. * @deprecated Cats are now a separate entity.
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.19.4")
public Type getCatType(); public Type getCatType();
/** /**
@ -39,7 +39,7 @@ public interface Ocelot extends Animals {
* @param type New type of this cat. * @param type New type of this cat.
* @deprecated Cats are now a separate entity. * @deprecated Cats are now a separate entity.
*/ */
@Deprecated @Deprecated(since = "1.19.4")
public void setCatType(@NotNull Type type); public void setCatType(@NotNull Type type);
/** /**
@ -47,7 +47,7 @@ public interface Ocelot extends Animals {
* *
* @deprecated Cats are now a separate entity. * @deprecated Cats are now a separate entity.
*/ */
@Deprecated @Deprecated(since = "1.14")
public enum Type { public enum Type {
WILD_OCELOT(0), WILD_OCELOT(0),
BLACK_CAT(1), BLACK_CAT(1),
@ -73,7 +73,7 @@ public interface Ocelot extends Animals {
* @return Type ID. * @return Type ID.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public int getId() { public int getId() {
return id; return id;
} }
@ -85,7 +85,7 @@ public interface Ocelot extends Animals {
* @return Resulting type, or null if not found. * @return Resulting type, or null if not found.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
@Nullable @Nullable
public static Type getType(int id) { public static Type getType(int id) {
return (id >= types.length) ? null : types[id]; return (id >= types.length) ? null : types[id];

View File

@ -55,7 +55,7 @@ public interface PiglinAbstract extends Monster, Ageable {
* @return Whether the piglin is a baby * @return Whether the piglin is a baby
* @deprecated see {@link Ageable#isAdult()} * @deprecated see {@link Ageable#isAdult()}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public boolean isBaby(); public boolean isBaby();
/** /**
@ -64,6 +64,6 @@ public interface PiglinAbstract extends Monster, Ageable {
* @param flag Whether the piglin is a baby * @param flag Whether the piglin is a baby
* @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()} * @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public void setBaby(boolean flag); public void setBaby(boolean flag);
} }

View File

@ -360,7 +360,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* context/time which it is accessed * context/time which it is accessed
*/ */
@Override @Override
@Deprecated @Deprecated(since = "1.16.1")
public boolean isOnGround(); public boolean isOnGround();
/** /**
@ -437,7 +437,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
*/ */
@Nullable @Nullable
@Override @Override
@Deprecated @Deprecated(since = "1.20.4")
public Location getBedSpawnLocation(); public Location getBedSpawnLocation();
/** /**
@ -459,7 +459,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @deprecated Misleading name. This method sets the player's respawn * @deprecated Misleading name. This method sets the player's respawn
* location more generally and is not limited to beds. * location more generally and is not limited to beds.
*/ */
@Deprecated @Deprecated(since = "1.20.4")
public void setBedSpawnLocation(@Nullable Location location); public void setBedSpawnLocation(@Nullable Location location);
/** /**
@ -480,7 +480,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @deprecated Misleading name. This method sets the player's respawn * @deprecated Misleading name. This method sets the player's respawn
* location more generally and is not limited to beds. * location more generally and is not limited to beds.
*/ */
@Deprecated @Deprecated(since = "1.20.4")
public void setBedSpawnLocation(@Nullable Location location, boolean force); public void setBedSpawnLocation(@Nullable Location location, boolean force);
/** /**
@ -525,7 +525,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param note The note ID. * @param note The note ID.
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public void playNote(@NotNull Location loc, byte instrument, byte note); public void playNote(@NotNull Location loc, byte instrument, byte note);
/** /**
@ -756,7 +756,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param data a data bit needed for some effects * @param data a data bit needed for some effects
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public void playEffect(@NotNull Location loc, @NotNull Effect effect, int data); public void playEffect(@NotNull Location loc, @NotNull Effect effect, int data);
/** /**
@ -802,7 +802,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param data The block data * @param data The block data
* @deprecated Magic value * @deprecated Magic value
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public void sendBlockChange(@NotNull Location loc, @NotNull Material material, byte data); public void sendBlockChange(@NotNull Location loc, @NotNull Material material, byte data);
/** /**
@ -856,7 +856,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @deprecated suppressLightUpdates is not functional in versions greater * @deprecated suppressLightUpdates is not functional in versions greater
* than 1.19.4 * than 1.19.4
*/ */
@Deprecated @Deprecated(since = "1.20")
public void sendBlockChanges(@NotNull Collection<BlockState> blocks, boolean suppressLightUpdates); public void sendBlockChanges(@NotNull Collection<BlockState> blocks, boolean suppressLightUpdates);
/** /**
@ -1316,7 +1316,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param player Player to hide * @param player Player to hide
* @deprecated see {@link #hidePlayer(Plugin, Player)} * @deprecated see {@link #hidePlayer(Plugin, Player)}
*/ */
@Deprecated @Deprecated(since = "1.12.2")
public void hidePlayer(@NotNull Player player); public void hidePlayer(@NotNull Player player);
/** /**
@ -1333,7 +1333,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param player Player to show * @param player Player to show
* @deprecated see {@link #showPlayer(Plugin, Player)} * @deprecated see {@link #showPlayer(Plugin, Player)}
*/ */
@Deprecated @Deprecated(since = "1.12.2")
public void showPlayer(@NotNull Player player); public void showPlayer(@NotNull Player player);
/** /**
@ -1463,7 +1463,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @deprecated Minecraft no longer uses textures packs. Instead you * @deprecated Minecraft no longer uses textures packs. Instead you
* should use {@link #setResourcePack(String)}. * should use {@link #setResourcePack(String)}.
*/ */
@Deprecated @Deprecated(since = "1.7.2")
public void setTexturePack(@NotNull String url); public void setTexturePack(@NotNull String url);
/** /**
@ -1918,7 +1918,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param subtitle Subtitle text * @param subtitle Subtitle text
* @deprecated API behavior subject to change * @deprecated API behavior subject to change
*/ */
@Deprecated @Deprecated(since = "1.8.7")
public void sendTitle(@Nullable String title, @Nullable String subtitle); public void sendTitle(@Nullable String title, @Nullable String subtitle);
/** /**

View File

@ -29,7 +29,7 @@ public interface Projectile extends Entity {
* @return true if it should bounce. * @return true if it should bounce.
* @deprecated does not do anything * @deprecated does not do anything
*/ */
@Deprecated @Deprecated(since = "1.20.2")
public boolean doesBounce(); public boolean doesBounce();
/** /**
@ -39,6 +39,6 @@ public interface Projectile extends Entity {
* @param doesBounce whether or not it should bounce. * @param doesBounce whether or not it should bounce.
* @deprecated does not do anything * @deprecated does not do anything
*/ */
@Deprecated @Deprecated(since = "1.20.2")
public void setBounce(boolean doesBounce); public void setBounce(boolean doesBounce);
} }

View File

@ -48,7 +48,7 @@ public interface Skeleton extends AbstractSkeleton {
* @deprecated classes are different types. This interface only remains in * @deprecated classes are different types. This interface only remains in
* the Skeleton interface to preserve backwards compatibility. * the Skeleton interface to preserve backwards compatibility.
*/ */
@Deprecated @Deprecated(since = "1.11")
public enum SkeletonType { public enum SkeletonType {
/** /**

View File

@ -5,5 +5,5 @@ package org.bukkit.entity;
* *
* @deprecated splash status depends on only on the potion item. * @deprecated splash status depends on only on the potion item.
*/ */
@Deprecated @Deprecated(since = "1.14")
public interface SplashPotion extends ThrownPotion { } public interface SplashPotion extends ThrownPotion { }

View File

@ -4,5 +4,5 @@ package org.bukkit.entity;
* @deprecated tipped status depends only on base potion type not being * @deprecated tipped status depends only on base potion type not being
* UNCRAFTABLE and effects being empty. * UNCRAFTABLE and effects being empty.
*/ */
@Deprecated @Deprecated(since = "1.14")
public interface TippedArrow extends Arrow { } public interface TippedArrow extends Arrow { }

View File

@ -11,7 +11,7 @@ public interface Zoglin extends Monster, Ageable {
* @return Whether the zoglin is a baby * @return Whether the zoglin is a baby
* @deprecated see {@link Ageable#isAdult()} * @deprecated see {@link Ageable#isAdult()}
*/ */
@Deprecated @Deprecated(since = "1.6.2")
public boolean isBaby(); public boolean isBaby();
/** /**
@ -20,6 +20,6 @@ public interface Zoglin extends Monster, Ageable {
* @param flag Whether the zoglin is a baby * @param flag Whether the zoglin is a baby
* @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()} * @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public void setBaby(boolean flag); public void setBaby(boolean flag);
} }

View File

@ -14,7 +14,7 @@ public interface Zombie extends Monster, Ageable {
* @return Whether the zombie is a baby * @return Whether the zombie is a baby
* @deprecated see {@link Ageable#isAdult()} * @deprecated see {@link Ageable#isAdult()}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public boolean isBaby(); public boolean isBaby();
/** /**
@ -23,7 +23,7 @@ public interface Zombie extends Monster, Ageable {
* @param flag Whether the zombie is a baby * @param flag Whether the zombie is a baby
* @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()} * @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()}
*/ */
@Deprecated @Deprecated(since = "1.16.2")
public void setBaby(boolean flag); public void setBaby(boolean flag);
/** /**
@ -32,14 +32,14 @@ public interface Zombie extends Monster, Ageable {
* @return Whether the zombie is a villager * @return Whether the zombie is a villager
* @deprecated check if instanceof {@link ZombieVillager}. * @deprecated check if instanceof {@link ZombieVillager}.
*/ */
@Deprecated @Deprecated(since = "1.10.2")
public boolean isVillager(); public boolean isVillager();
/** /**
* @param flag flag * @param flag flag
* @deprecated must spawn {@link ZombieVillager}. * @deprecated must spawn {@link ZombieVillager}.
*/ */
@Deprecated @Deprecated(since = "1.9")
@Contract("_ -> fail") @Contract("_ -> fail")
public void setVillager(boolean flag); public void setVillager(boolean flag);
@ -47,7 +47,7 @@ public interface Zombie extends Monster, Ageable {
* @param profession profession * @param profession profession
* @see ZombieVillager#getVillagerProfession() * @see ZombieVillager#getVillagerProfession()
*/ */
@Deprecated @Deprecated(since = "1.10.2")
@Contract("_ -> fail") @Contract("_ -> fail")
public void setVillagerProfession(Villager.Profession profession); public void setVillagerProfession(Villager.Profession profession);
@ -55,7 +55,7 @@ public interface Zombie extends Monster, Ageable {
* @return profession * @return profession
* @see ZombieVillager#getVillagerProfession() * @see ZombieVillager#getVillagerProfession()
*/ */
@Deprecated @Deprecated(since = "1.10.2")
@Nullable @Nullable
@Contract("-> null") @Contract("-> null")
public Villager.Profession getVillagerProfession(); public Villager.Profession getVillagerProfession();

View File

@ -17,7 +17,7 @@ public class BlockBurnEvent extends BlockEvent implements Cancellable {
private boolean cancelled; private boolean cancelled;
private final Block ignitingBlock; private final Block ignitingBlock;
@Deprecated @Deprecated(since = "1.11.2")
public BlockBurnEvent(@NotNull final Block block) { public BlockBurnEvent(@NotNull final Block block) {
this(block, null); this(block, null);
} }

View File

@ -26,7 +26,7 @@ public class BlockCanBuildEvent extends BlockEvent {
protected BlockData blockData; protected BlockData blockData;
private final Player player; private final Player player;
@Deprecated @Deprecated(since = "1.13.2")
public BlockCanBuildEvent(@NotNull final Block block, @NotNull final BlockData type, final boolean canBuild) { public BlockCanBuildEvent(@NotNull final Block block, @NotNull final BlockData type, final boolean canBuild) {
this(block, null, type, canBuild); this(block, null, type, canBuild);
} }

View File

@ -16,7 +16,7 @@ public class BlockPistonExtendEvent extends BlockPistonEvent {
private final int length; private final int length;
private List<Block> blocks; private List<Block> blocks;
@Deprecated @Deprecated(since = "1.8")
public BlockPistonExtendEvent(@NotNull final Block block, final int length, @NotNull final BlockFace direction) { public BlockPistonExtendEvent(@NotNull final Block block, final int length, @NotNull final BlockFace direction) {
super(block, direction); super(block, direction);
@ -37,7 +37,7 @@ public class BlockPistonExtendEvent extends BlockPistonEvent {
* @deprecated slime blocks make the value of this method * @deprecated slime blocks make the value of this method
* inaccurate due to blocks being pushed at the side * inaccurate due to blocks being pushed at the side
*/ */
@Deprecated @Deprecated(since = "1.8")
public int getLength() { public int getLength() {
return this.length; return this.length;
} }

View File

@ -26,7 +26,7 @@ public class BlockPistonRetractEvent extends BlockPistonEvent {
* *
* @return The possible location of the possibly moving block. * @return The possible location of the possibly moving block.
*/ */
@Deprecated @Deprecated(since = "1.8")
@NotNull @NotNull
public Location getRetractLocation() { public Location getRetractLocation() {
return getBlock().getRelative(getDirection(), 2).getLocation(); return getBlock().getRelative(getDirection(), 2).getLocation();

View File

@ -24,7 +24,7 @@ public class BlockPlaceEvent extends BlockEvent implements Cancellable {
protected Player player; protected Player player;
protected EquipmentSlot hand; protected EquipmentSlot hand;
@Deprecated @Deprecated(since = "1.9")
public BlockPlaceEvent(@NotNull final Block placedBlock, @NotNull final BlockState replacedBlockState, @NotNull final Block placedAgainst, @NotNull final ItemStack itemInHand, @NotNull final Player thePlayer, final boolean canBuild) { public BlockPlaceEvent(@NotNull final Block placedBlock, @NotNull final BlockState replacedBlockState, @NotNull final Block placedAgainst, @NotNull final ItemStack itemInHand, @NotNull final Player thePlayer, final boolean canBuild) {
this(placedBlock, replacedBlockState, placedAgainst, itemInHand, thePlayer, canBuild, EquipmentSlot.HAND); this(placedBlock, replacedBlockState, placedAgainst, itemInHand, thePlayer, canBuild, EquipmentSlot.HAND);
} }

View File

@ -60,7 +60,7 @@ public class CauldronLevelChangeEvent extends BlockEvent implements Cancellable
* @see #getBlock() * @see #getBlock()
* @deprecated not all cauldron contents are Levelled * @deprecated not all cauldron contents are Levelled
*/ */
@Deprecated @Deprecated(since = "1.17")
public int getOldLevel() { public int getOldLevel() {
BlockData oldBlock = getBlock().getBlockData(); BlockData oldBlock = getBlock().getBlockData();
return (oldBlock instanceof Levelled) ? ((Levelled) oldBlock).getLevel() : ((oldBlock.getMaterial() == Material.CAULDRON) ? 0 : 3); return (oldBlock instanceof Levelled) ? ((Levelled) oldBlock).getLevel() : ((oldBlock.getMaterial() == Material.CAULDRON) ? 0 : 3);
@ -73,7 +73,7 @@ public class CauldronLevelChangeEvent extends BlockEvent implements Cancellable
* @see #getNewState() * @see #getNewState()
* @deprecated not all cauldron contents are Levelled * @deprecated not all cauldron contents are Levelled
*/ */
@Deprecated @Deprecated(since = "1.17")
public int getNewLevel() { public int getNewLevel() {
BlockData newBlock = newState.getBlockData(); BlockData newBlock = newState.getBlockData();
return (newBlock instanceof Levelled) ? ((Levelled) newBlock).getLevel() : ((newBlock.getMaterial() == Material.CAULDRON) ? 0 : 3); return (newBlock instanceof Levelled) ? ((Levelled) newBlock).getLevel() : ((newBlock.getMaterial() == Material.CAULDRON) ? 0 : 3);
@ -86,7 +86,7 @@ public class CauldronLevelChangeEvent extends BlockEvent implements Cancellable
* @see #getNewState() * @see #getNewState()
* @deprecated not all cauldron contents are Levelled * @deprecated not all cauldron contents are Levelled
*/ */
@Deprecated @Deprecated(since = "1.17")
public void setNewLevel(int newLevel) { public void setNewLevel(int newLevel) {
Preconditions.checkArgument(0 <= newLevel && newLevel <= 3, "Cauldron level out of bounds 0 <= %s <= 3", newLevel); Preconditions.checkArgument(0 <= newLevel && newLevel <= 3, "Cauldron level out of bounds 0 <= %s <= 3", newLevel);
if (newLevel == 0) { if (newLevel == 0) {

View File

@ -60,7 +60,7 @@ public class NotePlayEvent extends BlockEvent implements Cancellable {
* @param instrument the Instrument. Has no effect if null. * @param instrument the Instrument. Has no effect if null.
* @deprecated no effect on newer Minecraft versions * @deprecated no effect on newer Minecraft versions
*/ */
@Deprecated @Deprecated(since = "1.13")
public void setInstrument(@NotNull Instrument instrument) { public void setInstrument(@NotNull Instrument instrument) {
if (instrument != null) { if (instrument != null) {
this.instrument = instrument; this.instrument = instrument;
@ -73,7 +73,7 @@ public class NotePlayEvent extends BlockEvent implements Cancellable {
* @param note the Note. Has no effect if null. * @param note the Note. Has no effect if null.
* @deprecated no effect on newer Minecraft versions * @deprecated no effect on newer Minecraft versions
*/ */
@Deprecated @Deprecated(since = "1.13")
public void setNote(@NotNull Note note) { public void setNote(@NotNull Note note) {
if (note != null) { if (note != null) {
this.note = note; this.note = note;

View File

@ -20,7 +20,7 @@ public class SignChangeEvent extends BlockEvent implements Cancellable {
private final String[] lines; private final String[] lines;
private final Side side; private final Side side;
@Deprecated @Deprecated(since = "1.19.4")
public SignChangeEvent(@NotNull final Block theBlock, @NotNull final Player thePlayer, @NotNull final String[] theLines) { public SignChangeEvent(@NotNull final Block theBlock, @NotNull final Player thePlayer, @NotNull final String[] theLines) {
this(theBlock, thePlayer, theLines, Side.FRONT); this(theBlock, thePlayer, theLines, Side.FRONT);
} }

View File

@ -69,7 +69,7 @@ public class PrepareItemEnchantEvent extends InventoryEvent implements Cancellab
* @deprecated Use {@link #getOffers()} instead of this method * @deprecated Use {@link #getOffers()} instead of this method
*/ */
@NotNull @NotNull
@Deprecated @Deprecated(since = "1.20.5")
public int[] getExpLevelCostsOffered() { public int[] getExpLevelCostsOffered() {
int[] levelOffers = new int[offers.length]; int[] levelOffers = new int[offers.length];
for (int i = 0; i < offers.length; i++) { for (int i = 0; i < offers.length; i++) {

View File

@ -57,7 +57,7 @@ public class CreatureSpawnEvent extends EntitySpawnEvent {
* {@link ChunkLoadEvent#isNewChunk()} and {@link Chunk#getEntities()} * {@link ChunkLoadEvent#isNewChunk()} and {@link Chunk#getEntities()}
* for similar effect. * for similar effect.
*/ */
@Deprecated @Deprecated(since = "1.14")
CHUNK_GEN, CHUNK_GEN,
/** /**
* When a creature spawns from a spawner * When a creature spawns from a spawner

View File

@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable;
public class EntityCombustByBlockEvent extends EntityCombustEvent { public class EntityCombustByBlockEvent extends EntityCombustEvent {
private final Block combuster; private final Block combuster;
@Deprecated @Deprecated(since = "1.21")
public EntityCombustByBlockEvent(@Nullable final Block combuster, @NotNull final Entity combustee, final int duration) { public EntityCombustByBlockEvent(@Nullable final Block combuster, @NotNull final Entity combustee, final int duration) {
this(combuster, combustee, (float) duration); this(combuster, combustee, (float) duration);
} }

View File

@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
public class EntityCombustByEntityEvent extends EntityCombustEvent { public class EntityCombustByEntityEvent extends EntityCombustEvent {
private final Entity combuster; private final Entity combuster;
@Deprecated @Deprecated(since = "1.21")
public EntityCombustByEntityEvent(@NotNull final Entity combuster, @NotNull final Entity combustee, final int duration) { public EntityCombustByEntityEvent(@NotNull final Entity combuster, @NotNull final Entity combustee, final int duration) {
this(combuster, combustee, (float) duration); this(combuster, combustee, (float) duration);
} }

View File

@ -15,7 +15,7 @@ public class EntityCombustEvent extends EntityEvent implements Cancellable {
private float duration; private float duration;
private boolean cancel; private boolean cancel;
@Deprecated @Deprecated(since = "1.21")
public EntityCombustEvent(@NotNull final Entity combustee, final int duration) { public EntityCombustEvent(@NotNull final Entity combustee, final int duration) {
this(combustee, (float) duration); this(combustee, (float) duration);
} }
@ -66,7 +66,7 @@ public class EntityCombustEvent extends EntityEvent implements Cancellable {
* @see #setDuration(float) * @see #setDuration(float)
* @deprecated duration is now a float * @deprecated duration is now a float
*/ */
@Deprecated(forRemoval = true) @Deprecated(since = "1.21", forRemoval = true)
public void setDuration(int duration) { public void setDuration(int duration) {
this.duration = duration; this.duration = duration;
} }

View File

@ -14,7 +14,7 @@ import org.jetbrains.annotations.NotNull;
* *
* @deprecated Use {@link PortalCreateEvent} * @deprecated Use {@link PortalCreateEvent}
*/ */
@Deprecated @Deprecated(since = "1.14.1")
public class EntityCreatePortalEvent extends EntityEvent implements Cancellable { public class EntityCreatePortalEvent extends EntityEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList(); private static final HandlerList handlers = new HandlerList();
private final List<BlockState> blocks; private final List<BlockState> blocks;

View File

@ -17,7 +17,7 @@ public class EntityDamageByBlockEvent extends EntityDamageEvent {
private final Block damager; private final Block damager;
private final BlockState damagerState; private final BlockState damagerState;
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.4", forRemoval = true)
public EntityDamageByBlockEvent(@Nullable final Block damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, final double damage) { public EntityDamageByBlockEvent(@Nullable final Block damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, final double damage) {
this(damager, (damager != null) ? damager.getState() : null, damagee, cause, (damager != null) ? DamageSource.builder(DamageType.GENERIC).withDamageLocation(damager.getLocation()).build() : DamageSource.builder(DamageType.GENERIC).build(), damage); this(damager, (damager != null) ? damager.getState() : null, damagee, cause, (damager != null) ? DamageSource.builder(DamageType.GENERIC).withDamageLocation(damager.getLocation()).build() : DamageSource.builder(DamageType.GENERIC).build(), damage);
} }
@ -28,7 +28,7 @@ public class EntityDamageByBlockEvent extends EntityDamageEvent {
this.damagerState = damagerState; this.damagerState = damagerState;
} }
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.4", forRemoval = true)
public EntityDamageByBlockEvent(@Nullable final Block damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, @NotNull final Map<DamageModifier, Double> modifiers, @NotNull final Map<DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) { public EntityDamageByBlockEvent(@Nullable final Block damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, @NotNull final Map<DamageModifier, Double> modifiers, @NotNull final Map<DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) {
this(damager, (damager != null) ? damager.getState() : null, damagee, cause, (damager != null) ? DamageSource.builder(DamageType.GENERIC).withDamageLocation(damager.getLocation()).build() : DamageSource.builder(DamageType.GENERIC).build(), modifiers, modifierFunctions); this(damager, (damager != null) ? damager.getState() : null, damagee, cause, (damager != null) ? DamageSource.builder(DamageType.GENERIC).withDamageLocation(damager.getLocation()).build() : DamageSource.builder(DamageType.GENERIC).build(), modifiers, modifierFunctions);
} }

View File

@ -13,7 +13,7 @@ import org.jetbrains.annotations.NotNull;
public class EntityDamageByEntityEvent extends EntityDamageEvent { public class EntityDamageByEntityEvent extends EntityDamageEvent {
private final Entity damager; private final Entity damager;
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.4", forRemoval = true)
public EntityDamageByEntityEvent(@NotNull final Entity damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, final double damage) { public EntityDamageByEntityEvent(@NotNull final Entity damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, final double damage) {
this(damager, damagee, cause, DamageSource.builder(DamageType.GENERIC).withCausingEntity(damager).withDirectEntity(damager).build(), damage); this(damager, damagee, cause, DamageSource.builder(DamageType.GENERIC).withCausingEntity(damager).withDirectEntity(damager).build(), damage);
} }
@ -23,7 +23,7 @@ public class EntityDamageByEntityEvent extends EntityDamageEvent {
this.damager = damager; this.damager = damager;
} }
@Deprecated(forRemoval = true) @Deprecated(since = "1.20.4", forRemoval = true)
public EntityDamageByEntityEvent(@NotNull final Entity damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, @NotNull final Map<DamageModifier, Double> modifiers, @NotNull final Map<DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) { public EntityDamageByEntityEvent(@NotNull final Entity damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, @NotNull final Map<DamageModifier, Double> modifiers, @NotNull final Map<DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) {
this(damager, damagee, cause, DamageSource.builder(DamageType.GENERIC).withCausingEntity(damager).withDirectEntity(damager).build(), modifiers, modifierFunctions); this(damager, damagee, cause, DamageSource.builder(DamageType.GENERIC).withCausingEntity(damager).withDirectEntity(damager).build(), modifiers, modifierFunctions);
} }

Some files were not shown because too many files have changed in this diff Show More