Pixelmon Sidemod API - Feature tracker

[8.0.2] Modification of PixelmonReceivedEvent fired from BlockFossilMachine will not implement

Ticket description:
Reason: Currently the "PixelmonReceivedEvent" is fired however it would be nice if it was cancellable, preventing receiving the pokemon from the machine without simply having to block interaction/using mixins

Requested Code change requirements:
> Changing BlockFossilMachine.onBlockActivated(...) to set obtainedPokemon to be the resulting value of the event fired & returned in BlockFossilMachine.capturePokemonInMachine(...)
> Changing BlockFossilMachine.capturePokemonInMachine(...) to return a boolean and return if the event was cancelled before/after giving the pokemon

Comments

#20573 Posted by Ferris » 07 Jul 2020 03:55

API request not feature whoops :P too many tabs open...

#20929 Posted by Jay113355 » 23 Aug 2020 00:24

PixelmonReceivedEvent is deigned to be fired when a player receives a pokemon by "ANY MEANS", including some instances which should never be blocked or canceled. Which means this event should not be changed to be cancelable.

E.g It is a notification only. changing any of it would be API breaking.

Ticket details

  • Ticket ID: 14818
  • Project: Pixelmon Sidemod API
  • Status: Will not implement
  • Component: (unknown)
  • Project version: (unknown)
  • Priority: Normal
  • Assigned to: (unassigned)
  • Reported by: Ferris (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 07 Jul 2020 03:29
  • Ticket last visited by: Envyful on 27 Apr 2022 16:24
JOIN THE TEAM