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 TypeMethodDescriptiondefault @org.jetbrains.annotations.Range(from=0L, to=1L) floatgetCustomPullProgress(int useTicks, @NotNull net.minecraft.item.ItemStack bowStack) Returns the draw progress of the bow between0and1.
-
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 between0and1.- Parameters:
useTicks- the number of ticks the bow has been drawnbowStack- the item stack for the bow- Returns:
- the draw progress of the bow between
0and1
-