mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
@@ -161,6 +161,7 @@ public final class NamespacedKey {
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public static NamespacedKey randomKey() {
|
||||
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
|
||||
public interface LingeringPotion extends ThrownPotion { }
|
||||
|
@@ -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++) {
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
/**
|
||||
|
@@ -79,6 +79,7 @@ public class Step extends TexturedMaterial {
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
protected int getTextureIndex() {
|
||||
return getData() & 0x7;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user