Skip to content

MergedSpawner Support#66

Open
marijnvanderhorst wants to merge 2 commits into
novucs:masterfrom
marijnvanderhorst:master
Open

MergedSpawner Support#66
marijnvanderhorst wants to merge 2 commits into
novucs:masterfrom
marijnvanderhorst:master

Conversation

@marijnvanderhorst

Copy link
Copy Markdown

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

novucs commented Dec 3, 2017

Copy link
Copy Markdown
Owner

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

marijnvanderhorst commented Dec 3, 2017

Copy link
Copy Markdown
Author

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

novucs commented Dec 3, 2017

Copy link
Copy Markdown
Owner

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

AmazedMender16 commented Jun 16, 2018

Copy link
Copy Markdown

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