Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the item consumed by shooting bow in EntityShootBowEvent #3721

Open
xxAROX opened this issue Jul 21, 2020 · 11 comments
Open

Provide the item consumed by shooting bow in EntityShootBowEvent #3721

xxAROX opened this issue Jul 21, 2020 · 11 comments
Labels
Category: API Related to the plugin API Type: Enhancement Contributes features or other improvements to PocketMine-MP

Comments

@xxAROX
Copy link
Contributor

xxAROX commented Jul 21, 2020

Add Arrow-Item to constructor.(getArrow(): Item)

Its easier to checking for Effect-Arrows.

No Alternative methods found.

@eqMFqfFd
Copy link
Contributor

getProjectile()? @xxAROX

@xxAROX
Copy link
Contributor Author

xxAROX commented Jul 30, 2020

*Thats the Entity.*

@Kris-Driv
Copy link

Which is projectile. What bothers doing instance check?

@dktapps
Copy link
Member

dktapps commented Jul 31, 2020

He wants to know the item that was consumed (e.g. tipped arrow, normal arrow). The entity won't tell him that.

@dktapps dktapps added Category: API Related to the plugin API Type: Enhancement Contributes features or other improvements to PocketMine-MP labels Aug 2, 2020
@dktapps dktapps changed the title EntityShootBowEvent Provide the item consumed by shooting bow in EntityShootBowEvent Aug 2, 2020
@Kris-Driv
Copy link

Could Projectile entities themselves hold that information? Is there any way to differentiate the arrow type on collision?

@dktapps
Copy link
Member

dktapps commented Aug 5, 2020

The entity won't tell him that.

@Kris-Driv
Copy link

I meant, could you solve that? That seems like a flaw. And as I previously questioned.

Is there any way to differentiate the arrow type on collision?

@xxAROX
Copy link
Contributor Author

xxAROX commented Aug 14, 2020

I think you can get the effect via NBT-Data, but i wanna check the arrow type before it will hit the player.

@xxAROX xxAROX closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
@dktapps
Copy link
Member

dktapps commented Sep 7, 2023

Why is this closed?

@xxAROX
Copy link
Contributor Author

xxAROX commented Sep 8, 2023

I don't remember why I created the issue 🤔🤷‍♂️

@dktapps
Copy link
Member

dktapps commented Sep 8, 2023

The feature proposal is still valid, even if you no longer personally need it.

@dktapps dktapps reopened this Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: API Related to the plugin API Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
None yet
Development

No branches or pull requests

4 participants