If state is not null, then returns all potions, which are from the state. Otherwise, returns all potions that are origin related.
Return
A sequence of the potion effects type.
Parameters
The player to get the potions from.
The state to get the potions from or null.