Update to Minecraft 1.21

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-06-14 01:05:00 +10:00
parent 9c6bdb14e4
commit 5c69fd52f0
62 changed files with 550 additions and 610 deletions

View File

@@ -17,14 +17,20 @@ public interface AbstractArrow extends Projectile {
* of the bow that shot it.
*
* @return the knockback strength value
* @see #getWeapon()
* @deprecated a function of the firing weapon
*/
@Deprecated
public int getKnockbackStrength();
/**
* Sets the knockback strength for an arrow.
*
* @param knockbackStrength the knockback strength value
* @see #setWeapon(org.bukkit.inventory.ItemStack)
* @deprecated a function of the firing weapon
*/
@Deprecated
public void setKnockbackStrength(int knockbackStrength);
/**
@@ -123,7 +129,10 @@ public interface AbstractArrow extends Projectile {
* Sets if this arrow was shot from a crossbow.
*
* @param shotFromCrossbow if shot from a crossbow
* @see #setWeapon(org.bukkit.inventory.ItemStack)
* @deprecated a function of the firing weapon instead
*/
@Deprecated
public void setShotFromCrossbow(boolean shotFromCrossbow);
/**
@@ -143,6 +152,23 @@ public interface AbstractArrow extends Projectile {
@ApiStatus.Experimental
public void setItem(@NotNull ItemStack item);
/**
* Gets the ItemStack which fired this arrow.
*
* @return The firing ItemStack
*/
@NotNull
@ApiStatus.Experimental
public ItemStack getWeapon();
/**
* Sets the ItemStack which fired this arrow.
*
* @param item The firing ItemStack
*/
@ApiStatus.Experimental
public void setWeapon(@NotNull ItemStack item);
/**
* Represents the pickup status of this arrow.
*/