mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Add some missing deprecation annotations
This commit is contained in:
parent
f850da2e36
commit
69fa46950c
7 changed files with 8 additions and 0 deletions
|
@ -161,6 +161,7 @@ public final class NamespacedKey {
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Deprecated
|
||||||
public static NamespacedKey randomKey() {
|
public static NamespacedKey randomKey() {
|
||||||
return new NamespacedKey(BUKKIT, UUID.randomUUID().toString());
|
return new NamespacedKey(BUKKIT, UUID.randomUUID().toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,4 +5,5 @@ package org.bukkit.entity;
|
||||||
*
|
*
|
||||||
* @deprecated lingering status depends on only on the potion item.
|
* @deprecated lingering status depends on only on the potion item.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface LingeringPotion extends ThrownPotion { }
|
public interface LingeringPotion extends ThrownPotion { }
|
||||||
|
|
|
@ -69,6 +69,7 @@ public class PrepareItemEnchantEvent extends InventoryEvent implements Cancellab
|
||||||
* @deprecated Use {@link #getOffers()} instead of this method
|
* @deprecated Use {@link #getOffers()} instead of this method
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Deprecated
|
||||||
public int[] getExpLevelCostsOffered() {
|
public int[] getExpLevelCostsOffered() {
|
||||||
int[] levelOffers = new int[offers.length];
|
int[] levelOffers = new int[offers.length];
|
||||||
for (int i = 0; i < offers.length; i++) {
|
for (int i = 0; i < offers.length; i++) {
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, Translat
|
||||||
* @param damage durability / damage
|
* @param damage durability / damage
|
||||||
* @deprecated see {@link #setDurability(short)}
|
* @deprecated see {@link #setDurability(short)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public ItemStack(@NotNull final Material type, final int amount, final short damage) {
|
public ItemStack(@NotNull final Material type, final int amount, final short damage) {
|
||||||
this(type, amount, damage, null);
|
this(type, amount, damage, null);
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,7 @@ public interface MapCanvas {
|
||||||
* @param color The color. See {@link MapPalette}.
|
* @param color The color. See {@link MapPalette}.
|
||||||
* @deprecated Magic value, use {@link #setPixelColor(int, int, Color)}
|
* @deprecated Magic value, use {@link #setPixelColor(int, int, Color)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void setPixel(int x, int y, byte color);
|
public void setPixel(int x, int y, byte color);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -79,6 +79,7 @@ public class Step extends TexturedMaterial {
|
||||||
* @deprecated Magic value
|
* @deprecated Magic value
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Deprecated
|
||||||
protected int getTextureIndex() {
|
protected int getTextureIndex() {
|
||||||
return getData() & 0x7;
|
return getData() & 0x7;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ public interface Scoreboard {
|
||||||
* exists
|
* exists
|
||||||
* @deprecated use {@link #registerNewObjective(String, Criteria, String)}
|
* @deprecated use {@link #registerNewObjective(String, Criteria, String)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
@NotNull
|
@NotNull
|
||||||
Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName);
|
Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName);
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ public interface Scoreboard {
|
||||||
* exists
|
* exists
|
||||||
* @deprecated use {@link #registerNewObjective(String, Criteria, String, RenderType)}
|
* @deprecated use {@link #registerNewObjective(String, Criteria, String, RenderType)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
@NotNull
|
@NotNull
|
||||||
Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName, @NotNull RenderType renderType);
|
Objective registerNewObjective(@NotNull String name, @NotNull String criteria, @NotNull String displayName, @NotNull RenderType renderType);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue