An easy solution for manipulating Guardian's beams in Spigot 1.8!
What is GuardianBeamAPI?
GuardianBeamAPI is an open source library and plugin licensed under the permissive MIT license that allows you to seamlessly manipulate the beams emitted by Guardians when they target another entity. The project was founded out of my realization that there were no clean libraries for manipulating these beams.
It is recommended that you use GuardianBeamAPI as a dependency. I hope to find a Maven repository to host this API on.
This project is currently under development, and it is not unlikely that the API will change. However, I will try not to change the API, or at least make it backwards compatible.
Wondering where 1.9 support is?
Look for my post in the Discussion tab.
How do I use it?
First, include GuardianBeamAPI as a dependency in your project.
<Maven Dependency and Repository coming soon>
Next, add to your plugin.yml:
Using the library is simple:Code (Text):depend: [GuardianBeamAPI]
And all of the code is documented. Check out the net.jaxonbrown.guardianBeam.beam package for more!Code (Text):Beam beam = new Beam(locationOne, locationTwo);
//Changing the target of the beam is easy:
If you use my library for a public plugin, while the license does not require it, I respectfully ask you to credit me by linking either to the Github page, or here.
I encourage anyone with an idea to fork this project and submit a pull request! I want this to be a community driven project, so I'd be glad to accept any PRs that meet reasonable quality standards.
- Jaxon Brown, Author