[SPIGOT-5753] PotionType.getEffectType() should return a list Created: 24/May/20  Updated: 09/Oct/23  Resolved: 09/Oct/23

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Bomb Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: None

Version: 1.13-1.15.2
Guidelines Read: Yes

 Description   

Since a potion with 2 effects (turtle_master) appeared in Minecraft, PotionEffectType should be in the list.
Now:

PotionEffectType effecttype = arrow.getBasePotionData().getType().getEffectType();

Should be:

List<PotionEffectType> effecttypes = arrow.getBasePotionData().getType().getEffectTypes();


 Comments   
Comment by TheCreeperCow [ 02/Jun/20 ]

Never mind it seems that mojang did this on purpose so its not possible to make it return a list as turtle_master is a potion effect type on its self so the implementation is correct even tho its a bit retarded im afraid you will have to hard code a special case for this oneĀ 

Comment by TheCreeperCow [ 02/Jun/20 ]

Agreed. Working on it

Generated at Sat Dec 13 22:30:31 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.