1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 02:34:30 +01:00

Add some missing deprecation annotations

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2024-04-25 10:27:43 +10:00
parent 374841b40f
commit 1ba56ce1ca
7 changed files with 8 additions and 0 deletions
paper-api/src/main/java/org/bukkit

View file

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

View file

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

View file

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

View file

@ -67,6 +67,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, Translat
* @param damage durability / damage
* @deprecated see {@link #setDurability(short)}
*/
@Deprecated
public ItemStack(@NotNull final Material type, final int amount, final short damage) {
this(type, amount, damage, null);
}

View file

@ -86,6 +86,7 @@ public interface MapCanvas {
* @param color The color. See {@link MapPalette}.
* @deprecated Magic value, use {@link #setPixelColor(int, int, Color)}
*/
@Deprecated
public void setPixel(int x, int y, byte color);
/**

View file

@ -79,6 +79,7 @@ public class Step extends TexturedMaterial {
* @deprecated Magic value
*/
@Override
@Deprecated
protected int getTextureIndex() {
return getData() & 0x7;
}

View file

@ -39,6 +39,7 @@ public interface Scoreboard {
* exists
* @deprecated use {@link #registerNewObjective(String, Criteria, String)}
*/
@Deprecated
@NotNull
Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName);
@ -56,6 +57,7 @@ public interface Scoreboard {
* exists
* @deprecated use {@link #registerNewObjective(String, Criteria, String, RenderType)}
*/
@Deprecated
@NotNull
Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName, @NotNull RenderType renderType);