What steps will reproduce the problem?
There is no problem, just a lack of custom event calls, which to my understanding would allow another plugin to control Mobcatcher in a small way
What is the expected output? What do you see instead?
I would like to help if I can in suggesting and coding a couple custom events, which should allow another plugin I'm developing to use MobCatcher to provide details on mobs captured and released.
Please provide any additional information below.
A couple custom events is what I'd suggest first: An event called MobCatcherMobPrereleaseFromEggEvent. This will be raised after throwing the egg, right before the mob is released. If the event is cancelled, the egg still remains, waiting to be picked up again. The event should have methods getPlayer() and getMobType() and getSpawnerEgg().
Another event should be called right after the mob has been released from the egg: MobCatcherMobReleasedFromEggEvent. this event should not be cancellable, as the Prerelease event is intended to allow another plugin to stop MobCatcher from releasing the mob. This event should have events getPlayer() and getMob() (type LivingEntity). This will allow my plugin, for example, to know who "owns" a released mob.
Two similar events should be called for Pre-catching and post-catching a mob.
MobCatcherPrecatchMobEvent -> cancel-able. methods getPlayer() and getMob()
MobCatcherCaughtMobEvent -> NOT cancel-able. methods getPlayer() and getMobType() and getSpawnerEgg()
- 2 comments
- Last updated
- Mar 23, 2014
- Jun 25, 2013
- Declined - We decided not to take action on this ticket.
- Enhancement - A change which is intended to better the project in some way
- Medium - Normal priority.