Pixelmon Sidemod API - Feature tracker

[8.0.2+] PixelmonRetrieveEvent will not implement

Ticket description:
I think an event for retrieving pokemon (like how we have an event for sending them out) should be added as a feature to the mod. Will help a lot instead of listening to weird events and using reflection.

EntityPixelmon
Code: Select allpublic void retrieve() {
        if (this.getFormEnum().isTemporary() && this.battleController == null) {
            this.setForm(this.getFormEnum().getDefaultFromTemporary(this.getPokemonData()));
        }

        this.unloadEntity();
        Pixelmon.EVENT_BUS.post(new PixelmonRetrieveEvent(this.getPokemonData()))
    }

Comments

#20862 Posted by Jay113355 » 13 Aug 2020 00:05

Direct retrievals from the player? sure.

But your ignoring the fact that pokemon can be 'retrieved' by many different things happening. including, battles, world deaths, server or chunk clear lags. If we made a event for this we would have to cover all the bases.

You can use the KeyEvent to detect if the player pressed the sendout/retrieve keybind and run some logic to check if the pixelmon exists or not if all you need is the player recalling the pokemon.

As for a PixelmonRetrieveEvent that encompasses all, we wont be considering that at this time.

Ticket details

  • Ticket ID: 14937
  • Project: Pixelmon Sidemod API
  • Status: Will not implement
  • Component: Forge
  • Project version: 8.x.x
  • Priority: Normal
  • Assigned to: (unassigned)
  • Reported by: TheKnightKarim (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 03 Aug 2020 05:24
  • Ticket last visited by: Envyful on 27 Apr 2022 16:25
JOIN THE TEAM