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

MergedSpawner Support #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marijnvanderhorst
Copy link

Added MergedSpawner support as requested in issue #60. Please note that the included mergedspawner jar in the repo is a stripped down version containing just the api method. If you need the full version for testing please send me a message.

… stripped down version of MergedSpawner in the maven repo, so it can be compiled.
@novucs
Copy link
Owner

novucs commented Dec 3, 2017

Thank you for your time to make this pull request. If I am to apply and maintain this, I'll need to have access to test it. I've sent you a personal message on Spigot regarding access to your plugin.

@marijnvanderhorst
Copy link
Author

marijnvanderhorst commented Dec 3, 2017

I'm not the creator of the MergedSpawner plugin. If that were the case I wouldn't have had to implement it this way.

@novucs
Copy link
Owner

novucs commented Dec 3, 2017

Thanks for the offer, though I'll see if I can get the author of merged spawners to give me a license. Adding support for his plugin benefits him more than anyone so I can't see why he wouldn't want to give me a copy. That way I should be able to get all future updates too. I'll update here when I get a response.

Repository owner deleted a comment from AlexTeal03 Dec 28, 2017
@AmazedMender16
Copy link

AmazedMender16 commented Jun 16, 2018

Hello,

Would love to see support for this.. Mergedspawner has an open API. You can also contact him on discord or spigot. or through hes support ticket system.

https://www.spigotmc.org/resources/mergedspawner-mcmmo-silkspawner-etc-support-included.31982/


`For Developers:
If you have a plugin, from which you wish to find out how many spawners are stacked in the spawner, you can invoke the following static method:
Code (Text):

MergedSpawner.getCountFor(Block spawner);

If you wish to use an event-driven approach, you can use the follwing events:
Code (Text):

@eventhandler
public void onMergedSpawnerPlaced(MergedSpawnerPlaceEvent e) {
Block spawnerBlock = e.getSpawner();
int newCount = e.getSpawnerCount();
EntityType type = e.getSpawnerType();
...
}

@eventhandler
public void onMergedSpawnerBroken(MergedSpawnerBreakEvent e) {
Block spawnerBlock = e.getSpawner();
int newCount = e.getSpawnerCount();
EntityType type = e.getSpawnerType();
...
}`

@Phoenix616 Phoenix616 force-pushed the master branch 2 times, most recently from f867f37 to f9318ee Compare May 17, 2020 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants