I'm trying to create an item that when used, removes 5 seconds of a harmful potion effect every tick. I'm able to get a list of the player's harmful potion effects and choose one at random to decrease the duration of, but I can't figure out how to actually decrease the duration. From what I can see, all the accessors of the duration field in EffectInstance are private except for the tick() method, which causes the potion to perform its effect as well. So is there any way to decrease the duration of an active potion effect?