#1082: Add "since" to Deprecation annotations

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2024-11-25 07:52:33 +11:00
parent 98f6ab9a04
commit 0023e5549a
257 changed files with 1523 additions and 1176 deletions

View File

@@ -189,7 +189,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated Humans may now dual wield in their off hand, use explicit
* methods in {@link PlayerInventory}.
*/
@Deprecated
@Deprecated(since = "1.9")
@NotNull
public ItemStack getItemInHand();
@@ -201,7 +201,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated Humans may now dual wield in their off hand, use explicit
* methods in {@link PlayerInventory}.
*/
@Deprecated
@Deprecated(since = "1.9")
public void setItemInHand(@Nullable ItemStack item);
/**
@@ -461,7 +461,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care.
*/
@Deprecated
@Deprecated(since = "1.12")
@Nullable
public Entity getShoulderEntityLeft();
@@ -479,7 +479,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care.
*/
@Deprecated
@Deprecated(since = "1.12")
public void setShoulderEntityLeft(@Nullable Entity entity);
/**
@@ -493,7 +493,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care.
*/
@Deprecated
@Deprecated(since = "1.12")
@Nullable
public Entity getShoulderEntityRight();
@@ -511,7 +511,7 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
* @deprecated There are currently no well defined semantics regarding
* serialized entities in Bukkit. Use with care.
*/
@Deprecated
@Deprecated(since = "1.12")
public void setShoulderEntityRight(@Nullable Entity entity);
/**