Interface BowExtensions


@InjectedInterface(net.minecraft.item.BowItem.class) public interface BowExtensions
An interface to implement for all custom bows in Quilt.

This is meant to be used on a BowItem class. Unless similar functionality is implemented on your custom item, most functionality will not work.

In order to modify the projectile shot from your bow, implementing and registering BowShotProjectileEvents.ModifyProjectileFromBow is recommended.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default @org.jetbrains.annotations.Range(from=0L, to=1L) float
    getCustomPullProgress(int useTicks, @NotNull net.minecraft.item.ItemStack bowStack)
    Returns the draw progress of the bow between 0 and 1.
  • Method Details

    • getCustomPullProgress

      default @org.jetbrains.annotations.Range(from=0L, to=1L) float getCustomPullProgress(int useTicks, @NotNull @NotNull net.minecraft.item.ItemStack bowStack)
      Returns the draw progress of the bow between 0 and 1.
      Parameters:
      useTicks - the number of ticks the bow has been drawn
      bowStack - the item stack for the bow
      Returns:
      the draw progress of the bow between 0 and 1