diff --git a/paper-api/src/main/java/com/destroystokyo/paper/NamespacedTag.java b/paper-api/src/main/java/com/destroystokyo/paper/NamespacedTag.java index c976995a0f..495b2d5f5a 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/NamespacedTag.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/NamespacedTag.java @@ -5,6 +5,7 @@ import java.util.Locale; import java.util.UUID; import java.util.regex.Pattern; import org.bukkit.plugin.Plugin; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -126,6 +127,7 @@ public final class NamespacedTag implements com.destroystokyo.paper.Namespaced { * @deprecated should never be used by plugins, for internal use only!! */ @Deprecated + @ApiStatus.Internal public static NamespacedTag randomKey() { return new NamespacedTag(BUKKIT, UUID.randomUUID().toString()); } diff --git a/paper-api/src/main/java/com/destroystokyo/paper/event/entity/SkeletonHorseTrapEvent.java b/paper-api/src/main/java/com/destroystokyo/paper/event/entity/SkeletonHorseTrapEvent.java index a70f4972a0..357cc548fe 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/event/entity/SkeletonHorseTrapEvent.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/event/entity/SkeletonHorseTrapEvent.java @@ -1,6 +1,5 @@ package com.destroystokyo.paper.event.entity; -import com.google.common.collect.ImmutableList; import java.util.List; import org.bukkit.entity.HumanEntity; import org.bukkit.entity.SkeletonHorse; @@ -21,12 +20,6 @@ public class SkeletonHorseTrapEvent extends EntityEvent implements Cancellable { private final List eligibleHumans; private boolean cancelled; - @Deprecated - @ApiStatus.Internal - public SkeletonHorseTrapEvent(final SkeletonHorse horse) { - this(horse, ImmutableList.of()); - } - @ApiStatus.Internal public SkeletonHorseTrapEvent(final SkeletonHorse horse, final List eligibleHumans) { super(horse); diff --git a/paper-api/src/main/java/com/destroystokyo/paper/event/player/IllegalPacketEvent.java b/paper-api/src/main/java/com/destroystokyo/paper/event/player/IllegalPacketEvent.java index 4463792826..46a84765ee 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/event/player/IllegalPacketEvent.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/event/player/IllegalPacketEvent.java @@ -10,7 +10,7 @@ import org.jetbrains.annotations.Nullable; /** * @deprecated Not used */ -@Deprecated(since = "1.16.4") +@Deprecated(since = "1.16.4", forRemoval = true) public class IllegalPacketEvent extends PlayerEvent { private static final HandlerList HANDLER_LIST = new HandlerList(); diff --git a/paper-api/src/main/java/com/destroystokyo/paper/event/player/PlayerClientOptionsChangeEvent.java b/paper-api/src/main/java/com/destroystokyo/paper/event/player/PlayerClientOptionsChangeEvent.java index 5245955fb3..6221601d08 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/event/player/PlayerClientOptionsChangeEvent.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/event/player/PlayerClientOptionsChangeEvent.java @@ -30,20 +30,6 @@ public class PlayerClientOptionsChangeEvent extends PlayerEvent { private final boolean textFilteringEnabled; private final ParticleVisibility particleVisibility; - @Deprecated - public PlayerClientOptionsChangeEvent(final Player player, final String locale, final int viewDistance, final ChatVisibility chatVisibility, final boolean chatColors, final SkinParts skinParts, final MainHand mainHand) { - super(player); - this.locale = locale; - this.viewDistance = viewDistance; - this.chatVisibility = chatVisibility; - this.chatColors = chatColors; - this.skinparts = skinParts; - this.mainHand = mainHand; - this.allowsServerListings = false; - this.textFilteringEnabled = false; - this.particleVisibility = ParticleVisibility.ALL; - } - @ApiStatus.Internal public PlayerClientOptionsChangeEvent(final Player player, final Map, ?> options) { super(player); diff --git a/paper-api/src/main/java/com/destroystokyo/paper/event/profile/ProfileWhitelistVerifyEvent.java b/paper-api/src/main/java/com/destroystokyo/paper/event/profile/ProfileWhitelistVerifyEvent.java index 901efb61fd..45d198ebff 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/event/profile/ProfileWhitelistVerifyEvent.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/event/profile/ProfileWhitelistVerifyEvent.java @@ -50,12 +50,6 @@ public class ProfileWhitelistVerifyEvent extends Event { private boolean whitelisted; private @Nullable Component kickMessage; - @Deprecated - @ApiStatus.Internal - public ProfileWhitelistVerifyEvent(final PlayerProfile profile, final boolean whitelistEnabled, final boolean whitelisted, final boolean isOp, final @Nullable String kickMessage) { - this(profile, whitelistEnabled, whitelisted, isOp, kickMessage == null ? null : LegacyComponentSerializer.legacySection().deserialize(kickMessage)); - } - @ApiStatus.Internal public ProfileWhitelistVerifyEvent(final PlayerProfile profile, final boolean whitelistEnabled, final boolean whitelisted, final boolean isOp, final @Nullable Component kickMessage) { this.profile = profile; diff --git a/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java b/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java index f87e304f83..5ed6c6f8b8 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java @@ -55,18 +55,6 @@ public class PaperServerListPingEvent extends ServerListPingEvent implements Can private boolean originalPlayerCount = true; private Object[] players; - @Deprecated - @ApiStatus.Internal - public PaperServerListPingEvent(@NotNull StatusClient client, @NotNull String motd, int numPlayers, int maxPlayers, - @NotNull String version, int protocolVersion, @Nullable CachedServerIcon favicon) { - super("", client.getAddress().getAddress(), motd, numPlayers, maxPlayers); - this.client = client; - this.numPlayers = numPlayers; - this.version = version; - this.protocolVersion = protocolVersion; - setServerIcon(favicon); - } - @ApiStatus.Internal public PaperServerListPingEvent(@NotNull StatusClient client, @NotNull net.kyori.adventure.text.Component motd, int numPlayers, int maxPlayers, @NotNull String version, int protocolVersion, @Nullable CachedServerIcon favicon) { diff --git a/paper-api/src/main/java/org/bukkit/Art.java b/paper-api/src/main/java/org/bukkit/Art.java index 82daa6941c..bb8755c266 100644 --- a/paper-api/src/main/java/org/bukkit/Art.java +++ b/paper-api/src/main/java/org/bukkit/Art.java @@ -109,9 +109,9 @@ public interface Art extends OldEnum, Keyed { * Get the ID of this painting. * * @return The ID of this painting - * @deprecated Magic value + * @deprecated Magic value that is based on inconsistent, data-driven registry */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) int getId(); // Paper start - deprecate getKey @@ -162,9 +162,9 @@ public interface Art extends OldEnum, Keyed { * * @param id The ID * @return The painting - * @deprecated Magic value + * @deprecated Magic value that is based on inconsistent, data-driven registry */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) @Nullable static Art getById(int id) { for (Art art : Registry.ART) { diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index db47fe6560..4eb723afac 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/src/main/java/org/bukkit/Bukkit.java @@ -930,7 +930,6 @@ public final class Bukkit { * @param id the id of the map to get * @return a map view if it exists, or null otherwise */ - // @Deprecated(since = "1.6.2") // Paper - Not a magic value @Nullable public static MapView getMap(int id) { return server.getMap(id); @@ -1392,7 +1391,7 @@ public final class Bukkit { * @return true if the server should send a preview, false otherwise * @deprecated chat previews have been removed */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) public static boolean shouldSendChatPreviews() { return server.shouldSendChatPreviews(); } @@ -1515,7 +1514,6 @@ public final class Bukkit { * @return an offline player * @see #getOfflinePlayer(java.util.UUID) */ - // @Deprecated(since = "1.7.5") // Paper @NotNull public static OfflinePlayer getOfflinePlayer(@NotNull String name) { return server.getOfflinePlayer(name); diff --git a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java index 725d7944ce..3370baab77 100644 --- a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java +++ b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java @@ -65,7 +65,7 @@ public interface ChunkSnapshot { * @return 0-15 * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) int getData(int x, int y, int z); /** diff --git a/paper-api/src/main/java/org/bukkit/Effect.java b/paper-api/src/main/java/org/bukkit/Effect.java index e013d83fb3..089c485ce1 100644 --- a/paper-api/src/main/java/org/bukkit/Effect.java +++ b/paper-api/src/main/java/org/bukkit/Effect.java @@ -27,70 +27,70 @@ public enum Effect { * @deprecated no longer exists * @see Sound#BLOCK_WOODEN_DOOR_OPEN */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) DOOR_TOGGLE(1006, Type.SOUND), /** * Sound of a door opening. * @deprecated no longer exists * @see Sound#BLOCK_IRON_DOOR_OPEN */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) IRON_DOOR_TOGGLE(1005, Type.SOUND), /** * Sound of a trapdoor opening. * @deprecated no longer exists * @see Sound#BLOCK_WOODEN_TRAPDOOR_OPEN */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) TRAPDOOR_TOGGLE(1007, Type.SOUND), /** * Sound of a door opening. * @deprecated no longer exists * @see Sound#BLOCK_IRON_TRAPDOOR_OPEN */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) IRON_TRAPDOOR_TOGGLE(1037, Type.SOUND), /** * Sound of a door opening. * @deprecated no longer exists * @see Sound#BLOCK_FENCE_GATE_OPEN */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) FENCE_GATE_TOGGLE(1008, Type.SOUND), /** * Sound of a door closing. * @deprecated no longer exists * @see Sound#BLOCK_WOODEN_DOOR_CLOSE */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) DOOR_CLOSE(1012, Type.SOUND), /** * Sound of a door closing. * @deprecated no longer exists * @see Sound#BLOCK_IRON_DOOR_CLOSE */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) IRON_DOOR_CLOSE(1011, Type.SOUND), /** * Sound of a trapdoor closing. * @deprecated no longer exists * @see Sound#BLOCK_WOODEN_TRAPDOOR_CLOSE */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) TRAPDOOR_CLOSE(1013, Type.SOUND), /** * Sound of a door closing. * @deprecated no longer exists * @see Sound#BLOCK_IRON_TRAPDOOR_CLOSE */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) IRON_TRAPDOOR_CLOSE(1036, Type.SOUND), /** * Sound of a door closing. * @deprecated no longer exists * @see Sound#BLOCK_FENCE_GATE_CLOSE */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) FENCE_GATE_CLOSE(1014, Type.SOUND), /** * Sound of fire being extinguished. diff --git a/paper-api/src/main/java/org/bukkit/Material.java b/paper-api/src/main/java/org/bukkit/Material.java index 9afafc00e4..d43ce5dbf7 100644 --- a/paper-api/src/main/java/org/bukkit/Material.java +++ b/paper-api/src/main/java/org/bukkit/Material.java @@ -3815,940 +3815,940 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla POTTED_OPEN_EYEBLOSSOM(24999), POTTED_CLOSED_EYEBLOSSOM(16694), // ----- Legacy Separator ----- - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_AIR(0, 0), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE(1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GRASS(2), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIRT(3), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COBBLESTONE(4), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD(5, org.bukkit.material.Wood.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SAPLING(6, org.bukkit.material.Sapling.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BEDROCK(7), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WATER(8, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STATIONARY_WATER(9, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LAVA(10, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STATIONARY_LAVA(11, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SAND(12), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GRAVEL(13), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_ORE(14), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_ORE(15), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COAL_ORE(16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LOG(17, org.bukkit.material.Tree.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEAVES(18, org.bukkit.material.Leaves.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPONGE(19), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GLASS(20), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LAPIS_ORE(21), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LAPIS_BLOCK(22), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DISPENSER(23, org.bukkit.material.Dispenser.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SANDSTONE(24, org.bukkit.material.Sandstone.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NOTE_BLOCK(25), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BED_BLOCK(26, org.bukkit.material.Bed.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_POWERED_RAIL(27, org.bukkit.material.PoweredRail.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DETECTOR_RAIL(28, org.bukkit.material.DetectorRail.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PISTON_STICKY_BASE(29, org.bukkit.material.PistonBaseMaterial.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WEB(30), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LONG_GRASS(31, org.bukkit.material.LongGrass.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DEAD_BUSH(32), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PISTON_BASE(33, org.bukkit.material.PistonBaseMaterial.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PISTON_EXTENSION(34, org.bukkit.material.PistonExtensionMaterial.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOL(35, org.bukkit.material.Wool.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PISTON_MOVING_PIECE(36), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_YELLOW_FLOWER(37), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RED_ROSE(38), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BROWN_MUSHROOM(39), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RED_MUSHROOM(40), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_BLOCK(41), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_BLOCK(42), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DOUBLE_STEP(43, org.bukkit.material.Step.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STEP(44, org.bukkit.material.Step.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BRICK(45), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TNT(46), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOOKSHELF(47), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MOSSY_COBBLESTONE(48), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_OBSIDIAN(49), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TORCH(50, org.bukkit.material.Torch.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FIRE(51), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MOB_SPAWNER(52), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_STAIRS(53, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHEST(54, org.bukkit.material.Chest.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_WIRE(55, org.bukkit.material.RedstoneWire.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_ORE(56), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_BLOCK(57), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WORKBENCH(58), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CROPS(59, org.bukkit.material.Crops.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SOIL(60, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FURNACE(61, org.bukkit.material.Furnace.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BURNING_FURNACE(62, org.bukkit.material.Furnace.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SIGN_POST(63, 64, org.bukkit.material.Sign.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOODEN_DOOR(64, org.bukkit.material.Door.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LADDER(65, org.bukkit.material.Ladder.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RAILS(66, org.bukkit.material.Rails.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COBBLESTONE_STAIRS(67, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WALL_SIGN(68, 64, org.bukkit.material.Sign.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEVER(69, org.bukkit.material.Lever.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_PLATE(70, org.bukkit.material.PressurePlate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_DOOR_BLOCK(71, org.bukkit.material.Door.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_PLATE(72, org.bukkit.material.PressurePlate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_ORE(73), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GLOWING_REDSTONE_ORE(74), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_TORCH_OFF(75, org.bukkit.material.RedstoneTorch.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_TORCH_ON(76, org.bukkit.material.RedstoneTorch.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_BUTTON(77, org.bukkit.material.Button.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SNOW(78), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ICE(79), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SNOW_BLOCK(80), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CACTUS(81, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CLAY(82), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SUGAR_CANE_BLOCK(83, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_JUKEBOX(84), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FENCE(85), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PUMPKIN(86, org.bukkit.material.Pumpkin.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHERRACK(87), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SOUL_SAND(88), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GLOWSTONE(89), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PORTAL(90), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_JACK_O_LANTERN(91, org.bukkit.material.Pumpkin.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CAKE_BLOCK(92, 64, org.bukkit.material.Cake.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIODE_BLOCK_OFF(93, org.bukkit.material.Diode.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIODE_BLOCK_ON(94, org.bukkit.material.Diode.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STAINED_GLASS(95), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TRAP_DOOR(96, org.bukkit.material.TrapDoor.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MONSTER_EGGS(97, org.bukkit.material.MonsterEggs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SMOOTH_BRICK(98, org.bukkit.material.SmoothBrick.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_HUGE_MUSHROOM_1(99, org.bukkit.material.Mushroom.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_HUGE_MUSHROOM_2(100, org.bukkit.material.Mushroom.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_FENCE(101), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_THIN_GLASS(102), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MELON_BLOCK(103), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PUMPKIN_STEM(104, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MELON_STEM(105, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_VINE(106, org.bukkit.material.Vine.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FENCE_GATE(107, org.bukkit.material.Gate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BRICK_STAIRS(108, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SMOOTH_STAIRS(109, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MYCEL(110), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WATER_LILY(111), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_BRICK(112), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_FENCE(113), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_BRICK_STAIRS(114, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_WARTS(115, org.bukkit.material.NetherWarts.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ENCHANTMENT_TABLE(116), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BREWING_STAND(117, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CAULDRON(118, org.bukkit.material.Cauldron.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ENDER_PORTAL(119), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ENDER_PORTAL_FRAME(120), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ENDER_STONE(121), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DRAGON_EGG(122), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_LAMP_OFF(123), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_LAMP_ON(124), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_DOUBLE_STEP(125, org.bukkit.material.Wood.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_STEP(126, org.bukkit.material.WoodenStep.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COCOA(127, org.bukkit.material.CocoaPlant.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SANDSTONE_STAIRS(128, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EMERALD_ORE(129), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ENDER_CHEST(130, org.bukkit.material.EnderChest.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TRIPWIRE_HOOK(131, org.bukkit.material.TripwireHook.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TRIPWIRE(132, org.bukkit.material.Tripwire.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EMERALD_BLOCK(133), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPRUCE_WOOD_STAIRS(134, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BIRCH_WOOD_STAIRS(135, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_JUNGLE_WOOD_STAIRS(136, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COMMAND(137, org.bukkit.material.Command.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BEACON(138), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COBBLE_WALL(139), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FLOWER_POT(140, org.bukkit.material.FlowerPot.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CARROT(141, org.bukkit.material.Crops.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_POTATO(142, org.bukkit.material.Crops.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_BUTTON(143, org.bukkit.material.Button.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SKULL(144, org.bukkit.material.Skull.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ANVIL(145), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TRAPPED_CHEST(146, org.bukkit.material.Chest.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_PLATE(147), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_PLATE(148), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_COMPARATOR_OFF(149, org.bukkit.material.Comparator.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_COMPARATOR_ON(150, org.bukkit.material.Comparator.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DAYLIGHT_DETECTOR(151), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_BLOCK(152), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_QUARTZ_ORE(153), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_HOPPER(154, org.bukkit.material.Hopper.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_QUARTZ_BLOCK(155), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_QUARTZ_STAIRS(156, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ACTIVATOR_RAIL(157, org.bukkit.material.PoweredRail.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DROPPER(158, org.bukkit.material.Dispenser.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STAINED_CLAY(159), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STAINED_GLASS_PANE(160), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEAVES_2(161, org.bukkit.material.Leaves.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LOG_2(162, org.bukkit.material.Tree.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ACACIA_STAIRS(163, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DARK_OAK_STAIRS(164, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SLIME_BLOCK(165), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BARRIER(166), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_TRAPDOOR(167, org.bukkit.material.TrapDoor.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PRISMARINE(168), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SEA_LANTERN(169), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_HAY_BLOCK(170), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CARPET(171), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_HARD_CLAY(172), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COAL_BLOCK(173), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PACKED_ICE(174), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DOUBLE_PLANT(175), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STANDING_BANNER(176, org.bukkit.material.Banner.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WALL_BANNER(177, org.bukkit.material.Banner.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DAYLIGHT_DETECTOR_INVERTED(178), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RED_SANDSTONE(179), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RED_SANDSTONE_STAIRS(180, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DOUBLE_STONE_SLAB2(181), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_SLAB2(182), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPRUCE_FENCE_GATE(183, org.bukkit.material.Gate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BIRCH_FENCE_GATE(184, org.bukkit.material.Gate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_JUNGLE_FENCE_GATE(185, org.bukkit.material.Gate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DARK_OAK_FENCE_GATE(186, org.bukkit.material.Gate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ACACIA_FENCE_GATE(187, org.bukkit.material.Gate.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPRUCE_FENCE(188), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BIRCH_FENCE(189), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_JUNGLE_FENCE(190), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DARK_OAK_FENCE(191), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ACACIA_FENCE(192), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPRUCE_DOOR(193, org.bukkit.material.Door.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BIRCH_DOOR(194, org.bukkit.material.Door.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_JUNGLE_DOOR(195, org.bukkit.material.Door.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ACACIA_DOOR(196, org.bukkit.material.Door.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DARK_OAK_DOOR(197, org.bukkit.material.Door.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_END_ROD(198), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHORUS_PLANT(199), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHORUS_FLOWER(200), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PURPUR_BLOCK(201), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PURPUR_PILLAR(202), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PURPUR_STAIRS(203, org.bukkit.material.Stairs.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PURPUR_DOUBLE_SLAB(204), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PURPUR_SLAB(205), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_END_BRICKS(206), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BEETROOT_BLOCK(207, org.bukkit.material.Crops.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GRASS_PATH(208), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_END_GATEWAY(209), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COMMAND_REPEATING(210, org.bukkit.material.Command.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COMMAND_CHAIN(211, org.bukkit.material.Command.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FROSTED_ICE(212), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MAGMA(213), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_WART_BLOCK(214), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RED_NETHER_BRICK(215), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BONE_BLOCK(216), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STRUCTURE_VOID(217), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_OBSERVER(218, org.bukkit.material.Observer.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WHITE_SHULKER_BOX(219, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ORANGE_SHULKER_BOX(220, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MAGENTA_SHULKER_BOX(221, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LIGHT_BLUE_SHULKER_BOX(222, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_YELLOW_SHULKER_BOX(223, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LIME_SHULKER_BOX(224, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PINK_SHULKER_BOX(225, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GRAY_SHULKER_BOX(226, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SILVER_SHULKER_BOX(227, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CYAN_SHULKER_BOX(228, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PURPLE_SHULKER_BOX(229, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BLUE_SHULKER_BOX(230, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BROWN_SHULKER_BOX(231, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GREEN_SHULKER_BOX(232, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RED_SHULKER_BOX(233, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BLACK_SHULKER_BOX(234, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WHITE_GLAZED_TERRACOTTA(235), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ORANGE_GLAZED_TERRACOTTA(236), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MAGENTA_GLAZED_TERRACOTTA(237), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LIGHT_BLUE_GLAZED_TERRACOTTA(238), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_YELLOW_GLAZED_TERRACOTTA(239), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LIME_GLAZED_TERRACOTTA(240), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PINK_GLAZED_TERRACOTTA(241), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GRAY_GLAZED_TERRACOTTA(242), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SILVER_GLAZED_TERRACOTTA(243), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CYAN_GLAZED_TERRACOTTA(244), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PURPLE_GLAZED_TERRACOTTA(245), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BLUE_GLAZED_TERRACOTTA(246), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BROWN_GLAZED_TERRACOTTA(247), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GREEN_GLAZED_TERRACOTTA(248), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RED_GLAZED_TERRACOTTA(249), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BLACK_GLAZED_TERRACOTTA(250), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CONCRETE(251), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CONCRETE_POWDER(252), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STRUCTURE_BLOCK(255), // ----- Item Separator ----- - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_SPADE(256, 1, 250), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_PICKAXE(257, 1, 250), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_AXE(258, 1, 250), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FLINT_AND_STEEL(259, 1, 64), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_APPLE(260), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOW(261, 1, 384), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ARROW(262), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COAL(263, org.bukkit.material.Coal.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND(264), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_INGOT(265), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_INGOT(266), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_SWORD(267, 1, 250), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_SWORD(268, 1, 59), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_SPADE(269, 1, 59), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_PICKAXE(270, 1, 59), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_AXE(271, 1, 59), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_SWORD(272, 1, 131), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_SPADE(273, 1, 131), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_PICKAXE(274, 1, 131), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_AXE(275, 1, 131), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_SWORD(276, 1, 1561), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_SPADE(277, 1, 1561), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_PICKAXE(278, 1, 1561), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_AXE(279, 1, 1561), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STICK(280), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOWL(281), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MUSHROOM_SOUP(282, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_SWORD(283, 1, 32), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_SPADE(284, 1, 32), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_PICKAXE(285, 1, 32), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_AXE(286, 1, 32), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STRING(287), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FEATHER(288), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SULPHUR(289), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_HOE(290, 1, 59), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STONE_HOE(291, 1, 131), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_HOE(292, 1, 250), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_HOE(293, 1, 1561), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_HOE(294, 1, 32), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SEEDS(295), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WHEAT(296), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BREAD(297), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEATHER_HELMET(298, 1, 55), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEATHER_CHESTPLATE(299, 1, 80), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEATHER_LEGGINGS(300, 1, 75), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEATHER_BOOTS(301, 1, 65), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHAINMAIL_HELMET(302, 1, 165), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHAINMAIL_CHESTPLATE(303, 1, 240), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHAINMAIL_LEGGINGS(304, 1, 225), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHAINMAIL_BOOTS(305, 1, 195), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_HELMET(306, 1, 165), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_CHESTPLATE(307, 1, 240), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_LEGGINGS(308, 1, 225), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_BOOTS(309, 1, 195), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_HELMET(310, 1, 363), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_CHESTPLATE(311, 1, 528), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_LEGGINGS(312, 1, 495), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_BOOTS(313, 1, 429), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_HELMET(314, 1, 77), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_CHESTPLATE(315, 1, 112), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_LEGGINGS(316, 1, 105), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_BOOTS(317, 1, 91), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FLINT(318), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PORK(319), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GRILLED_PORK(320), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PAINTING(321), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLDEN_APPLE(322), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SIGN(323, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WOOD_DOOR(324, 64), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BUCKET(325, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WATER_BUCKET(326, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LAVA_BUCKET(327, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MINECART(328, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SADDLE(329, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_DOOR(330, 64), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE(331), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SNOW_BALL(332, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOAT(333, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEATHER(334), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MILK_BUCKET(335, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CLAY_BRICK(336), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CLAY_BALL(337), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SUGAR_CANE(338), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PAPER(339), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOOK(340), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SLIME_BALL(341), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_STORAGE_MINECART(342, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_POWERED_MINECART(343, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EGG(344, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COMPASS(345), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FISHING_ROD(346, 1, 64), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WATCH(347), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GLOWSTONE_DUST(348), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RAW_FISH(349), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COOKED_FISH(350), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_INK_SACK(351, org.bukkit.material.Dye.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BONE(352), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SUGAR(353), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CAKE(354, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BED(355, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIODE(356), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COOKIE(357), /** * @see org.bukkit.map.MapView */ - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MAP(358, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SHEARS(359, 1, 238), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MELON(360), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PUMPKIN_SEEDS(361), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MELON_SEEDS(362), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RAW_BEEF(363), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COOKED_BEEF(364), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RAW_CHICKEN(365), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COOKED_CHICKEN(366), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ROTTEN_FLESH(367), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ENDER_PEARL(368, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BLAZE_ROD(369), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GHAST_TEAR(370), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_NUGGET(371), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_STALK(372), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_POTION(373, 1, org.bukkit.material.MaterialData.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GLASS_BOTTLE(374), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPIDER_EYE(375), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FERMENTED_SPIDER_EYE(376), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BLAZE_POWDER(377), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MAGMA_CREAM(378), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BREWING_STAND_ITEM(379), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CAULDRON_ITEM(380), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EYE_OF_ENDER(381), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPECKLED_MELON(382), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MONSTER_EGG(383, 64, org.bukkit.material.SpawnEgg.class), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EXP_BOTTLE(384, 64), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FIREBALL(385, 64), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOOK_AND_QUILL(386, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_WRITTEN_BOOK(387, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EMERALD(388, 64), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ITEM_FRAME(389), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FLOWER_POT_ITEM(390), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CARROT_ITEM(391), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_POTATO_ITEM(392), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BAKED_POTATO(393), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_POISONOUS_POTATO(394), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EMPTY_MAP(395), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLDEN_CARROT(396), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SKULL_ITEM(397), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CARROT_STICK(398, 1, 25), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_STAR(399), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PUMPKIN_PIE(400), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FIREWORK(401), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_FIREWORK_CHARGE(402), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ENCHANTED_BOOK(403, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_REDSTONE_COMPARATOR(404), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NETHER_BRICK_ITEM(405), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_QUARTZ(406), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_EXPLOSIVE_MINECART(407, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_HOPPER_MINECART(408, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PRISMARINE_SHARD(409), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_PRISMARINE_CRYSTALS(410), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RABBIT(411), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COOKED_RABBIT(412), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RABBIT_STEW(413, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RABBIT_FOOT(414), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RABBIT_HIDE(415), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ARMOR_STAND(416, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_BARDING(417, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_BARDING(418, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DIAMOND_BARDING(419, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LEASH(420), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_NAME_TAG(421), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COMMAND_MINECART(422, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_MUTTON(423), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_COOKED_MUTTON(424), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BANNER(425, 16), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_END_CRYSTAL(426), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPRUCE_DOOR_ITEM(427), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BIRCH_DOOR_ITEM(428), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_JUNGLE_DOOR_ITEM(429), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ACACIA_DOOR_ITEM(430), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DARK_OAK_DOOR_ITEM(431), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHORUS_FRUIT(432), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_CHORUS_FRUIT_POPPED(433), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BEETROOT(434), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BEETROOT_SEEDS(435), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BEETROOT_SOUP(436, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_DRAGONS_BREATH(437), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPLASH_POTION(438, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SPECTRAL_ARROW(439), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TIPPED_ARROW(440), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_LINGERING_POTION(441, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SHIELD(442, 1, 336), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_ELYTRA(443, 1, 431), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOAT_SPRUCE(444, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOAT_BIRCH(445, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOAT_JUNGLE(446, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOAT_ACACIA(447, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_BOAT_DARK_OAK(448, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_TOTEM(449, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_SHULKER_SHELL(450), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_IRON_NUGGET(452), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_KNOWLEDGE_BOOK(453, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GOLD_RECORD(2256, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_GREEN_RECORD(2257, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_3(2258, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_4(2259, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_5(2260, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_6(2261, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_7(2262, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_8(2263, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_9(2264, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_10(2265, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_11(2266, 1), - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) LEGACY_RECORD_12(2267, 1), ; // - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) public static final String LEGACY_PREFIX = "LEGACY_"; private final int id; @@ -4909,7 +4909,7 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla * * @return legacy status */ - // @Deprecated(since = "1.13") // Paper - this is useful, don't deprecate + // @Deprecated(since = "1.13", forRemoval = true) // Paper - this is useful, don't deprecate public boolean isLegacy() { return legacy; } @@ -5167,7 +5167,7 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla * @deprecated currently does not have an implementation which is well * linked to the underlying server. Contributions welcome. */ - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) public boolean isTransparent() { if (!isBlock()) { return false; diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 2eb72a31cc..0c1f3053ec 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -1231,8 +1231,10 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi * @return true if the server should send a preview, false otherwise * @deprecated chat previews have been removed */ - @Deprecated(since = "1.19.3") - public boolean shouldSendChatPreviews(); + @Deprecated(since = "1.19.3", forRemoval = true) + default boolean shouldSendChatPreviews() { + return false; + } /** * Gets whether the server only allow players with Mojang-signed public key diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 015d852d5a..96120ce0e0 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -494,7 +494,6 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient * @return Whether the chunk was actually refreshed * */ - // @Deprecated(since = "1.8") // Paper public boolean refreshChunk(int x, int z); /** @@ -2478,7 +2477,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient * @deprecated Use {@link #spawn(Location, Class, Consumer)} (or a variation thereof) in combination with {@link FallingBlock#setBlockData(BlockData)} */ @NotNull - @Deprecated(since = "1.20.2") // Paper + @Deprecated(since = "1.20.2", forRemoval = true) public FallingBlock spawnFallingBlock(@NotNull Location location, @NotNull MaterialData data) throws IllegalArgumentException; /** @@ -2513,7 +2512,7 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient * Material} are null or {@link Material} is not a block * @deprecated Magic value. Use {@link #spawn(Location, Class, Consumer)} (or a variation thereof) in combination with {@link FallingBlock#setBlockData(BlockData)} */ - @Deprecated(since = "1.7.5") + @Deprecated(since = "1.7.5", forRemoval = true) @NotNull public FallingBlock spawnFallingBlock(@NotNull Location location, @NotNull Material material, byte data) throws IllegalArgumentException; diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java index b703ad820f..c6e9ca88e5 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/src/main/java/org/bukkit/block/Block.java @@ -40,7 +40,7 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr * @return block specific metadata * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) byte getData(); /** diff --git a/paper-api/src/main/java/org/bukkit/block/BlockState.java b/paper-api/src/main/java/org/bukkit/block/BlockState.java index 3bcdb02f8f..2c430a7fb9 100644 --- a/paper-api/src/main/java/org/bukkit/block/BlockState.java +++ b/paper-api/src/main/java/org/bukkit/block/BlockState.java @@ -225,14 +225,14 @@ public interface BlockState extends Metadatable { * @return The data as a raw byte. * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) public byte getRawData(); /** * @param data The new data value for the block. * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) public void setRawData(byte data); /** diff --git a/paper-api/src/main/java/org/bukkit/block/Skull.java b/paper-api/src/main/java/org/bukkit/block/Skull.java index d6add557ea..d73137292a 100644 --- a/paper-api/src/main/java/org/bukkit/block/Skull.java +++ b/paper-api/src/main/java/org/bukkit/block/Skull.java @@ -155,7 +155,7 @@ public interface Skull extends TileState { * @return the type of skull * @deprecated check {@link Material} instead */ - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) @NotNull public SkullType getSkullType(); @@ -165,7 +165,7 @@ public interface Skull extends TileState { * @param skullType the type of skull * @deprecated check {@link Material} instead */ - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) @Contract("_ -> fail") public void setSkullType(SkullType skullType); } diff --git a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java index 288123c31a..4a6c44c65f 100644 --- a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java +++ b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java @@ -241,7 +241,7 @@ public abstract class Enchantment implements Keyed, Translatable, net.kyori.adve * @deprecated enchantments are badly named, use {@link #getKey()}. */ @NotNull - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) public abstract String getName(); /** diff --git a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java index 6fcc15d588..fc71bc0867 100644 --- a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java +++ b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java @@ -13,7 +13,7 @@ public enum EnchantmentTarget { * * @deprecated this target no longer exists in Vanilla */ - @Deprecated(since = "1.16.1") + @Deprecated(since = "1.16.1", forRemoval = true) ALL { @Override public boolean includes(@NotNull Material item) { diff --git a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentWrapper.java b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentWrapper.java index ca3b2f9be7..74b0be66ec 100644 --- a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentWrapper.java +++ b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentWrapper.java @@ -6,7 +6,7 @@ import org.jetbrains.annotations.NotNull; * A simple wrapper for ease of selecting {@link Enchantment}s * @deprecated only for backwards compatibility, EnchantmentWrapper is no longer used. */ -@Deprecated(since = "1.20.3") +@Deprecated(since = "1.20.3", forRemoval = true) public abstract class EnchantmentWrapper extends Enchantment { protected EnchantmentWrapper() { } diff --git a/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java b/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java index 1c2c9ed0d5..945e819776 100644 --- a/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java +++ b/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java @@ -20,9 +20,9 @@ public interface AbstractArrow extends Projectile { * * @return the knockback strength value * @see #getWeapon() - * @deprecated a function of the firing weapon + * @deprecated moved to being a function of the firing weapon, always returns 0 here */ - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public int getKnockbackStrength(); /** @@ -30,9 +30,9 @@ public interface AbstractArrow extends Projectile { * * @param knockbackStrength the knockback strength value * @see #setWeapon(org.bukkit.inventory.ItemStack) - * @deprecated a function of the firing weapon + * @deprecated moved to being a function of the firing weapon, does nothing here */ - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public void setKnockbackStrength(int knockbackStrength); /** @@ -145,9 +145,9 @@ public interface AbstractArrow extends Projectile { * * @param shotFromCrossbow if shot from a crossbow * @see #setWeapon(org.bukkit.inventory.ItemStack) - * @deprecated a function of the firing weapon instead + * @deprecated a function of the firing weapon instead, this method does nothing */ - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public void setShotFromCrossbow(boolean shotFromCrossbow); /** diff --git a/paper-api/src/main/java/org/bukkit/entity/AbstractHorse.java b/paper-api/src/main/java/org/bukkit/entity/AbstractHorse.java index 2e9d6e6023..38967c57ad 100644 --- a/paper-api/src/main/java/org/bukkit/entity/AbstractHorse.java +++ b/paper-api/src/main/java/org/bukkit/entity/AbstractHorse.java @@ -20,7 +20,7 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable { * @return a {@link Horse.Variant} representing the horse's variant * @deprecated different variants are different classes */ - @Deprecated(since = "1.11") + @Deprecated(since = "1.11", forRemoval = true) @NotNull public Horse.Variant getVariant(); @@ -28,7 +28,7 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable { * @param variant variant * @deprecated you are required to spawn a different entity */ - @Deprecated(since = "1.11") + @Deprecated(since = "1.11", forRemoval = true) @Contract("_ -> fail") public void setVariant(Horse.Variant variant); @@ -108,7 +108,7 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable { * @return true if eating hay * @deprecated use {@link #isEatingGrass()}, this name is incorrect */ - @Deprecated // Paper - Horse API + @Deprecated(forRemoval = true) boolean isEatingHaystack(); /** @@ -117,7 +117,7 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable { * @param eatingHaystack new hay grazing status * @deprecated use {@link #setEatingGrass(boolean)}, this name is incorrect */ - @Deprecated // Paper - Horse API + @Deprecated(forRemoval = true) void setEatingHaystack(boolean eatingHaystack); @NotNull diff --git a/paper-api/src/main/java/org/bukkit/entity/AbstractSkeleton.java b/paper-api/src/main/java/org/bukkit/entity/AbstractSkeleton.java index db101017a0..fbd0e76819 100644 --- a/paper-api/src/main/java/org/bukkit/entity/AbstractSkeleton.java +++ b/paper-api/src/main/java/org/bukkit/entity/AbstractSkeleton.java @@ -21,7 +21,7 @@ public interface AbstractSkeleton extends Monster, com.destroystokyo.paper.entit * @return Current type * @deprecated should check what class instance this is. */ - @Deprecated(since = "1.17") + @Deprecated(since = "1.17", forRemoval = true) @NotNull public Skeleton.SkeletonType getSkeletonType(); @@ -29,7 +29,7 @@ public interface AbstractSkeleton extends Monster, com.destroystokyo.paper.entit * @param type type * @deprecated Must spawn a new subtype variant */ - @Deprecated(since = "1.17") + @Deprecated(since = "1.17", forRemoval = true) @Contract("_ -> fail") public void setSkeletonType(Skeleton.SkeletonType type); diff --git a/paper-api/src/main/java/org/bukkit/entity/AreaEffectCloud.java b/paper-api/src/main/java/org/bukkit/entity/AreaEffectCloud.java index c4b3ab4b9c..e36b62012a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/AreaEffectCloud.java +++ b/paper-api/src/main/java/org/bukkit/entity/AreaEffectCloud.java @@ -152,7 +152,7 @@ public interface AreaEffectCloud extends Entity { * @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(since = "1.20.6") + @Deprecated(since = "1.20.6", forRemoval = true) 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. */ @Nullable - @Deprecated(since = "1.20.6") + @Deprecated(since = "1.20.6", forRemoval = true) PotionData getBasePotionData(); /** diff --git a/paper-api/src/main/java/org/bukkit/entity/Arrow.java b/paper-api/src/main/java/org/bukkit/entity/Arrow.java index 38e6a8dbb2..2ed441e20a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Arrow.java +++ b/paper-api/src/main/java/org/bukkit/entity/Arrow.java @@ -17,7 +17,7 @@ public interface Arrow extends AbstractArrow { * @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(since = "1.20.6") + @Deprecated(since = "1.20.6", forRemoval = true) 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. */ @Nullable - @Deprecated(since = "1.20.6") + @Deprecated(since = "1.20.6", forRemoval = true) PotionData getBasePotionData(); /** diff --git a/paper-api/src/main/java/org/bukkit/entity/Boat.java b/paper-api/src/main/java/org/bukkit/entity/Boat.java index aedfdf41d4..1c977e2b17 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Boat.java +++ b/paper-api/src/main/java/org/bukkit/entity/Boat.java @@ -15,7 +15,7 @@ public interface Boat extends Vehicle, io.papermc.paper.entity.Leashable { // Pa * @return the wood type * @deprecated deprecated in favor of {@link #getBoatType()} */ - @Deprecated(since = "1.19") + @Deprecated(since = "1.19", forRemoval = true) @NotNull TreeSpecies getWoodType(); @@ -25,7 +25,7 @@ public interface Boat extends Vehicle, io.papermc.paper.entity.Leashable { // Pa * @param species the new wood type * @deprecated deprecated in favor of {@link #setBoatType(Type)} */ - @Deprecated(since = "1.19") + @Deprecated(since = "1.19", forRemoval = true) void setWoodType(@NotNull TreeSpecies species); /** diff --git a/paper-api/src/main/java/org/bukkit/entity/Endermite.java b/paper-api/src/main/java/org/bukkit/entity/Endermite.java index 7b379fb21e..332c55fd6b 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Endermite.java +++ b/paper-api/src/main/java/org/bukkit/entity/Endermite.java @@ -10,7 +10,7 @@ public interface Endermite extends Monster { * @return player spawned status * @deprecated this functionality no longer exists */ - @Deprecated(since = "1.17") + @Deprecated(since = "1.17", forRemoval = true) boolean isPlayerSpawned(); /** @@ -21,7 +21,7 @@ public interface Endermite extends Monster { * @param playerSpawned player spawned status * @deprecated this functionality no longer exists */ - @Deprecated(since = "1.17") + @Deprecated(since = "1.17", forRemoval = true) void setPlayerSpawned(boolean playerSpawned); // Paper start /** diff --git a/paper-api/src/main/java/org/bukkit/entity/EntityType.java b/paper-api/src/main/java/org/bukkit/entity/EntityType.java index 29d2251166..73e47089db 100644 --- a/paper-api/src/main/java/org/bukkit/entity/EntityType.java +++ b/paper-api/src/main/java/org/bukkit/entity/EntityType.java @@ -407,7 +407,7 @@ public enum EntityType implements Keyed, Translatable, net.kyori.adventure.trans * @return the raw type id * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) public short getTypeId() { return typeId; } @@ -436,7 +436,7 @@ public enum EntityType implements Keyed, Translatable, net.kyori.adventure.trans * @return the matching entity type or null * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) @Nullable public static EntityType fromId(int id) { if (id > Short.MAX_VALUE) { diff --git a/paper-api/src/main/java/org/bukkit/entity/FishHook.java b/paper-api/src/main/java/org/bukkit/entity/FishHook.java index c28e78aa25..470443e3e8 100644 --- a/paper-api/src/main/java/org/bukkit/entity/FishHook.java +++ b/paper-api/src/main/java/org/bukkit/entity/FishHook.java @@ -208,7 +208,7 @@ public interface FishHook extends Projectile { * @return chance the bite chance * @deprecated has no effect in newer Minecraft versions */ - @Deprecated(since = "1.9.2") + @Deprecated(since = "1.9.2", forRemoval = true) public double getBiteChance(); /** @@ -222,7 +222,7 @@ public interface FishHook extends Projectile { * and 1 * @deprecated has no effect in newer Minecraft versions */ - @Deprecated(since = "1.9.2") + @Deprecated(since = "1.9.2", forRemoval = true) public void setBiteChance(double chance) throws IllegalArgumentException; /** diff --git a/paper-api/src/main/java/org/bukkit/entity/Horse.java b/paper-api/src/main/java/org/bukkit/entity/Horse.java index ea2df61444..f2089ce6eb 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Horse.java +++ b/paper-api/src/main/java/org/bukkit/entity/Horse.java @@ -154,14 +154,14 @@ public interface Horse extends AbstractHorse { * @return carrying chest status * @deprecated see {@link ChestedHorse} */ - @Deprecated(since = "1.11") + @Deprecated(since = "1.11", forRemoval = true) public boolean isCarryingChest(); /** * @param chest chest * @deprecated see {@link ChestedHorse} */ - @Deprecated(since = "1.11") + @Deprecated(since = "1.11", forRemoval = true) public void setCarryingChest(boolean chest); @NotNull diff --git a/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java b/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java index fb2a9b10b7..ecbfa12941 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java +++ b/paper-api/src/main/java/org/bukkit/entity/LightningStrike.java @@ -91,7 +91,7 @@ public interface LightningStrike extends Entity { /** * @deprecated Unsupported api */ - @Deprecated // Paper + @Deprecated(forRemoval = true) public class Spigot extends Entity.Spigot { /** @@ -100,7 +100,7 @@ public interface LightningStrike extends Entity { * @return whether the strike is silent. * @deprecated sound is now client side and cannot be removed */ - @Deprecated(since = "1.20.4") + @Deprecated(since = "1.20.4", forRemoval = true) public boolean isSilent() { throw new UnsupportedOperationException("Not supported yet."); } @@ -111,7 +111,7 @@ public interface LightningStrike extends Entity { */ @NotNull @Override - @Deprecated // Paper + @Deprecated(forRemoval = true) Spigot spigot(); // Spigot end diff --git a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java index ce22fa2606..3aa04671f4 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java +++ b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java @@ -73,7 +73,7 @@ public interface Ocelot extends Animals { * @return Type ID. * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) public int getId() { return id; } @@ -85,7 +85,7 @@ public interface Ocelot extends Animals { * @return Resulting type, or null if not found. * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) @Nullable public static Type getType(int id) { return (id >= types.length) ? null : types[id]; diff --git a/paper-api/src/main/java/org/bukkit/entity/Zombie.java b/paper-api/src/main/java/org/bukkit/entity/Zombie.java index 5b9e1af021..65e870c75a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Zombie.java +++ b/paper-api/src/main/java/org/bukkit/entity/Zombie.java @@ -32,14 +32,14 @@ public interface Zombie extends Monster, Ageable { * @return Whether the zombie is a villager * @deprecated check if instanceof {@link ZombieVillager}. */ - @Deprecated(since = "1.10.2") + @Deprecated(since = "1.10.2", forRemoval = true) public boolean isVillager(); /** * @param flag flag * @deprecated must spawn {@link ZombieVillager}. */ - @Deprecated(since = "1.9") + @Deprecated(since = "1.9", forRemoval = true) @Contract("_ -> fail") public void setVillager(boolean flag); @@ -47,7 +47,7 @@ public interface Zombie extends Monster, Ageable { * @param profession profession * @see ZombieVillager#getVillagerProfession() */ - @Deprecated(since = "1.10.2") + @Deprecated(since = "1.10.2", forRemoval = true) @Contract("_ -> fail") public void setVillagerProfession(Villager.Profession profession); @@ -55,7 +55,7 @@ public interface Zombie extends Monster, Ageable { * @return profession * @see ZombieVillager#getVillagerProfession() */ - @Deprecated(since = "1.10.2") + @Deprecated(since = "1.10.2", forRemoval = true) @Nullable @Contract("-> null") public Villager.Profession getVillagerProfession(); diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java index 0b1737bcc5..056f6ddb37 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.block; import org.bukkit.block.Block; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -17,11 +18,12 @@ public class BlockBurnEvent extends BlockEvent implements Cancellable { private boolean cancelled; private final Block ignitingBlock; - @Deprecated(since = "1.11.2") + @Deprecated(since = "1.11.2", forRemoval = true) public BlockBurnEvent(@NotNull final Block block) { this(block, null); } + @ApiStatus.Internal public BlockBurnEvent(@NotNull final Block block, @Nullable final Block ignitingBlock) { super(block); this.ignitingBlock = ignitingBlock; diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java index f5923049bf..7969e15bbf 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java @@ -5,6 +5,7 @@ import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -27,7 +28,7 @@ public class BlockCanBuildEvent extends BlockEvent { private final Player player; private final org.bukkit.inventory.EquipmentSlot hand; // Paper - expose hand - @Deprecated(since = "1.13.2") + @Deprecated(since = "1.13.2", forRemoval = true) public BlockCanBuildEvent(@NotNull final Block block, @NotNull final BlockData type, final boolean canBuild) { this(block, null, type, canBuild, org.bukkit.inventory.EquipmentSlot.HAND); // Paper - expose hand } @@ -38,12 +39,13 @@ public class BlockCanBuildEvent extends BlockEvent { * @param type the id of the block to place * @param canBuild whether we can build */ - @java.lang.Deprecated // Paper - @io.papermc.paper.annotation.DoNotUse // Paper + @Deprecated(forRemoval = true) + @io.papermc.paper.annotation.DoNotUse public BlockCanBuildEvent(@NotNull final Block block, @Nullable final Player player, @NotNull final BlockData type, final boolean canBuild) { this(block, player, type, canBuild, org.bukkit.inventory.EquipmentSlot.HAND); // Paper start - expose hand } - @org.jetbrains.annotations.ApiStatus.Internal + + @ApiStatus.Internal public BlockCanBuildEvent(@NotNull final Block block, @Nullable final Player player, @NotNull final BlockData type, final boolean canBuild, @NotNull final org.bukkit.inventory.EquipmentSlot hand) { // Paper end - expose hand super(block); this.player = player; diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockCookEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockCookEvent.java index a3f1c9cb36..4a4bc9df2c 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockCookEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockCookEvent.java @@ -4,6 +4,7 @@ import org.bukkit.block.Block; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -16,12 +17,13 @@ public class BlockCookEvent extends BlockEvent implements Cancellable { private boolean cancelled; private final org.bukkit.inventory.CookingRecipe recipe; // Paper - @Deprecated // Paper + @Deprecated(forRemoval = true) public BlockCookEvent(@NotNull final Block block, @NotNull final ItemStack source, @NotNull final ItemStack result) { // Paper start this(block, source, result, null); } + @ApiStatus.Internal public BlockCookEvent(@NotNull final Block block, @NotNull final ItemStack source, @NotNull final ItemStack result, @org.jetbrains.annotations.Nullable org.bukkit.inventory.CookingRecipe recipe) { // Paper end super(block); diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java index 7ca2b1b321..72499d0eac 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java @@ -6,6 +6,7 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockState; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -18,13 +19,13 @@ import org.jetbrains.annotations.NotNull; public class BlockMultiPlaceEvent extends BlockPlaceEvent { private final List states; - @Deprecated // Paper + @Deprecated(forRemoval = true) public BlockMultiPlaceEvent(@NotNull List states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) { // Paper start - add hand to BlockMultiPlaceEvent this(states, clicked, itemInHand, thePlayer, canBuild, org.bukkit.inventory.EquipmentSlot.HAND); } - + @ApiStatus.Internal public BlockMultiPlaceEvent(@NotNull List states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, @NotNull org.bukkit.inventory.EquipmentSlot hand) { super(states.get(0).getBlock(), states.get(0), clicked, itemInHand, thePlayer, canBuild, hand); this.states = ImmutableList.copyOf(states); diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java index b23686d2e4..0d52c6d046 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java @@ -5,6 +5,7 @@ import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -33,16 +34,18 @@ public class BlockPhysicsEvent extends BlockEvent implements Cancellable { private boolean cancel = false; // Paper start - Legacy constructor, use #BlockPhysicsEvent(Block, BlockData, Block) - @Deprecated + @Deprecated(forRemoval = true) public BlockPhysicsEvent(final Block block, final BlockData changed, final int sourceX, final int sourceY, final int sourceZ) { this(block, changed, block.getWorld().getBlockAt(sourceX, sourceY, sourceZ)); } // Paper end + @ApiStatus.Internal public BlockPhysicsEvent(@NotNull final Block block, @NotNull final BlockData changed) { this(block, changed, block); } + @ApiStatus.Internal public BlockPhysicsEvent(@NotNull final Block block, @NotNull final BlockData changed, @NotNull final Block sourceBlock) { super(block); this.changed = changed; diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java index 6caecd53d9..202f0a556e 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java @@ -6,6 +6,7 @@ import java.util.List; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -16,13 +17,14 @@ public class BlockPistonExtendEvent extends BlockPistonEvent { private final int length; private List blocks; - @Deprecated(since = "1.8") + @Deprecated(since = "1.8", forRemoval = true) public BlockPistonExtendEvent(@NotNull final Block block, final int length, @NotNull final BlockFace direction) { super(block, direction); this.length = length; } + @ApiStatus.Internal public BlockPistonExtendEvent(@NotNull final Block block, @NotNull final List blocks, @NotNull final BlockFace direction) { super(block, direction); @@ -51,7 +53,7 @@ public class BlockPistonExtendEvent extends BlockPistonEvent { @NotNull public List getBlocks() { if (blocks == null) { - ArrayList tmp = new ArrayList(); + List tmp = new ArrayList(); for (int i = 0; i < this.getLength(); i++) { tmp.add(block.getRelative(getDirection(), i + 1)); } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java index 3bfd0f6edc..fec0191ad1 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java @@ -7,6 +7,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -24,11 +25,12 @@ public class BlockPlaceEvent extends BlockEvent implements Cancellable { protected Player player; protected EquipmentSlot hand; - @Deprecated(since = "1.9") + @Deprecated(since = "1.9", forRemoval = true) 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); } + @ApiStatus.Internal 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, @NotNull final EquipmentSlot hand) { super(placedBlock); this.placedAgainst = placedAgainst; diff --git a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java index e7538a863d..a61537af6c 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java @@ -5,6 +5,7 @@ import org.bukkit.block.sign.Side; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -21,6 +22,7 @@ public class SignChangeEvent extends BlockEvent implements Cancellable { private final Side side; // Paper start + @ApiStatus.Internal public SignChangeEvent(@NotNull final Block theBlock, @NotNull final Player player, @NotNull final java.util.List adventure$lines, @NotNull Side side) { super(theBlock); this.player = player; @@ -28,18 +30,18 @@ public class SignChangeEvent extends BlockEvent implements Cancellable { this.side = side; } - @Deprecated + @Deprecated(forRemoval = true) public SignChangeEvent(@NotNull final Block theBlock, @NotNull final Player player, @NotNull final java.util.List adventure$lines) { this(theBlock, player, adventure$lines, Side.FRONT); } // Paper end - @Deprecated(since = "1.19.4") + @Deprecated(since = "1.19.4", forRemoval = true) public SignChangeEvent(@NotNull final Block theBlock, @NotNull final Player thePlayer, @NotNull final String[] theLines) { this(theBlock, thePlayer, theLines, Side.FRONT); } - @Deprecated // Paper + @Deprecated(forRemoval = true) public SignChangeEvent(@NotNull final Block theBlock, @NotNull final Player thePlayer, @NotNull final String[] theLines, @NotNull Side side) { super(theBlock); this.player = thePlayer; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 0c3f8f3f6e..6d9c9ca81f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -57,7 +57,7 @@ public class CreatureSpawnEvent extends EntitySpawnEvent { * {@link ChunkLoadEvent#isNewChunk()} and {@link Chunk#getEntities()} * for similar effect. */ - @Deprecated(since = "1.14") + @Deprecated(since = "1.14", forRemoval = true) CHUNK_GEN, /** * When a creature spawns from a spawner diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java index 3ef5b4254b..6cd2d81669 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java @@ -2,6 +2,7 @@ package org.bukkit.event.entity; import org.bukkit.block.Block; import org.bukkit.entity.Entity; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -11,11 +12,12 @@ import org.jetbrains.annotations.Nullable; public class EntityCombustByBlockEvent extends EntityCombustEvent { private final Block combuster; - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public EntityCombustByBlockEvent(@Nullable final Block combuster, @NotNull final Entity combustee, final int duration) { this(combuster, combustee, (float) duration); } + @ApiStatus.Internal public EntityCombustByBlockEvent(@Nullable final Block combuster, @NotNull final Entity combustee, final float duration) { super(combustee, duration); this.combuster = combuster; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java index eef8ab889b..8cc6e1a90f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java @@ -1,6 +1,7 @@ package org.bukkit.event.entity; import org.bukkit.entity.Entity; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -9,11 +10,12 @@ import org.jetbrains.annotations.NotNull; public class EntityCombustByEntityEvent extends EntityCombustEvent { private final Entity combuster; - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public EntityCombustByEntityEvent(@NotNull final Entity combuster, @NotNull final Entity combustee, final int duration) { this(combuster, combustee, (float) duration); } + @ApiStatus.Internal public EntityCombustByEntityEvent(@NotNull final Entity combuster, @NotNull final Entity combustee, final float duration) { super(combustee, duration); this.combuster = combuster; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java index 1f0f09bcf5..2397564089 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.entity; import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -15,11 +16,12 @@ public class EntityCombustEvent extends EntityEvent implements Cancellable { private float duration; private boolean cancel; - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public EntityCombustEvent(@NotNull final Entity combustee, final int duration) { this(combustee, (float) duration); } + @ApiStatus.Internal public EntityCombustEvent(@NotNull final Entity combustee, final float duration) { super(combustee); this.duration = duration; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java index 2a36d5b189..2c0103669f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java @@ -20,7 +20,7 @@ public class EntityDamageByEntityEvent extends EntityDamageEvent { this(damager, damagee, cause, DamageSource.builder(DamageType.GENERIC).build(), damage); } - @Deprecated + @Deprecated(forRemoval = true) public EntityDamageByEntityEvent(@NotNull final Entity damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, @NotNull final DamageSource damageSource, final double damage) { super(damagee, cause, damageSource, damage); this.damager = damager; @@ -32,7 +32,7 @@ public class EntityDamageByEntityEvent extends EntityDamageEvent { this(damager, damagee, cause, DamageSource.builder(DamageType.GENERIC).build(), modifiers, modifierFunctions); } - @Deprecated + @Deprecated(forRemoval = true) public EntityDamageByEntityEvent(@NotNull final Entity damager, @NotNull final Entity damagee, @NotNull final DamageCause cause, @NotNull final DamageSource damageSource, @NotNull final Map modifiers, @NotNull final Map> modifierFunctions) { super(damagee, cause, damageSource, modifiers, modifierFunctions); this.damager = damager; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityPlaceEvent.java index a7bd15d51a..479e2ba0fa 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityPlaceEvent.java @@ -7,6 +7,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -26,6 +27,7 @@ public class EntityPlaceEvent extends EntityEvent implements Cancellable { private final BlockFace blockFace; private final EquipmentSlot hand; + @ApiStatus.Internal public EntityPlaceEvent(@NotNull final Entity entity, @Nullable final Player player, @NotNull final Block block, @NotNull final BlockFace blockFace, @NotNull final EquipmentSlot hand) { super(entity); this.player = player; @@ -34,7 +36,7 @@ public class EntityPlaceEvent extends EntityEvent implements Cancellable { this.hand = hand; } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public EntityPlaceEvent(@NotNull final Entity entity, @Nullable final Player player, @NotNull final Block block, @NotNull final BlockFace blockFace) { this(entity, player, block, blockFace, EquipmentSlot.HAND); } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java index 8fdfcbc7d2..f6218d317a 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java @@ -221,7 +221,7 @@ public class EntityPotionEffectEvent extends EntityEvent implements Cancellable * * @deprecated no longer used, player now gets an ominous bottle instead */ - @Deprecated(since = "1.21") // Paper + @Deprecated(since = "1.21", forRemoval = true) PATROL_CAPTAIN, /** * When a potion effect is modified through the plugin methods. diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityResurrectEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityResurrectEvent.java index 372825dc8a..2a7426c157 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityResurrectEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityResurrectEvent.java @@ -4,6 +4,7 @@ import org.bukkit.entity.LivingEntity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -20,12 +21,13 @@ public class EntityResurrectEvent extends EntityEvent implements Cancellable { private final EquipmentSlot hand; + @ApiStatus.Internal public EntityResurrectEvent(@NotNull LivingEntity what, @Nullable EquipmentSlot hand) { super(what); this.hand = hand; } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public EntityResurrectEvent(@NotNull LivingEntity what) { this(what, null); } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java index 85e2277efa..d02fa4358f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java @@ -7,6 +7,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.checkerframework.checker.signature.qual.InternalForm; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -38,16 +39,18 @@ public class EntityShootBowEvent extends EntityEvent implements Cancellable { return this.getConsumable(); } - @Deprecated + @Deprecated(forRemoval = true) public EntityShootBowEvent(@NotNull final LivingEntity shooter, @Nullable final ItemStack bow, @NotNull final Entity projectile, final float force) { this(shooter, bow, new ItemStack(org.bukkit.Material.AIR), projectile, force); } - @Deprecated + @Deprecated(forRemoval = true) public EntityShootBowEvent(@NotNull final LivingEntity shooter, @Nullable final ItemStack bow, @NotNull ItemStack arrowItem, @NotNull final Entity projectile, final float force) { this(shooter, bow, arrowItem, projectile, EquipmentSlot.HAND, force, true); } // Paper end + + @InternalForm public EntityShootBowEvent(@NotNull final LivingEntity shooter, @Nullable final ItemStack bow, @Nullable final ItemStack consumable, @NotNull final Entity projectile, @NotNull final EquipmentSlot hand, final float force, final boolean consumeItem) { super(shooter); this.bow = bow; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java index ef2d1fe4f2..e657fe2244 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java @@ -105,7 +105,7 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable { * * @deprecated obsoleted by {@link #TARGET_ATTACKED_NEARBY_ENTITY} */ - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) PIG_ZOMBIE_TARGET, /** * When the target is forgotten for whatever reason. diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityUnleashEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityUnleashEvent.java index 95248d0f5c..98945bce64 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityUnleashEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityUnleashEvent.java @@ -2,6 +2,7 @@ package org.bukkit.event.entity; import org.bukkit.entity.Entity; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -22,11 +23,12 @@ public class EntityUnleashEvent extends EntityEvent implements org.bukkit.event. private boolean cancelled; // Paper // Paper start - drop leash variable - @Deprecated + @Deprecated(forRemoval = true) public EntityUnleashEvent(@NotNull Entity entity, @NotNull UnleashReason reason) { this(entity, reason, false); } + @ApiStatus.Internal public EntityUnleashEvent(@NotNull Entity entity, @NotNull UnleashReason reason, boolean dropLeash) { super(entity); // Paper end diff --git a/paper-api/src/main/java/org/bukkit/event/entity/ExpBottleEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ExpBottleEvent.java index 7e7132a065..03202de02c 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ExpBottleEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ExpBottleEvent.java @@ -5,6 +5,7 @@ import org.bukkit.block.BlockFace; import org.bukkit.entity.Entity; import org.bukkit.entity.ThrownExpBottle; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -16,11 +17,12 @@ public class ExpBottleEvent extends ProjectileHitEvent { private int exp; private boolean showEffect = true; - @Deprecated(since = "1.20.2") + @Deprecated(since = "1.20.2", forRemoval = true) public ExpBottleEvent(@NotNull final ThrownExpBottle bottle, final int exp) { this(bottle, null, null, null, exp); } + @ApiStatus.Internal public ExpBottleEvent(@NotNull final ThrownExpBottle bottle, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, final int exp) { super(bottle, hitEntity, hitBlock, hitFace); this.exp = exp; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java index b38e27605a..61a50f95f6 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java @@ -2,6 +2,7 @@ package org.bukkit.event.entity; import org.bukkit.Location; import org.bukkit.entity.Item; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -9,11 +10,12 @@ import org.jetbrains.annotations.NotNull; */ public class ItemSpawnEvent extends EntitySpawnEvent { - @Deprecated(since = "1.13.2") + @Deprecated(since = "1.13.2", forRemoval = true) public ItemSpawnEvent(@NotNull final Item spawnee, final Location loc) { this(spawnee); } + @ApiStatus.Internal public ItemSpawnEvent(@NotNull final Item spawnee) { super(spawnee); } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java index 2392885ca6..da213dc842 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/LingeringPotionSplashEvent.java @@ -7,6 +7,7 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.ThrownPotion; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -19,11 +20,12 @@ public class LingeringPotionSplashEvent extends ProjectileHitEvent implements Ca private final AreaEffectCloud entity; private boolean allowEmptyAreaEffectCreation; // Paper - @Deprecated(since = "1.20.2") + @Deprecated(since = "1.20.2", forRemoval = true) public LingeringPotionSplashEvent(@NotNull final ThrownPotion potion, @NotNull final AreaEffectCloud entity) { this(potion, null, null, null, entity); } + @ApiStatus.Internal public LingeringPotionSplashEvent(@NotNull final ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull final AreaEffectCloud entity) { super(potion, hitEntity, hitBlock, hitFace); this.entity = entity; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java index bba3821d12..ab7584873e 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java @@ -34,6 +34,7 @@ public class PlayerDeathEvent extends EntityDeathEvent { // Paper start - shouldDropExperience API this(player, damageSource, drops, droppedExp, newExp, newTotalExp, newLevel, deathMessage, true); } + @org.jetbrains.annotations.ApiStatus.Internal public PlayerDeathEvent(final @NotNull Player player, final @NotNull DamageSource damageSource, final @NotNull List drops, final int droppedExp, final int newExp, final int newTotalExp, final int newLevel, final @Nullable net.kyori.adventure.text.Component deathMessage, final boolean doExpDrop) { // Paper end - shouldDropExperience API @@ -46,23 +47,23 @@ public class PlayerDeathEvent extends EntityDeathEvent { } // Paper end - adventure - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerDeathEvent(@NotNull final Player player, @NotNull DamageSource damageSource, @NotNull final List drops, final int droppedExp, @Nullable final String deathMessage) { this(player, damageSource, drops, droppedExp, 0, deathMessage); } - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerDeathEvent(@NotNull final Player player, @NotNull DamageSource damageSource, @NotNull final List drops, final int droppedExp, final int newExp, @Nullable final String deathMessage) { this(player, damageSource, drops, droppedExp, newExp, 0, 0, deathMessage); } - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerDeathEvent(@NotNull final Player player, @NotNull DamageSource damageSource, @NotNull final List drops, final int droppedExp, final int newExp, final int newTotalExp, final int newLevel, @Nullable final String deathMessage) { // Paper start - shouldDropExperience API this(player, damageSource, drops, droppedExp, newExp, newTotalExp, newLevel, deathMessage, true); } - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerDeathEvent(@NotNull final Player player, final @NotNull DamageSource damageSource, @NotNull final List drops, final int droppedExp, final int newExp, final int newTotalExp, final int newLevel, @Nullable final String deathMessage, boolean doExpDrop) { // Paper end - shouldDropExperience API super(player, damageSource, drops, droppedExp); diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PlayerLeashEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PlayerLeashEntityEvent.java index d7205c2b50..e58e0b1d6f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PlayerLeashEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PlayerLeashEntityEvent.java @@ -6,6 +6,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -19,6 +20,7 @@ public class PlayerLeashEntityEvent extends Event implements Cancellable { private final Player player; private final EquipmentSlot hand; + @ApiStatus.Internal public PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher, @NotNull EquipmentSlot hand) { this.leashHolder = leashHolder; this.entity = what; @@ -26,7 +28,7 @@ public class PlayerLeashEntityEvent extends Event implements Cancellable { this.hand = hand; } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher) { this(what, leashHolder, leasher, EquipmentSlot.HAND); } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java index f079cd30b2..82ee49da51 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java @@ -11,6 +11,7 @@ import org.bukkit.entity.LivingEntity; import org.bukkit.entity.ThrownPotion; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -22,11 +23,12 @@ public class PotionSplashEvent extends ProjectileHitEvent implements Cancellable private boolean cancelled; protected final Map affectedEntities; // Paper - @Deprecated(since = "1.20.2") + @Deprecated(since = "1.20.2", forRemoval = true) public PotionSplashEvent(@NotNull final ThrownPotion potion, @NotNull final Map affectedEntities) { this(potion, null, null, null, affectedEntities); } + @ApiStatus.Internal public PotionSplashEvent(@NotNull final ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull final Map affectedEntities) { super(potion, hitEntity, hitBlock, hitFace); this.affectedEntities = affectedEntities; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java index 7fccda2a48..b64b41e6bf 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java @@ -6,6 +6,7 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.Projectile; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -19,27 +20,27 @@ public class ProjectileHitEvent extends EntityEvent implements Cancellable { private final BlockFace hitFace; private boolean cancel = false; - @Deprecated @io.papermc.paper.annotation.DoNotUse // Paper + @Deprecated(forRemoval = true) @io.papermc.paper.annotation.DoNotUse // Paper public ProjectileHitEvent(@NotNull final Projectile projectile) { this(projectile, null, null, null); // Paper } - @Deprecated @io.papermc.paper.annotation.DoNotUse // Paper + @Deprecated(forRemoval = true) @io.papermc.paper.annotation.DoNotUse // Paper public ProjectileHitEvent(@NotNull final Projectile projectile, @Nullable Entity hitEntity) { this(projectile, hitEntity, null, null); // Paper } - @Deprecated @io.papermc.paper.annotation.DoNotUse // Paper + @Deprecated(forRemoval = true) @io.papermc.paper.annotation.DoNotUse // Paper public ProjectileHitEvent(@NotNull final Projectile projectile, @Nullable Block hitBlock) { this(projectile, null, hitBlock, null); // Paper } - @Deprecated @io.papermc.paper.annotation.DoNotUse // Paper + @Deprecated(forRemoval = true) @io.papermc.paper.annotation.DoNotUse // Paper public ProjectileHitEvent(@NotNull final Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock) { this(projectile, hitEntity, hitBlock, null); } - @org.jetbrains.annotations.ApiStatus.Internal // Paper + @ApiStatus.Internal public ProjectileHitEvent(@NotNull final Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace) { super(projectile); this.hitEntity = hitEntity; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java index 5d056d6bcb..f3afd40c82 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java @@ -5,6 +5,7 @@ import org.bukkit.entity.Player; import org.bukkit.entity.Sheep; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -14,11 +15,12 @@ import org.jetbrains.annotations.Nullable; public class SheepDyeWoolEvent extends io.papermc.paper.event.entity.EntityDyeEvent implements Cancellable { // Paper - move everything to superclass - @Deprecated(since = "1.17.1") + @Deprecated(since = "1.17.1", forRemoval = true) public SheepDyeWoolEvent(@NotNull final Sheep sheep, @NotNull final DyeColor color) { this(sheep, color, null); } + @ApiStatus.Internal public SheepDyeWoolEvent(@NotNull final Sheep sheep, @NotNull final DyeColor color, @Nullable Player player) { super(sheep, color, player); // Paper } diff --git a/paper-api/src/main/java/org/bukkit/event/hanging/HangingPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/hanging/HangingPlaceEvent.java index 6bcc20ceaf..08ff883d90 100644 --- a/paper-api/src/main/java/org/bukkit/event/hanging/HangingPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/hanging/HangingPlaceEvent.java @@ -8,6 +8,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -28,6 +29,7 @@ public class HangingPlaceEvent extends HangingEvent implements Cancellable { this(hanging, player, block, blockFace, hand, null); } + @ApiStatus.Internal public HangingPlaceEvent(@NotNull final Hanging hanging, @Nullable final Player player, @NotNull final Block block, @NotNull final BlockFace blockFace, @Nullable final EquipmentSlot hand, @Nullable ItemStack itemStack) { super(hanging); this.player = player; diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java index 25478725be..714d9d75a7 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.inventory; import org.bukkit.block.Block; import org.bukkit.event.block.BlockCookEvent; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -12,13 +13,13 @@ import org.jetbrains.annotations.NotNull; */ public class FurnaceSmeltEvent extends BlockCookEvent { - @Deprecated // Paper + @Deprecated(forRemoval = true) public FurnaceSmeltEvent(@NotNull final Block furnace, @NotNull final ItemStack source, @NotNull final ItemStack result) { super(furnace, source, result); } - // Paper start + + @ApiStatus.Internal public FurnaceSmeltEvent(@NotNull final Block furnace, @NotNull final ItemStack source, @NotNull final ItemStack result, @org.jetbrains.annotations.Nullable org.bukkit.inventory.CookingRecipe recipe) { super(furnace, source, result, recipe); } - // Paper end } diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceStartSmeltEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceStartSmeltEvent.java index abfd0441f1..6226beaa3c 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceStartSmeltEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceStartSmeltEvent.java @@ -5,6 +5,7 @@ import org.bukkit.event.HandlerList; import org.bukkit.event.block.InventoryBlockStartEvent; import org.bukkit.inventory.CookingRecipe; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -18,12 +19,13 @@ public class FurnaceStartSmeltEvent extends InventoryBlockStartEvent { private final CookingRecipe recipe; private int totalCookTime; - @Deprecated // Paper - furnace cook speed multiplier + @Deprecated(forRemoval = true) public FurnaceStartSmeltEvent(@NotNull final Block furnace, @NotNull ItemStack source, @NotNull final CookingRecipe recipe) { // Paper start this(furnace, source, recipe, recipe.getCookingTime()); } + @ApiStatus.Internal public FurnaceStartSmeltEvent(final @NotNull Block furnace, final @NotNull ItemStack source, final @NotNull CookingRecipe recipe, final int cookingTime) { // Paper end super(furnace, source); diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryAction.java b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryAction.java index b84aaf7f37..254886cfe2 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryAction.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryAction.java @@ -72,7 +72,7 @@ public enum InventoryAction { * The hotbar includes the player's off hand. * @deprecated This action no longer happens, they are all {@link #HOTBAR_SWAP}s. */ - @Deprecated(since = "1.20.6") // Paper + @Deprecated(since = "1.20.6", forRemoval = true) // Paper HOTBAR_MOVE_AND_READD, /** * The clicked slot and the picked hotbar slot are swapped. diff --git a/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java index ff5cca4a7e..c8479838e1 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java @@ -4,6 +4,7 @@ import java.net.InetAddress; import java.util.UUID; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -28,16 +29,17 @@ public class AsyncPlayerPreLoginEvent extends Event { private final String hostname; // Paper private final boolean transferred; - @Deprecated(since = "1.7.5") + @Deprecated(since = "1.7.5", forRemoval = true) public AsyncPlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress) { this(name, ipAddress, null); } - @Deprecated(since = "1.20.5") + @Deprecated(since = "1.20.5", forRemoval = true) public AsyncPlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress, @NotNull final UUID uniqueId) { this(name, ipAddress, uniqueId, false); } + @ApiStatus.Internal public AsyncPlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress, @NotNull final UUID uniqueId, boolean transferred) { // Paper start this(name, ipAddress, uniqueId, transferred, org.bukkit.Bukkit.createProfile(uniqueId, name)); @@ -53,7 +55,7 @@ public class AsyncPlayerPreLoginEvent extends Event { this(name, ipAddress, rawAddress, uniqueId, transferred, profile, ""); } - @org.jetbrains.annotations.ApiStatus.Internal + @ApiStatus.Internal public AsyncPlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress, @NotNull final InetAddress rawAddress, @NotNull final UUID uniqueId, boolean transferred, @NotNull com.destroystokyo.paper.profile.PlayerProfile profile, @NotNull String hostname) { // Paper end super(true); diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java index 0c7e3a0c4d..9eb6141a10 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -14,7 +15,7 @@ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable { private final PlayerAnimationType animationType; private boolean isCancelled = false; - @Deprecated(since = "1.19") + @Deprecated(since = "1.19", forRemoval = true) public PlayerAnimationEvent(@NotNull final Player player) { this(player, PlayerAnimationType.ARM_SWING); } @@ -25,6 +26,7 @@ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable { * @param player The player instance * @param playerAnimationType The animation type */ + @ApiStatus.Internal public PlayerAnimationEvent(@NotNull final Player player, @NotNull final PlayerAnimationType playerAnimationType) { super(player); animationType = playerAnimationType; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java index 75154912b0..04dbcb41b4 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java @@ -26,7 +26,7 @@ public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent { this.slot = slot; } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerArmorStandManipulateEvent(@NotNull final Player who, @NotNull final ArmorStand clickedEntity, @NotNull final ItemStack playerItem, @NotNull final ItemStack armorStandItem, @NotNull final EquipmentSlot slot) { this(who, clickedEntity, playerItem, armorStandItem, slot, EquipmentSlot.HAND); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerAttemptPickupItemEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerAttemptPickupItemEvent.java index eff29875f6..8127124942 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerAttemptPickupItemEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerAttemptPickupItemEvent.java @@ -21,7 +21,7 @@ public class PlayerAttemptPickupItemEvent extends PlayerEvent implements Cancell private boolean cancelled; - @Deprecated // Remove in 1.13 // Remove in 1.14? + @Deprecated(forRemoval = true) // Remove in 1.13 // Remove in 1.14? // Remove before the heat death of the universe? @ApiStatus.Internal public PlayerAttemptPickupItemEvent(final Player player, final Item item) { this(player, item, 0); diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java index dad760bbbc..96c9b7fe03 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java @@ -5,6 +5,7 @@ import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -63,13 +64,14 @@ public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable { private final BedEnterResult bedEnterResult; private Result useBed = Result.DEFAULT; + @ApiStatus.Internal public PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed, @NotNull BedEnterResult bedEnterResult) { super(who); this.bed = bed; this.bedEnterResult = bedEnterResult; } - @Deprecated(since = "1.13.2") + @Deprecated(since = "1.13.2", forRemoval = true) public PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed) { this(who, bed, BedEnterResult.OK); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java index bea5b52f6b..36e02c71d9 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java @@ -7,6 +7,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -15,16 +16,17 @@ import org.jetbrains.annotations.NotNull; public class PlayerBucketEmptyEvent extends PlayerBucketEvent { private static final HandlerList handlers = new HandlerList(); - @Deprecated(since = "1.14.4") + @Deprecated(since = "1.14.4", forRemoval = true) public PlayerBucketEmptyEvent(@NotNull final Player who, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand) { super(who, blockClicked, blockFace, bucket, itemInHand); } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerBucketEmptyEvent(@NotNull final Player who, @NotNull final Block block, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand) { super(who, block, blockClicked, blockFace, bucket, itemInHand); } + @ApiStatus.Internal public PlayerBucketEmptyEvent(@NotNull final Player who, @NotNull final Block block, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand, @NotNull final EquipmentSlot hand) { super(who, block, blockClicked, blockFace, bucket, itemInHand, hand); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java index 71f18c2b4d..0e07667bee 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java @@ -9,6 +9,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; import org.bukkit.material.MaterialData; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -24,16 +25,17 @@ public abstract class PlayerBucketEvent extends PlayerEvent implements Cancellab private final Material bucket; private final EquipmentSlot hand; - @Deprecated(since = "1.14.4") + @Deprecated(since = "1.14.4", forRemoval = true) public PlayerBucketEvent(@NotNull final Player who, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand) { this(who, null, blockClicked.getRelative(blockFace), blockFace, bucket, itemInHand, EquipmentSlot.HAND); } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerBucketEvent(@NotNull final Player who, @NotNull final Block block, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand) { this(who, block, blockClicked, blockFace, bucket, itemInHand, EquipmentSlot.HAND); } + @ApiStatus.Internal public PlayerBucketEvent(@NotNull final Player who, @NotNull final Block block, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand, @NotNull final EquipmentSlot hand) { super(who); this.block = block; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java index 3789b1a56f..c74c33e7d1 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java @@ -7,6 +7,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -15,16 +16,17 @@ import org.jetbrains.annotations.NotNull; public class PlayerBucketFillEvent extends PlayerBucketEvent { private static final HandlerList handlers = new HandlerList(); - @Deprecated(since = "1.14.4") + @Deprecated(since = "1.14.4", forRemoval = true) public PlayerBucketFillEvent(@NotNull final Player who, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand) { super(who, blockClicked, blockFace, bucket, itemInHand); } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerBucketFillEvent(@NotNull final Player who, @NotNull final Block block, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand) { super(who, block, blockClicked, blockFace, bucket, itemInHand); } + @ApiStatus.Internal public PlayerBucketFillEvent(@NotNull final Player who, @NotNull final Block block, @NotNull final Block blockClicked, @NotNull final BlockFace blockFace, @NotNull final Material bucket, @NotNull final ItemStack itemInHand, @NotNull final EquipmentSlot hand) { super(who, block, blockClicked, blockFace, bucket, itemInHand, hand); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java index d716a9df07..77dff6319b 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java @@ -74,7 +74,7 @@ public class PlayerEditBookEvent extends PlayerEvent implements Cancellable { * @return the inventory slot number that the book item occupies * @deprecated books may be signed from off hand */ - @Deprecated(since = "1.13.1") + @Deprecated(since = "1.13.1", forRemoval = true) public int getSlot() { return slot; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java index aee4a8b52c..996f58fb7b 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java @@ -4,6 +4,7 @@ import org.bukkit.GameMode; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -22,12 +23,13 @@ public class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellabl private final Cause cause; private net.kyori.adventure.text.Component cancelMessage; - @Deprecated // Paper end + @Deprecated(forRemoval = true) // Paper end public PlayerGameModeChangeEvent(@NotNull final Player player, @NotNull final GameMode newGameMode) { // Paper start this(player, newGameMode, Cause.UNKNOWN, null); } + @ApiStatus.Internal public PlayerGameModeChangeEvent(@NotNull final Player player, @NotNull final GameMode newGameMode, @NotNull Cause cause, @org.jetbrains.annotations.Nullable net.kyori.adventure.text.Component cancelMessage) { // Paper end super(player); diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerHarvestBlockEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerHarvestBlockEvent.java index 805aa20105..f18ee5a8d6 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerHarvestBlockEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerHarvestBlockEvent.java @@ -7,6 +7,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -27,6 +28,7 @@ public class PlayerHarvestBlockEvent extends PlayerEvent implements Cancellable private final EquipmentSlot hand; private final List itemsHarvested; + @ApiStatus.Internal public PlayerHarvestBlockEvent(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull EquipmentSlot hand, @NotNull List itemsHarvested) { super(player); this.harvestedBlock = harvestedBlock; @@ -34,7 +36,7 @@ public class PlayerHarvestBlockEvent extends PlayerEvent implements Cancellable this.itemsHarvested = itemsHarvested; } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerHarvestBlockEvent(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull List itemsHarvested) { this(player, harvestedBlock, EquipmentSlot.HAND, itemsHarvested); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerItemConsumeEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerItemConsumeEvent.java index 3208dedfb6..4cd915b0c1 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerItemConsumeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerItemConsumeEvent.java @@ -6,6 +6,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -31,6 +32,7 @@ public class PlayerItemConsumeEvent extends PlayerEvent implements Cancellable { * @param item the ItemStack being consumed * @param hand the hand that was used */ + @ApiStatus.Internal public PlayerItemConsumeEvent(@NotNull final Player player, @NotNull final ItemStack item, @NotNull final EquipmentSlot hand) { super(player); @@ -43,7 +45,7 @@ public class PlayerItemConsumeEvent extends PlayerEvent implements Cancellable { * @param item the ItemStack being consumed * @deprecated use {@link #PlayerItemConsumeEvent(Player, ItemStack, EquipmentSlot)} */ - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerItemConsumeEvent(@NotNull final Player player, @NotNull final ItemStack item) { this(player, item, EquipmentSlot.HAND); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerItemDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerItemDamageEvent.java index a2993c7434..c55f1b9714 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerItemDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerItemDamageEvent.java @@ -4,6 +4,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -14,16 +15,17 @@ public class PlayerItemDamageEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final ItemStack item; + private final int originalDamage; private int damage; - private int originalDamage; // Paper - Add pre-reduction damage private boolean cancelled = false; - @Deprecated // Paper - Add pre-reduction damage + @Deprecated(forRemoval = true) public PlayerItemDamageEvent(@NotNull Player player, @NotNull ItemStack what, int damage) { // Paper start - Add pre-reduction damage this(player, what, damage, damage); } + @ApiStatus.Internal public PlayerItemDamageEvent(@NotNull Player player, @NotNull ItemStack what, int damage, int originalDamage) { super(player); this.item = what; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerItemMendEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerItemMendEvent.java index f0533271dd..7471cb755e 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerItemMendEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerItemMendEvent.java @@ -6,6 +6,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; @@ -26,13 +27,13 @@ public class PlayerItemMendEvent extends PlayerEvent implements Cancellable { private boolean cancelled; private final int consumedExperience; // Paper - @Deprecated // Paper + @Deprecated(forRemoval = true) // Paper public PlayerItemMendEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull EquipmentSlot slot, @NotNull ExperienceOrb experienceOrb, int repairAmount) { // Paper start this(who, item, slot, experienceOrb, repairAmount, repairAmount / 2); } - @org.jetbrains.annotations.ApiStatus.Internal + @ApiStatus.Internal public PlayerItemMendEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull EquipmentSlot slot, @NotNull ExperienceOrb experienceOrb, int repairAmount, int consumedExperience) { // Paper end super(who); @@ -86,7 +87,7 @@ public class PlayerItemMendEvent extends PlayerEvent implements Cancellable { } // Paper end - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerItemMendEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull ExperienceOrb experienceOrb, int repairAmount) { this(who, item, null, experienceOrb, repairAmount); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java index 3e1e7cd041..027e3d2c45 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java @@ -2,6 +2,7 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -12,12 +13,14 @@ public class PlayerJoinEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); // Paper start private net.kyori.adventure.text.Component joinMessage; + + @ApiStatus.Internal public PlayerJoinEvent(@NotNull final Player playerJoined, @Nullable final net.kyori.adventure.text.Component joinMessage) { super(playerJoined); this.joinMessage = joinMessage; } - @Deprecated // Paper end + @Deprecated(forRemoval = true) // Paper end public PlayerJoinEvent(@NotNull final Player playerJoined, @Nullable final String joinMessage) { super(playerJoined); this.joinMessage = joinMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(joinMessage) : null; // Paper end diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java index b8bf61bea7..09ea15c3d8 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -15,7 +16,7 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable { private final Cause cause; // Paper private boolean cancel; - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerKickEvent(@NotNull final Player playerKicked, @NotNull final String kickReason, @NotNull final String leaveMessage) { super(playerKicked); this.kickReason = net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(kickReason); // Paper @@ -24,7 +25,7 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable { this.cancel = false; } // Paper start - @Deprecated + @Deprecated(forRemoval = true) public PlayerKickEvent(@NotNull final Player playerKicked, @NotNull final net.kyori.adventure.text.Component kickReason, @NotNull final net.kyori.adventure.text.Component leaveMessage) { super(playerKicked); this.kickReason = kickReason; @@ -33,7 +34,7 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable { this.cause = Cause.UNKNOWN; } - @org.jetbrains.annotations.ApiStatus.Internal + @ApiStatus.Internal public PlayerKickEvent(@NotNull final Player playerKicked, @NotNull final net.kyori.adventure.text.Component kickReason, @NotNull final net.kyori.adventure.text.Component leaveMessage, @NotNull final Cause cause) { super(playerKicked); this.kickReason = kickReason; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java index eaa0548cf4..8d67cd1f76 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.player; import java.net.InetAddress; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -30,6 +31,7 @@ public class PlayerLoginEvent extends PlayerEvent { * timing issues * @param realAddress the actual, unspoofed connecting address */ + @ApiStatus.Internal public PlayerLoginEvent(@NotNull final Player player, @NotNull final String hostname, @NotNull final InetAddress address, final @NotNull InetAddress realAddress) { super(player); this.hostname = hostname; @@ -46,6 +48,7 @@ public class PlayerLoginEvent extends PlayerEvent { * @param address The address the player used to connect, provided for * timing issues */ + @ApiStatus.Internal public PlayerLoginEvent(@NotNull final Player player, @NotNull final String hostname, @NotNull final InetAddress address) { this(player, hostname, address, address); } @@ -62,7 +65,7 @@ public class PlayerLoginEvent extends PlayerEvent { * @param realAddress the actual, unspoofed connecting address * @deprecated in favour of {@link #PlayerLoginEvent(Player, String, InetAddress, Result, net.kyori.adventure.text.Component, InetAddress)} */ - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerLoginEvent(@NotNull final Player player, @NotNull String hostname, @NotNull final InetAddress address, @NotNull final Result result, @NotNull final String message, @NotNull final InetAddress realAddress) { this(player, hostname, address, realAddress); this.result = result; @@ -81,6 +84,7 @@ public class PlayerLoginEvent extends PlayerEvent { * @param message The message to be displayed if result denies login * @param realAddress the actual, unspoofed connecting address */ + @ApiStatus.Internal public PlayerLoginEvent(@NotNull final Player player, @NotNull String hostname, @NotNull final InetAddress address, @NotNull final Result result, @NotNull final net.kyori.adventure.text.Component message, @NotNull final InetAddress realAddress) { this(player, hostname, address, realAddress); // Spigot this.result = result; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java index 929a997671..a6fa22e4fd 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java @@ -62,7 +62,7 @@ public class PlayerPortalEvent extends PlayerTeleportEvent { * @return no effect * @deprecated No effect */ - @Deprecated + @Deprecated(forRemoval = true) @Override public boolean willDismountPlayer() { return super.willDismountPlayer(); @@ -73,7 +73,7 @@ public class PlayerPortalEvent extends PlayerTeleportEvent { * @return no effect * @deprecated No effect */ - @Deprecated + @Deprecated(forRemoval = true) @Override public @NotNull java.util.Set getRelativeTeleportationFlags() { return super.getRelativeTeleportationFlags(); diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java index b323212f11..b2b1c04b0b 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java @@ -5,6 +5,7 @@ import java.util.UUID; import org.bukkit.Warning; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -31,11 +32,12 @@ public class PlayerPreLoginEvent extends Event { private final InetAddress ipAddress; private final UUID uniqueId; - @Deprecated(since = "1.7.5") + @Deprecated(since = "1.7.5", forRemoval = true) public PlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress) { this(name, ipAddress, null); } + @ApiStatus.Internal public PlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress, @NotNull final UUID uniqueId) { this.result = Result.ALLOWED; this.message = net.kyori.adventure.text.Component.empty(); // Paper diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java index 84703b5d17..891d72500d 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java @@ -2,6 +2,7 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -13,22 +14,24 @@ public class PlayerQuitEvent extends PlayerEvent { private net.kyori.adventure.text.Component quitMessage; // Paper private final QuitReason reason; // Paper - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerQuitEvent(@NotNull final Player who, @Nullable final String quitMessage) { // Paper start this(who, quitMessage, null); } - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerQuitEvent(@NotNull final Player who, @Nullable final String quitMessage, @Nullable QuitReason quitReason) { super(who); this.quitMessage = quitMessage != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(quitMessage) : null; // Paper this.reason = quitReason == null ? QuitReason.DISCONNECTED : quitReason; } // Paper start - @Deprecated + @Deprecated(forRemoval = true) public PlayerQuitEvent(@NotNull final Player who, @Nullable final net.kyori.adventure.text.Component quitMessage) { this(who, quitMessage, null); } + + @ApiStatus.Internal public PlayerQuitEvent(@NotNull final Player who, @Nullable final net.kyori.adventure.text.Component quitMessage, @Nullable QuitReason quitReason) { super(who); this.quitMessage = quitMessage; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java index d1dd5cf0ad..450a3cc543 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java @@ -4,6 +4,7 @@ import com.google.common.base.Preconditions; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -20,22 +21,23 @@ public class PlayerRespawnEvent extends PlayerEvent { private final RespawnReason respawnReason; private final java.util.Set respawnFlags; // Paper - @Deprecated(since = "1.16.1") + @Deprecated(since = "1.16.1", forRemoval = true) public PlayerRespawnEvent(@NotNull final Player respawnPlayer, @NotNull final Location respawnLocation, final boolean isBedSpawn) { this(respawnPlayer, respawnLocation, isBedSpawn, false); } - @Deprecated(since = "1.19.4") + @Deprecated(since = "1.19.4", forRemoval = true) public PlayerRespawnEvent(@NotNull final Player respawnPlayer, @NotNull final Location respawnLocation, final boolean isBedSpawn, final boolean isAnchorSpawn) { this(respawnPlayer, respawnLocation, isBedSpawn, false, RespawnReason.PLUGIN); } - @Deprecated // Paper + @Deprecated(forRemoval = true) public PlayerRespawnEvent(@NotNull final Player respawnPlayer, @NotNull final Location respawnLocation, final boolean isBedSpawn, final boolean isAnchorSpawn, @NotNull final RespawnReason respawnReason) { // Paper start this(respawnPlayer, respawnLocation, isBedSpawn, isAnchorSpawn, respawnReason, com.google.common.collect.ImmutableSet.builder()); } + @ApiStatus.Internal public PlayerRespawnEvent(@NotNull final Player respawnPlayer, @NotNull final Location respawnLocation, final boolean isBedSpawn, final boolean isAnchorSpawn, @NotNull final RespawnReason respawnReason, @NotNull final com.google.common.collect.ImmutableSet.Builder respawnFlags) { // Paper end super(respawnPlayer); diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerRiptideEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerRiptideEvent.java index a3f63b908a..e0fd25b596 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerRiptideEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerRiptideEvent.java @@ -4,6 +4,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -19,13 +20,14 @@ public class PlayerRiptideEvent extends PlayerEvent { private final ItemStack item; private final Vector velocity; + @ApiStatus.Internal public PlayerRiptideEvent(@NotNull final Player who, @NotNull final ItemStack item, @NotNull Vector velocity) { super(who); this.item = item; this.velocity = velocity; } - @Deprecated(since = "1.20.4") + @Deprecated(since = "1.20.4", forRemoval = true) public PlayerRiptideEvent(@NotNull final Player who, @NotNull final ItemStack item) { this(who, item, new Vector()); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java index 3a12674e47..a252c74f30 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java @@ -7,6 +7,7 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -20,7 +21,7 @@ public class PlayerShearEntityEvent extends PlayerEvent implements Cancellable { private final EquipmentSlot hand; private java.util.List drops; // Paper - custom shear drops - @org.jetbrains.annotations.ApiStatus.Internal // Paper + @ApiStatus.Internal public PlayerShearEntityEvent(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand, final java.util.@NotNull List drops) { // Paper - custom shear drops super(who); this.what = what; @@ -29,7 +30,7 @@ public class PlayerShearEntityEvent extends PlayerEvent implements Cancellable { this.drops = drops; // Paper - custom shear drops } - @Deprecated(since = "1.15.2") + @Deprecated(since = "1.15.2", forRemoval = true) public PlayerShearEntityEvent(@NotNull final Player who, @NotNull final Entity what) { this(who, what, new ItemStack(Material.SHEARS), EquipmentSlot.HAND, java.util.Collections.emptyList()); // Paper - custom shear drops } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerUnleashEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerUnleashEntityEvent.java index ade7b26893..0b02a75f0d 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerUnleashEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerUnleashEntityEvent.java @@ -5,6 +5,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.entity.EntityUnleashEvent; import org.bukkit.inventory.EquipmentSlot; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -18,11 +19,12 @@ public class PlayerUnleashEntityEvent extends EntityUnleashEvent implements Canc private final EquipmentSlot hand; // Paper start - drop leash variable - @Deprecated + @Deprecated(forRemoval = true) public PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand) { this(entity, player, hand, false); } + @ApiStatus.Internal public PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand, boolean dropLeash) { super(entity, UnleashReason.PLAYER_UNLEASH, dropLeash); // Paper end @@ -30,7 +32,7 @@ public class PlayerUnleashEntityEvent extends EntityUnleashEvent implements Canc this.hand = hand; } - @Deprecated(since = "1.19.2") + @Deprecated(since = "1.19.2", forRemoval = true) public PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player) { this(entity, player, EquipmentSlot.HAND); } diff --git a/paper-api/src/main/java/org/bukkit/event/server/BroadcastMessageEvent.java b/paper-api/src/main/java/org/bukkit/event/server/BroadcastMessageEvent.java index 173cdb3792..eb27cbe132 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/BroadcastMessageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/server/BroadcastMessageEvent.java @@ -5,6 +5,7 @@ import org.bukkit.command.CommandSender; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.bukkit.event.player.AsyncPlayerChatEvent; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -22,12 +23,12 @@ public class BroadcastMessageEvent extends ServerEvent implements Cancellable { private final Set recipients; private boolean cancelled = false; - @Deprecated(since = "1.14") + @Deprecated(since = "1.14", forRemoval = true) public BroadcastMessageEvent(@NotNull String message, @NotNull Set recipients) { this(false, message, recipients); } - @Deprecated // Paper + @Deprecated(forRemoval = true) public BroadcastMessageEvent(boolean isAsync, @NotNull String message, @NotNull Set recipients) { // Paper start super(isAsync); @@ -35,11 +36,12 @@ public class BroadcastMessageEvent extends ServerEvent implements Cancellable { this.recipients = recipients; } - @Deprecated + @Deprecated(forRemoval = true) public BroadcastMessageEvent(net.kyori.adventure.text.@NotNull Component message, @NotNull Set recipients) { this(false, message, recipients); } + @ApiStatus.Internal public BroadcastMessageEvent(boolean isAsync, net.kyori.adventure.text.@NotNull Component message, @NotNull Set recipients) { // Paper end super(isAsync); diff --git a/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java index e11b81e711..8a04bdd74c 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java @@ -8,6 +8,7 @@ import org.bukkit.UndefinedNullability; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.util.CachedServerIcon; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -26,6 +27,8 @@ public class ServerListPingEvent extends ServerEvent implements Iterable private final int numPlayers; private int maxPlayers; + @Deprecated(forRemoval = true) + @ApiStatus.Internal public ServerListPingEvent(@NotNull final String hostname, @NotNull final InetAddress address, @NotNull final String motd, final int numPlayers, final int maxPlayers) { super(true); Preconditions.checkArgument(numPlayers >= 0, "Cannot have negative number of players online", numPlayers); @@ -47,7 +50,8 @@ public class ServerListPingEvent extends ServerEvent implements Iterable * @param maxPlayers the max number of players * @deprecated in favour of {@link #ServerListPingEvent(String, java.net.InetAddress, net.kyori.adventure.text.Component, int)} */ - @Deprecated // Paper + @Deprecated(forRemoval = true) + @ApiStatus.Internal protected ServerListPingEvent(@NotNull final String hostname, @NotNull final InetAddress address, @NotNull final String motd, final int maxPlayers) { super(true); this.numPlayers = MAGIC_PLAYER_COUNT; @@ -56,11 +60,14 @@ public class ServerListPingEvent extends ServerEvent implements Iterable this.motd = net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(motd); // Paper this.maxPlayers = maxPlayers; } - // Paper start - @Deprecated + + @Deprecated(forRemoval = true) + @ApiStatus.Internal public ServerListPingEvent(@NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, final int numPlayers, final int maxPlayers) { this("", address, motd, numPlayers, maxPlayers); } + + @ApiStatus.Internal public ServerListPingEvent(@NotNull final String hostname, @NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, final int numPlayers, final int maxPlayers) { super(true); Preconditions.checkArgument(numPlayers >= 0, "Cannot have negative number of players online (%s)", numPlayers); @@ -80,7 +87,8 @@ public class ServerListPingEvent extends ServerEvent implements Iterable * @param maxPlayers the max number of players * @deprecated in favour of {@link #ServerListPingEvent(String, java.net.InetAddress, net.kyori.adventure.text.Component, int)} */ - @Deprecated + @Deprecated(forRemoval = true) + @ApiStatus.Internal protected ServerListPingEvent(@NotNull final InetAddress address, @NotNull final net.kyori.adventure.text.Component motd, final int maxPlayers) { this("", address, motd, maxPlayers); } @@ -95,6 +103,7 @@ public class ServerListPingEvent extends ServerEvent implements Iterable * @param motd the message of the day * @param maxPlayers the max number of players */ + @ApiStatus.Internal protected ServerListPingEvent(final @NotNull String hostname, final @NotNull InetAddress address, final net.kyori.adventure.text.@NotNull Component motd, final int maxPlayers) { this.numPlayers = MAGIC_PLAYER_COUNT; this.hostname = hostname; @@ -118,7 +127,6 @@ public class ServerListPingEvent extends ServerEvent implements Iterable public void motd(net.kyori.adventure.text.@NotNull Component motd) { this.motd = motd; } - // Paper end /** * Gets the hostname that the player used to connect to the server, or @@ -196,7 +204,7 @@ public class ServerListPingEvent extends ServerEvent implements Iterable * @return true if chat preview is enabled, false otherwise * @deprecated chat previews have been removed */ - @Deprecated(since = "1.19.3") + @Deprecated(since = "1.19.3", forRemoval = true) public boolean shouldSendChatPreviews() { return false; } diff --git a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java index 50fad23cf4..d7cfd5f8ab 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.vehicle; import org.bukkit.block.Block; import org.bukkit.entity.Vehicle; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -13,11 +14,12 @@ public class VehicleBlockCollisionEvent extends VehicleCollisionEvent { private final org.bukkit.util.Vector velocity; // Paper // Paper start - Add pre-collision velocity - @Deprecated + @Deprecated(forRemoval = true) public VehicleBlockCollisionEvent(@NotNull final Vehicle vehicle, @NotNull final Block block) { this(vehicle, block, vehicle.getVelocity()); } + @ApiStatus.Internal public VehicleBlockCollisionEvent(@NotNull final Vehicle vehicle, @NotNull final Block block, @NotNull final org.bukkit.util.Vector velocity) { // Paper - Added velocity super(vehicle); this.block = block; diff --git a/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java index ca97efaaab..50696f04f6 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java @@ -4,6 +4,7 @@ import org.bukkit.World; import org.bukkit.entity.LightningStrike; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -15,11 +16,12 @@ public class LightningStrikeEvent extends WeatherEvent implements Cancellable { private final LightningStrike bolt; private final Cause cause; - @Deprecated(since = "1.13.1") + @Deprecated(since = "1.13.1", forRemoval = true) public LightningStrikeEvent(@NotNull final World world, @NotNull final LightningStrike bolt) { this(world, bolt, Cause.UNKNOWN); } + @ApiStatus.Internal public LightningStrikeEvent(@NotNull final World world, @NotNull final LightningStrike bolt, @NotNull final Cause cause) { super(world); this.bolt = bolt; diff --git a/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java index 032395c711..f787596d20 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.weather; import org.bukkit.World; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -12,16 +13,16 @@ public class ThunderChangeEvent extends WeatherEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean canceled; private final boolean to; - // Paper start private final Cause cause; + @ApiStatus.Internal public ThunderChangeEvent(@NotNull final World world, final boolean to, @NotNull final Cause cause) { super(world); this.to = to; this.cause = cause; } - @Deprecated // Paper end + @Deprecated(forRemoval = true) public ThunderChangeEvent(@NotNull final World world, final boolean to) { super(world); this.to = to; diff --git a/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java index dabd390b84..c8aa324b73 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.weather; import org.bukkit.World; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -12,16 +13,16 @@ public class WeatherChangeEvent extends WeatherEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean canceled; private final boolean to; - // Paper start private final Cause cause; + @ApiStatus.Internal public WeatherChangeEvent(@NotNull final World world, final boolean to, @NotNull Cause cause) { super(world); this.to = to; this.cause = cause; } - @Deprecated // Paper end + @Deprecated(forRemoval = true) public WeatherChangeEvent(@NotNull final World world, final boolean to) { super(world); this.to = to; diff --git a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java index a7acc3ab37..b7789781fb 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java @@ -6,6 +6,7 @@ import org.bukkit.block.BlockState; import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -19,11 +20,12 @@ public class PortalCreateEvent extends WorldEvent implements Cancellable { private final Entity entity; private final CreateReason reason; - @Deprecated(since = "1.14.1") + @Deprecated(since = "1.14.1", forRemoval = true) public PortalCreateEvent(@NotNull final List blocks, @NotNull final World world, @NotNull CreateReason reason) { this(blocks, world, null, reason); } + @ApiStatus.Internal public PortalCreateEvent(@NotNull final List blocks, @NotNull final World world, @Nullable Entity entity, @NotNull CreateReason reason) { super(world); diff --git a/paper-api/src/main/java/org/bukkit/inventory/FurnaceRecipe.java b/paper-api/src/main/java/org/bukkit/inventory/FurnaceRecipe.java index d76fbab349..c922da90e0 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/FurnaceRecipe.java +++ b/paper-api/src/main/java/org/bukkit/inventory/FurnaceRecipe.java @@ -4,6 +4,7 @@ import java.util.Collections; import org.bukkit.Material; import org.bukkit.NamespacedKey; import org.bukkit.material.MaterialData; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; /** @@ -11,22 +12,22 @@ import org.jetbrains.annotations.NotNull; */ public class FurnaceRecipe extends CookingRecipe { - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) public FurnaceRecipe(@NotNull ItemStack result, @NotNull Material source) { this(NamespacedKey.randomKey(), result, source, 0, 0, 200); } - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) public FurnaceRecipe(@NotNull ItemStack result, @NotNull MaterialData source) { this(NamespacedKey.randomKey(), result, source.getItemType(), source.getData(), 0, 200); } - @Deprecated(since = "1.13") + @Deprecated(since = "1.13", forRemoval = true) public FurnaceRecipe(@NotNull ItemStack result, @NotNull MaterialData source, float experience) { this(NamespacedKey.randomKey(), result, source.getItemType(), source.getData(), experience, 200); } - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) public FurnaceRecipe(@NotNull ItemStack result, @NotNull Material source, int data) { this(NamespacedKey.randomKey(), result, source, data, 0, 200); } @@ -40,11 +41,12 @@ public class FurnaceRecipe extends CookingRecipe { * @param experience The experience given by this recipe * @param cookingTime The cooking time (in ticks) */ + @ApiStatus.Internal public FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) { this(key, result, source, 0, experience, cookingTime); } - @Deprecated(since = "1.9") + @Deprecated(since = "1.9", forRemoval = true) public FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, int data, float experience, int cookingTime) { this(key, result, new RecipeChoice.MaterialChoice(Collections.singletonList(source)), experience, cookingTime); } @@ -58,6 +60,7 @@ public class FurnaceRecipe extends CookingRecipe { * @param experience The experience given by this recipe * @param cookingTime The cooking time (in ticks) */ + @ApiStatus.Internal public FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) { super(key, result, input, experience, cookingTime); } @@ -70,7 +73,7 @@ public class FurnaceRecipe extends CookingRecipe { * @deprecated use {@link #setInputChoice(RecipeChoice)} */ @NotNull - @Deprecated + @Deprecated(forRemoval = true) public FurnaceRecipe setInput(@NotNull MaterialData input) { return setInput(input.getItemType(), input.getData()); } @@ -90,7 +93,7 @@ public class FurnaceRecipe extends CookingRecipe { * @return The changed recipe, so you can chain calls. * @deprecated Magic value */ - @Deprecated(since = "1.6.2") + @Deprecated(since = "1.6.2", forRemoval = true) public FurnaceRecipe setInput(@NotNull Material input, int data) { return setInputChoice(new RecipeChoice.MaterialChoice(Collections.singletonList(input))); } diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemType.java b/paper-api/src/main/java/org/bukkit/inventory/ItemType.java index 3450c63507..6389f76105 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemType.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ItemType.java @@ -2404,7 +2404,7 @@ public interface ItemType extends Keyed, Translatable, net.kyori.adventure.trans * @deprecated creative categories no longer exist on the server */ @Nullable - @Deprecated(since = "1.20.6") + @Deprecated(since = "1.20.6", forRemoval = true) CreativeCategory getCreativeCategory(); /** diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/MapMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/MapMeta.java index 721164c26c..29d53747ef 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/MapMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/MapMeta.java @@ -17,7 +17,6 @@ public interface MapMeta extends ItemMeta { * @return true if this has a map ID number. * @see #hasMapView() */ - //@Deprecated(since = "1.13.2") // Paper boolean hasMapId(); /** @@ -30,7 +29,6 @@ public interface MapMeta extends ItemMeta { * @return the map ID that is set * @see #getMapView() */ - // @Deprecated(since = "1.13.2") // Paper int getMapId(); /** diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java index ada7b3d8f5..02b0a3878b 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java @@ -20,7 +20,7 @@ public interface PotionMeta extends ItemMeta { * @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(since = "1.20.6") + @Deprecated(since = "1.20.6", forRemoval = true) void setBasePotionData(@Nullable PotionData data); /** @@ -30,7 +30,7 @@ public interface PotionMeta extends ItemMeta { * @deprecated Upgraded / extended potions are now their own {@link PotionType} use {@link #getBasePotionType()} instead. */ @Nullable - @Deprecated(since = "1.20.6") + @Deprecated(since = "1.20.6", forRemoval = true) PotionData getBasePotionData(); /** diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/tags/CustomItemTagContainer.java b/paper-api/src/main/java/org/bukkit/inventory/meta/tags/CustomItemTagContainer.java index edf8698b6b..e5f647105c 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/tags/CustomItemTagContainer.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/tags/CustomItemTagContainer.java @@ -13,7 +13,7 @@ import org.jetbrains.annotations.Nullable; * {@link org.bukkit.persistence.PersistentDataHolder} API. Please use * {@link org.bukkit.persistence.PersistentDataHolder} instead of this. */ -@Deprecated(since = "1.14") +@Deprecated(since = "1.14", forRemoval = true) public interface CustomItemTagContainer { /** diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java b/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java index fae160e1cb..1c4b1110ce 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java @@ -11,7 +11,7 @@ import org.jetbrains.annotations.NotNull; * @deprecated this API part has been replaced by {@link PersistentDataHolder}. * Please use {@link PersistentDataAdapterContext} instead of this. */ -@Deprecated(since = "1.14") +@Deprecated(since = "1.14", forRemoval = true) public interface ItemTagAdapterContext { /** diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagType.java b/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagType.java index 6288f6a093..41aa634b29 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagType.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/tags/ItemTagType.java @@ -46,7 +46,7 @@ import org.jetbrains.annotations.NotNull; * * @deprecated please use {@link PersistentDataType} as this part of the api is being replaced */ -@Deprecated(since = "1.14") +@Deprecated(since = "1.14", forRemoval = true) public interface ItemTagType { /* diff --git a/paper-api/src/main/java/org/bukkit/loot/LootContext.java b/paper-api/src/main/java/org/bukkit/loot/LootContext.java index 470f712e8d..bdc21b3dd8 100644 --- a/paper-api/src/main/java/org/bukkit/loot/LootContext.java +++ b/paper-api/src/main/java/org/bukkit/loot/LootContext.java @@ -64,7 +64,7 @@ public final class LootContext { * @return the looting level * @deprecated no longer functional */ - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public int getLootingModifier() { return lootingModifier; } @@ -136,7 +136,7 @@ public final class LootContext { * @deprecated no longer functional */ @NotNull - @Deprecated(since = "1.21") + @Deprecated(since = "1.21", forRemoval = true) public Builder lootingModifier(int modifier) { this.lootingModifier = modifier; return this; diff --git a/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java b/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java index 8e6e22cefb..ca1b5d2708 100644 --- a/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java +++ b/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java @@ -9,7 +9,7 @@ import org.jetbrains.annotations.Nullable; * Represents the different textured blocks of mushroom. * @deprecated use BlockData */ -@Deprecated // Paper +@Deprecated(forRemoval = true) public enum MushroomBlockTexture { /** @@ -82,7 +82,7 @@ public enum MushroomBlockTexture { * @return A byte containing the data value of this mushroom block face * @deprecated Magic value */ - @Deprecated(since = "1.9") + @Deprecated(since = "1.9", forRemoval = true) public byte getData() { return data; } @@ -105,7 +105,7 @@ public enum MushroomBlockTexture { * null if it doesn't exist * @deprecated Magic value */ - @Deprecated(since = "1.9") + @Deprecated(since = "1.9", forRemoval = true) @Nullable public static MushroomBlockTexture getByData(final byte data) { return BY_DATA.get(data); diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginAwareness.java b/paper-api/src/main/java/org/bukkit/plugin/PluginAwareness.java index 2fb458372c..b4ccd60646 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginAwareness.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginAwareness.java @@ -21,7 +21,7 @@ public interface PluginAwareness { * * @deprecated all plugins are now assumed to be UTF-8 aware. */ - @Deprecated(since = "1.9") + @Deprecated(since = "1.9", forRemoval = true) UTF8, ; } diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index 6dfd519968..0324ec640d 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java @@ -1061,7 +1061,7 @@ public final class PluginDescriptionFile implements io.papermc.paper.plugin.conf * @return unused * @deprecated unused */ - @Deprecated(since = "1.7.2") + @Deprecated(since = "1.7.2", forRemoval = true) @Nullable public String getClassLoaderOf() { return classLoaderOf; diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java b/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java index e4cfdc80c9..8f3b0bb554 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java @@ -271,7 +271,7 @@ public abstract class PotionEffectType implements Keyed, Translatable, net.kyori * @return duration modifier * @deprecated unused, always 1.0 */ - @Deprecated(since = "1.14") + @Deprecated(since = "1.14", forRemoval = true) public abstract double getDurationModifier(); /** diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionEffectTypeWrapper.java b/paper-api/src/main/java/org/bukkit/potion/PotionEffectTypeWrapper.java index 7acdeb9054..35920c145b 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionEffectTypeWrapper.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionEffectTypeWrapper.java @@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull; /** * @deprecated only for backwards compatibility, PotionEffectTypeWrapper is no longer used. */ -@Deprecated(since = "1.20.3") +@Deprecated(since = "1.20.3", forRemoval = true) public abstract class PotionEffectTypeWrapper extends PotionEffectType { protected PotionEffectTypeWrapper() { } diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionType.java b/paper-api/src/main/java/org/bukkit/potion/PotionType.java index 912eb2f48c..f7b4859523 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionType.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionType.java @@ -150,7 +150,7 @@ public enum PotionType implements Keyed, io.papermc.paper.world.flag.FeatureDepe /** * @deprecated Do not use, interface will get removed, and the plugin won't run */ - @Deprecated(since = "1.20.2") + @Deprecated(since = "1.20.2", forRemoval = true) @ApiStatus.Internal public interface InternalPotionData { diff --git a/paper-api/src/main/java/org/bukkit/scoreboard/Criterias.java b/paper-api/src/main/java/org/bukkit/scoreboard/Criterias.java index 25bf2f94b5..6a1cbd5a46 100644 --- a/paper-api/src/main/java/org/bukkit/scoreboard/Criterias.java +++ b/paper-api/src/main/java/org/bukkit/scoreboard/Criterias.java @@ -5,7 +5,7 @@ package org.bukkit.scoreboard; * * @deprecated use the constants declared in {@link Criteria} instead */ -@Deprecated(since = "1.19.2") +@Deprecated(since = "1.19.2", forRemoval = true) public final class Criterias { public static final String HEALTH = "health"; diff --git a/paper-api/src/main/java/org/bukkit/util/Consumer.java b/paper-api/src/main/java/org/bukkit/util/Consumer.java index 37deda46fe..1b8646a228 100644 --- a/paper-api/src/main/java/org/bukkit/util/Consumer.java +++ b/paper-api/src/main/java/org/bukkit/util/Consumer.java @@ -10,7 +10,7 @@ package org.bukkit.util; // Bukkit developer note (NOT plugin developers): // NEVER use this consumer in the API. // API methods which use this consumer will be remapped to Java's consumer at runtime, resulting in an error. -@Deprecated(since = "1.20.2") +@Deprecated(since = "1.20.2", forRemoval = true) public interface Consumer extends java.util.function.Consumer { /** diff --git a/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java b/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java index 24a8ce4387..9ecc4e6954 100644 --- a/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java +++ b/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java @@ -22,7 +22,7 @@ import org.bukkit.material.WoodenStep; import org.bukkit.material.types.MushroomBlockTexture; import org.junit.jupiter.api.Test; -@Deprecated // Paper +@Deprecated(forRemoval = true) public class MaterialDataTest { @Test diff --git a/paper-server/patches/sources/net/minecraft/world/item/crafting/RecipeManager.java.patch b/paper-server/patches/sources/net/minecraft/world/item/crafting/RecipeManager.java.patch index dcc5613328..1e5f3e0f5d 100644 --- a/paper-server/patches/sources/net/minecraft/world/item/crafting/RecipeManager.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/item/crafting/RecipeManager.java.patch @@ -39,6 +39,14 @@ } public Optional> byKey(ResourceKey> key) { +@@ -184,6 +_,7 @@ + + @Nullable + public RecipeManager.ServerDisplayInfo getRecipeFromDisplay(RecipeDisplayId display) { ++ if (display.index() < 0 || display.index() >= this.allDisplays.size()) return null; // Paper + return this.allDisplays.get(display.index()); + } + @@ -199,6 +_,22 @@ Recipe recipe1 = Recipe.CODEC.parse(registries.createSerializationContext(JsonOps.INSTANCE), json).getOrThrow(JsonParseException::new); return new RecipeHolder<>(recipe, recipe1); diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 99beb7ec6e..dfce118ec8 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1889,11 +1889,6 @@ public final class CraftServer implements Server { this.saveConfig(); } - @Override - public boolean shouldSendChatPreviews() { - return false; - } - @Override public boolean isEnforcingSecureProfiles() { return this.getServer().enforceSecureProfile();