potion

public static OwnedEntityState potion(LivingEntity entity, PotionEffect replacement, Plugin plugin)

Restores only the still-owned active potion, retaining the original effect's elapsed game ticks.