Hi folks,
I'm tinkering with a little archery mod and I want to change all bows (and arrows) in the game so that they use my custom Item & Entity classes instead of the vanilla ItemBow and EntityArrow. This thread offers some suggestions and I'd been leaning towards one of jabelar's:
...buuuut, not sure if that's the best way to go about it, as there are a lot of ways in which bows are created.
And, in looking at the EntitySkeleton code, even if I replaced the bow, they still would pop out regular arrows since their ranged attack method only uses the held item for determining damage, etc (they don't actually fire the bow through the same use-event cycle as the player does). I suppose I could intercept the arrows on spawn, which is a lot less "things to watch" than there are for the bow. That's a bit off-track, though.
What would be the best plan to swap-in my custom bow for ALL cases where the default ItemBow is used?