Update Maven plugins

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2021-07-03 11:06:15 +10:00
parent 34e6b033ad
commit 6dd24e4af2
25 changed files with 98 additions and 102 deletions

View File

@@ -87,11 +87,11 @@ public interface EntityEquipment {
/**
* Gets a copy of the item the entity is currently holding
*
* @deprecated entities can duel wield now use the methods for the
* specific hand instead
* @return the currently held item
* @see #getItemInMainHand()
* @see #getItemInOffHand()
* @return the currently held item
* @deprecated entities can duel wield now use the methods for the
* specific hand instead
*/
@Deprecated
@NotNull
@@ -100,11 +100,11 @@ public interface EntityEquipment {
/**
* Sets the item the entity is holding
*
* @deprecated entities can duel wield now use the methods for the
* specific hand instead
* @param stack The item to put into the entities hand
* @see #setItemInMainHand(ItemStack)
* @see #setItemInOffHand(ItemStack)
* @param stack The item to put into the entities hand
* @deprecated entities can duel wield now use the methods for the
* specific hand instead
*/
@Deprecated
void setItemInHand(@Nullable ItemStack stack);
@@ -222,21 +222,21 @@ public interface EntityEquipment {
void clear();
/**
* @deprecated entities can duel wield now use the methods for the specific
* hand instead
* @return drop chance
* @see #getItemInMainHandDropChance()
* @see #getItemInOffHandDropChance()
* @return drop chance
* @deprecated entities can duel wield now use the methods for the specific
* hand instead
*/
@Deprecated
float getItemInHandDropChance();
/**
* @deprecated entities can duel wield now use the methods for the specific
* hand instead
* @param chance drop chance
* @see #setItemInMainHandDropChance(float)
* @see #setItemInOffHandDropChance(float)
* @param chance drop chance
* @deprecated entities can duel wield now use the methods for the specific
* hand instead
*/
@Deprecated
void setItemInHandDropChance(float chance);

View File

@@ -192,11 +192,11 @@ public interface PlayerInventory extends Inventory {
/**
* Gets a copy of the item the player is currently holding
*
* @deprecated players can duel wield now use the methods for the
* specific hand instead
* @return the currently held item
* @see #getItemInMainHand()
* @see #getItemInOffHand()
* @return the currently held item
* @deprecated players can duel wield now use the methods for the
* specific hand instead
*/
@Deprecated
@NotNull
@@ -205,11 +205,11 @@ public interface PlayerInventory extends Inventory {
/**
* Sets the item the player is holding
*
* @deprecated players can duel wield now use the methods for the
* specific hand instead
* @param stack The item to put into the player's hand
* @see #setItemInMainHand(ItemStack)
* @see #setItemInOffHand(ItemStack)
* @param stack The item to put into the player's hand
* @deprecated players can duel wield now use the methods for the
* specific hand instead
*/
@Deprecated
public void setItemInHand(@Nullable ItemStack stack);

View File

@@ -15,12 +15,12 @@ public interface MapMeta extends ItemMeta {
* Checks for existence of a map ID number.
*
* @return true if this has a map ID number.
* @see #hasMapView()
* @deprecated These methods are poor API: They rely on the caller to pass
* in an only an integer property, and have poorly defined implementation
* behavior if that integer is not a valid map (the current implementation
* for example will generate a new map with a different ID). The xxxMapView
* family of methods should be used instead.
* @see #hasMapView()
*/
@Deprecated
boolean hasMapId();
@@ -33,12 +33,12 @@ public interface MapMeta extends ItemMeta {
* calling this method.
*
* @return the map ID that is set
* @see #getMapView()
* @deprecated These methods are poor API: They rely on the caller to pass
* in an only an integer property, and have poorly defined implementation
* behavior if that integer is not a valid map (the current implementation
* for example will generate a new map with a different ID). The xxxMapView
* family of methods should be used instead.
* @see #getMapView()
*/
@Deprecated
int getMapId();
@@ -47,12 +47,12 @@ public interface MapMeta extends ItemMeta {
* Sets the map ID. This is used to determine what map is displayed.
*
* @param id the map id to set
* @see #setMapView(org.bukkit.map.MapView)
* @deprecated These methods are poor API: They rely on the caller to pass
* in an only an integer property, and have poorly defined implementation
* behavior if that integer is not a valid map (the current implementation
* for example will generate a new map with a different ID). The xxxMapView
* family of methods should be used instead.
* @see #setMapView(org.bukkit.map.MapView)
*/
@Deprecated
void setMapId(int id);