Commit graph

5 commits

Author SHA1 Message Date
Esophose
c622b2b102
Minor cleanup, remove legacy metrics 2021-07-15 03:41:52 -06:00
basedAF
97cf24053c
Expand API (#80)
* PLAYER particles

When creating a custom particle effect its very limiting not having access to the player object, this PR adds a method that calls with the player object, allowing you to get player UUID for hash-map or checking nearby blocks etc.

* Remove metadata check

Bad for performance and not necessary (If a target is vanished player.canSee(target) will return false)

ParticleSpawner.canSee() 11.29% 577.34ms
CraftPlayer.getMetadata() 7.71% 394.13ms

* Add size param to PParticle

More customization

* Let actual vibration be used

Lets custom effects make cool skulk animations.

* Use eye location for spawning

Particles adjust when you sneak/crawl (player.getEyeLocation() exists in 1.8 also iirc)

* Remove unnecessary .clone

entity.getLocation returns a clone of their location.

* The changes esophose requested

* Changes

* Remove player from imports

* Where did this even come from

* and this
2021-07-14 13:16:51 -06:00
Esophose
dc72e39f46
Added 1.17 particles 2021-06-21 13:26:50 -06:00
Esophose
fe9b580baf Hide particles from the owner if they are vanished 2020-10-01 22:41:05 -06:00
Esophose
2d55d21a2a Version compatibility, craftbukkit error message 2020-05-04 20:50:02 -06:00